diff --git a/sdk/logic/azure-resourcemanager-logic/CHANGELOG.md b/sdk/logic/azure-resourcemanager-logic/CHANGELOG.md index 9ce44b02901d..ada9c0372bd6 100644 --- a/sdk/logic/azure-resourcemanager-logic/CHANGELOG.md +++ b/sdk/logic/azure-resourcemanager-logic/CHANGELOG.md @@ -1,7 +1,8 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2022-03-15) +- Azure Resource Manager Logic client library for Java. This package contains Microsoft Azure SDK for Logic Management SDK. REST API for Azure Logic Apps. Package tag package-2019-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## 1.0.0-beta.1 (2021-04-16) diff --git a/sdk/logic/azure-resourcemanager-logic/README.md b/sdk/logic/azure-resourcemanager-logic/README.md index 3b4aedf6791b..2d96dfe922a6 100644 --- a/sdk/logic/azure-resourcemanager-logic/README.md +++ b/sdk/logic/azure-resourcemanager-logic/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-logic - 1.0.0-beta.1 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) @@ -74,6 +74,9 @@ See [API design][design] for general introduction on design and key concepts on ## Examples +[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/logic/azure-resourcemanager-logic/SAMPLE.md) + + ## Troubleshooting ## Next steps diff --git a/sdk/logic/azure-resourcemanager-logic/SAMPLE.md b/sdk/logic/azure-resourcemanager-logic/SAMPLE.md new file mode 100644 index 000000000000..3768f1f7bc13 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/SAMPLE.md @@ -0,0 +1,3561 @@ +# Code snippets and samples + + +## IntegrationAccountAgreements + +- [CreateOrUpdate](#integrationaccountagreements_createorupdate) +- [Delete](#integrationaccountagreements_delete) +- [Get](#integrationaccountagreements_get) +- [List](#integrationaccountagreements_list) +- [ListContentCallbackUrl](#integrationaccountagreements_listcontentcallbackurl) + +## IntegrationAccountAssemblies + +- [CreateOrUpdate](#integrationaccountassemblies_createorupdate) +- [Delete](#integrationaccountassemblies_delete) +- [Get](#integrationaccountassemblies_get) +- [List](#integrationaccountassemblies_list) +- [ListContentCallbackUrl](#integrationaccountassemblies_listcontentcallbackurl) + +## IntegrationAccountBatchConfigurations + +- [CreateOrUpdate](#integrationaccountbatchconfigurations_createorupdate) +- [Delete](#integrationaccountbatchconfigurations_delete) +- [Get](#integrationaccountbatchconfigurations_get) +- [List](#integrationaccountbatchconfigurations_list) + +## IntegrationAccountCertificates + +- [CreateOrUpdate](#integrationaccountcertificates_createorupdate) +- [Delete](#integrationaccountcertificates_delete) +- [Get](#integrationaccountcertificates_get) +- [List](#integrationaccountcertificates_list) + +## IntegrationAccountMaps + +- [CreateOrUpdate](#integrationaccountmaps_createorupdate) +- [Delete](#integrationaccountmaps_delete) +- [Get](#integrationaccountmaps_get) +- [List](#integrationaccountmaps_list) +- [ListContentCallbackUrl](#integrationaccountmaps_listcontentcallbackurl) + +## IntegrationAccountPartners + +- [CreateOrUpdate](#integrationaccountpartners_createorupdate) +- [Delete](#integrationaccountpartners_delete) +- [Get](#integrationaccountpartners_get) +- [List](#integrationaccountpartners_list) +- [ListContentCallbackUrl](#integrationaccountpartners_listcontentcallbackurl) + +## IntegrationAccountSchemas + +- [CreateOrUpdate](#integrationaccountschemas_createorupdate) +- [Delete](#integrationaccountschemas_delete) +- [Get](#integrationaccountschemas_get) +- [List](#integrationaccountschemas_list) +- [ListContentCallbackUrl](#integrationaccountschemas_listcontentcallbackurl) + +## IntegrationAccountSessions + +- [CreateOrUpdate](#integrationaccountsessions_createorupdate) +- [Delete](#integrationaccountsessions_delete) +- [Get](#integrationaccountsessions_get) +- [List](#integrationaccountsessions_list) + +## IntegrationAccounts + +- [CreateOrUpdate](#integrationaccounts_createorupdate) +- [Delete](#integrationaccounts_delete) +- [GetByResourceGroup](#integrationaccounts_getbyresourcegroup) +- [List](#integrationaccounts_list) +- [ListByResourceGroup](#integrationaccounts_listbyresourcegroup) +- [ListCallbackUrl](#integrationaccounts_listcallbackurl) +- [ListKeyVaultKeys](#integrationaccounts_listkeyvaultkeys) +- [LogTrackingEvents](#integrationaccounts_logtrackingevents) +- [RegenerateAccessKey](#integrationaccounts_regenerateaccesskey) +- [Update](#integrationaccounts_update) + +## IntegrationServiceEnvironmentManagedApiOperations + +- [List](#integrationserviceenvironmentmanagedapioperations_list) + +## IntegrationServiceEnvironmentManagedApis + +- [Delete](#integrationserviceenvironmentmanagedapis_delete) +- [Get](#integrationserviceenvironmentmanagedapis_get) +- [List](#integrationserviceenvironmentmanagedapis_list) +- [Put](#integrationserviceenvironmentmanagedapis_put) + +## IntegrationServiceEnvironmentNetworkHealth + +- [Get](#integrationserviceenvironmentnetworkhealth_get) + +## IntegrationServiceEnvironmentSkus + +- [List](#integrationserviceenvironmentskus_list) + +## IntegrationServiceEnvironments + +- [CreateOrUpdate](#integrationserviceenvironments_createorupdate) +- [Delete](#integrationserviceenvironments_delete) +- [GetByResourceGroup](#integrationserviceenvironments_getbyresourcegroup) +- [List](#integrationserviceenvironments_list) +- [ListByResourceGroup](#integrationserviceenvironments_listbyresourcegroup) +- [Restart](#integrationserviceenvironments_restart) +- [Update](#integrationserviceenvironments_update) + +## Operations + +- [List](#operations_list) + +## WorkflowRunActionRepetitions + +- [Get](#workflowrunactionrepetitions_get) +- [List](#workflowrunactionrepetitions_list) +- [ListExpressionTraces](#workflowrunactionrepetitions_listexpressiontraces) + +## WorkflowRunActionRepetitionsRequestHistories + +- [Get](#workflowrunactionrepetitionsrequesthistories_get) +- [List](#workflowrunactionrepetitionsrequesthistories_list) + +## WorkflowRunActionRequestHistories + +- [Get](#workflowrunactionrequesthistories_get) +- [List](#workflowrunactionrequesthistories_list) + +## WorkflowRunActionScopeRepetitions + +- [Get](#workflowrunactionscoperepetitions_get) +- [List](#workflowrunactionscoperepetitions_list) + +## WorkflowRunActions + +- [Get](#workflowrunactions_get) +- [List](#workflowrunactions_list) +- [ListExpressionTraces](#workflowrunactions_listexpressiontraces) + +## WorkflowRunOperations + +- [Get](#workflowrunoperations_get) + +## WorkflowRuns + +- [Cancel](#workflowruns_cancel) +- [Get](#workflowruns_get) +- [List](#workflowruns_list) + +## WorkflowTriggerHistories + +- [Get](#workflowtriggerhistories_get) +- [List](#workflowtriggerhistories_list) +- [Resubmit](#workflowtriggerhistories_resubmit) + +## WorkflowTriggers + +- [Get](#workflowtriggers_get) +- [GetSchemaJson](#workflowtriggers_getschemajson) +- [List](#workflowtriggers_list) +- [ListCallbackUrl](#workflowtriggers_listcallbackurl) +- [Reset](#workflowtriggers_reset) +- [Run](#workflowtriggers_run) +- [SetState](#workflowtriggers_setstate) + +## WorkflowVersionTriggers + +- [ListCallbackUrl](#workflowversiontriggers_listcallbackurl) + +## WorkflowVersions + +- [Get](#workflowversions_get) +- [List](#workflowversions_list) + +## Workflows + +- [CreateOrUpdate](#workflows_createorupdate) +- [Delete](#workflows_delete) +- [Disable](#workflows_disable) +- [Enable](#workflows_enable) +- [GenerateUpgradedDefinition](#workflows_generateupgradeddefinition) +- [GetByResourceGroup](#workflows_getbyresourcegroup) +- [List](#workflows_list) +- [ListByResourceGroup](#workflows_listbyresourcegroup) +- [ListCallbackUrl](#workflows_listcallbackurl) +- [ListSwagger](#workflows_listswagger) +- [Move](#workflows_move) +- [RegenerateAccessKey](#workflows_regenerateaccesskey) +- [Update](#workflows_update) +- [ValidateByLocation](#workflows_validatebylocation) +- [ValidateByResourceGroup](#workflows_validatebyresourcegroup) +### IntegrationAccountAgreements_CreateOrUpdate + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.AS2AcknowledgementConnectionSettings; +import com.azure.resourcemanager.logic.models.AS2AgreementContent; +import com.azure.resourcemanager.logic.models.AS2EnvelopeSettings; +import com.azure.resourcemanager.logic.models.AS2ErrorSettings; +import com.azure.resourcemanager.logic.models.AS2MdnSettings; +import com.azure.resourcemanager.logic.models.AS2MessageConnectionSettings; +import com.azure.resourcemanager.logic.models.AS2OneWayAgreement; +import com.azure.resourcemanager.logic.models.AS2ProtocolSettings; +import com.azure.resourcemanager.logic.models.AS2SecuritySettings; +import com.azure.resourcemanager.logic.models.AS2ValidationSettings; +import com.azure.resourcemanager.logic.models.AgreementContent; +import com.azure.resourcemanager.logic.models.AgreementType; +import com.azure.resourcemanager.logic.models.BusinessIdentity; +import com.azure.resourcemanager.logic.models.EncryptionAlgorithm; +import com.azure.resourcemanager.logic.models.HashingAlgorithm; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationAccountAgreements CreateOrUpdate. */ +public final class IntegrationAccountAgreementsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an agreement. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnAgreement(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountAgreements() + .define("testAgreement") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withAgreementType(AgreementType.AS2) + .withHostPartner("HostPartner") + .withGuestPartner("GuestPartner") + .withHostIdentity(new BusinessIdentity().withQualifier("ZZ").withValue("ZZ")) + .withGuestIdentity(new BusinessIdentity().withQualifier("AA").withValue("AA")) + .withContent( + new AgreementContent() + .withAS2( + new AS2AgreementContent() + .withReceiveAgreement( + new AS2OneWayAgreement() + .withSenderBusinessIdentity( + new BusinessIdentity().withQualifier("AA").withValue("AA")) + .withReceiverBusinessIdentity( + new BusinessIdentity().withQualifier("ZZ").withValue("ZZ")) + .withProtocolSettings( + new AS2ProtocolSettings() + .withMessageConnectionSettings( + new AS2MessageConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withAcknowledgementConnectionSettings( + new AS2AcknowledgementConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withMdnSettings( + new AS2MdnSettings() + .withNeedMdn(true) + .withSignMdn(true) + .withSendMdnAsynchronously(true) + .withReceiptDeliveryUrl("http://tempuri.org") + .withDispositionNotificationTo("http://tempuri.org") + .withSignOutboundMdnIfOptional(true) + .withMdnText("Sample") + .withSendInboundMdnToMessageBox(true) + .withMicHashingAlgorithm(HashingAlgorithm.SHA1)) + .withSecuritySettings( + new AS2SecuritySettings() + .withOverrideGroupSigningCertificate(false) + .withEnableNrrForInboundEncodedMessages(true) + .withEnableNrrForInboundDecodedMessages(true) + .withEnableNrrForOutboundMdn(true) + .withEnableNrrForOutboundEncodedMessages(true) + .withEnableNrrForOutboundDecodedMessages(true) + .withEnableNrrForInboundMdn(true)) + .withValidationSettings( + new AS2ValidationSettings() + .withOverrideMessageProperties(true) + .withEncryptMessage(false) + .withSignMessage(false) + .withCompressMessage(true) + .withCheckDuplicateMessage(true) + .withInterchangeDuplicatesValidityDays(100) + .withCheckCertificateRevocationListOnSend(true) + .withCheckCertificateRevocationListOnReceive(true) + .withEncryptionAlgorithm(EncryptionAlgorithm.AES128)) + .withEnvelopeSettings( + new AS2EnvelopeSettings() + .withMessageContentType("text/plain") + .withTransmitFileNameInMimeHeader(true) + .withFileNameTemplate("Test") + .withSuspendMessageOnFileNameGenerationError(true) + .withAutogenerateFileName(true)) + .withErrorSettings( + new AS2ErrorSettings() + .withSuspendDuplicateMessage(true) + .withResendIfMdnNotReceived(true)))) + .withSendAgreement( + new AS2OneWayAgreement() + .withSenderBusinessIdentity( + new BusinessIdentity().withQualifier("ZZ").withValue("ZZ")) + .withReceiverBusinessIdentity( + new BusinessIdentity().withQualifier("AA").withValue("AA")) + .withProtocolSettings( + new AS2ProtocolSettings() + .withMessageConnectionSettings( + new AS2MessageConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withAcknowledgementConnectionSettings( + new AS2AcknowledgementConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withMdnSettings( + new AS2MdnSettings() + .withNeedMdn(true) + .withSignMdn(true) + .withSendMdnAsynchronously(true) + .withReceiptDeliveryUrl("http://tempuri.org") + .withDispositionNotificationTo("http://tempuri.org") + .withSignOutboundMdnIfOptional(true) + .withMdnText("Sample") + .withSendInboundMdnToMessageBox(true) + .withMicHashingAlgorithm(HashingAlgorithm.SHA1)) + .withSecuritySettings( + new AS2SecuritySettings() + .withOverrideGroupSigningCertificate(false) + .withEnableNrrForInboundEncodedMessages(true) + .withEnableNrrForInboundDecodedMessages(true) + .withEnableNrrForOutboundMdn(true) + .withEnableNrrForOutboundEncodedMessages(true) + .withEnableNrrForOutboundDecodedMessages(true) + .withEnableNrrForInboundMdn(true)) + .withValidationSettings( + new AS2ValidationSettings() + .withOverrideMessageProperties(true) + .withEncryptMessage(false) + .withSignMessage(false) + .withCompressMessage(true) + .withCheckDuplicateMessage(true) + .withInterchangeDuplicatesValidityDays(100) + .withCheckCertificateRevocationListOnSend(true) + .withCheckCertificateRevocationListOnReceive(true) + .withEncryptionAlgorithm(EncryptionAlgorithm.AES128)) + .withEnvelopeSettings( + new AS2EnvelopeSettings() + .withMessageContentType("text/plain") + .withTransmitFileNameInMimeHeader(true) + .withFileNameTemplate("Test") + .withSuspendMessageOnFileNameGenerationError(true) + .withAutogenerateFileName(true)) + .withErrorSettings( + new AS2ErrorSettings() + .withSuspendDuplicateMessage(true) + .withResendIfMdnNotReceived(true)))))) + .withTags(mapOf("IntegrationAccountAgreement", "")) + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### IntegrationAccountAgreements_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAgreements Delete. */ +public final class IntegrationAccountAgreementsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_Delete.json + */ + /** + * Sample code: Delete an agreement. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnAgreement(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testAgreement", Context.NONE); + } +} +``` + +### IntegrationAccountAgreements_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAgreements Get. */ +public final class IntegrationAccountAgreementsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_Get.json + */ + /** + * Sample code: Get agreement by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getAgreementByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testAgreement", Context.NONE); + } +} +``` + +### IntegrationAccountAgreements_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAgreements List. */ +public final class IntegrationAccountAgreementsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_List.json + */ + /** + * Sample code: Get agreements by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getAgreementsByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .list("testResourceGroup", "testIntegrationAccount", null, null, Context.NONE); + } +} +``` + +### IntegrationAccountAgreements_ListContentCallbackUrl + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountAgreements ListContentCallbackUrl. */ +public final class IntegrationAccountAgreementsListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testAgreement", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### IntegrationAccountAssemblies_CreateOrUpdate + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.AssemblyProperties; +import java.io.IOException; + +/** Samples for IntegrationAccountAssemblies CreateOrUpdate. */ +public final class IntegrationAccountAssembliesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnAccountAssembly(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountAssemblies() + .define("testAssembly") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withProperties( + new AssemblyProperties() + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .withContent("Base64 encoded Assembly Content") + .withAssemblyName("System.IdentityModel.Tokens.Jwt")) + .create(); + } +} +``` + +### IntegrationAccountAssemblies_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies Delete. */ +public final class IntegrationAccountAssembliesDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_Delete.json + */ + /** + * Sample code: Delete an integration account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccountAssembly(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAssemblies() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testAssembly", Context.NONE); + } +} +``` + +### IntegrationAccountAssemblies_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies Get. */ +public final class IntegrationAccountAssembliesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_Get.json + */ + /** + * Sample code: Get an integration account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void getAnIntegrationAccountAssembly(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAssemblies() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testAssembly", Context.NONE); + } +} +``` + +### IntegrationAccountAssemblies_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies List. */ +public final class IntegrationAccountAssembliesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_List.json + */ + /** + * Sample code: List integration account assemblies. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountAssemblies(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccountAssemblies().list("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} +``` + +### IntegrationAccountAssemblies_ListContentCallbackUrl + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies ListContentCallbackUrl. */ +public final class IntegrationAccountAssembliesListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the callback url for an integration account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheCallbackUrlForAnIntegrationAccountAssembly( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAssemblies() + .listContentCallbackUrlWithResponse( + "testResourceGroup", "testIntegrationAccount", "testAssembly", Context.NONE); + } +} +``` + +### IntegrationAccountBatchConfigurations_CreateOrUpdate + +```java +import com.azure.resourcemanager.logic.models.BatchConfigurationProperties; +import com.azure.resourcemanager.logic.models.BatchReleaseCriteria; +import com.azure.resourcemanager.logic.models.RecurrenceFrequency; +import com.azure.resourcemanager.logic.models.WorkflowTriggerRecurrence; + +/** Samples for IntegrationAccountBatchConfigurations CreateOrUpdate. */ +public final class IntegrationAccountBatchConfigurationsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a batch configuration. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateABatchConfiguration(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .define("testBatchConfiguration") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withProperties( + new BatchConfigurationProperties() + .withBatchGroupName("DEFAULT") + .withReleaseCriteria( + new BatchReleaseCriteria() + .withMessageCount(10) + .withBatchSize(234567) + .withRecurrence( + new WorkflowTriggerRecurrence() + .withFrequency(RecurrenceFrequency.MINUTE) + .withInterval(1) + .withStartTime("2017-03-24T11:43:00") + .withTimeZone("India Standard Time")))) + .create(); + } +} +``` + +### IntegrationAccountBatchConfigurations_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountBatchConfigurations Delete. */ +public final class IntegrationAccountBatchConfigurationsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_Delete.json + */ + /** + * Sample code: Delete a batch configuration. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteABatchConfiguration(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testBatchConfiguration", Context.NONE); + } +} +``` + +### IntegrationAccountBatchConfigurations_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountBatchConfigurations Get. */ +public final class IntegrationAccountBatchConfigurationsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_Get.json + */ + /** + * Sample code: Get a batch configuration. + * + * @param manager Entry point to LogicManager. + */ + public static void getABatchConfiguration(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testBatchConfiguration", Context.NONE); + } +} +``` + +### IntegrationAccountBatchConfigurations_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountBatchConfigurations List. */ +public final class IntegrationAccountBatchConfigurationsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_List.json + */ + /** + * Sample code: List batch configurations. + * + * @param manager Entry point to LogicManager. + */ + public static void listBatchConfigurations(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .list("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} +``` + +### IntegrationAccountCertificates_CreateOrUpdate + +```java +import com.azure.resourcemanager.logic.models.KeyVaultKeyReference; +import com.azure.resourcemanager.logic.models.KeyVaultKeyReferenceKeyVault; + +/** Samples for IntegrationAccountCertificates CreateOrUpdate. */ +public final class IntegrationAccountCertificatesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a certificate. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateACertificate(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .define("testCertificate") + .withRegion("brazilsouth") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withKey( + new KeyVaultKeyReference() + .withKeyVault( + new KeyVaultKeyReferenceKeyVault() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testResourceGroup/providers/microsoft.keyvault/vaults/")) + .withKeyName("") + .withKeyVersion("87d9764197604449b9b8eb7bd8710868")) + .withPublicCertificate("") + .create(); + } +} +``` + +### IntegrationAccountCertificates_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountCertificates Delete. */ +public final class IntegrationAccountCertificatesDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_Delete.json + */ + /** + * Sample code: Delete a certificate. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteACertificate(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testCertificate", Context.NONE); + } +} +``` + +### IntegrationAccountCertificates_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountCertificates Get. */ +public final class IntegrationAccountCertificatesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_Get.json + */ + /** + * Sample code: Get certificate by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getCertificateByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testCertificate", Context.NONE); + } +} +``` + +### IntegrationAccountCertificates_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountCertificates List. */ +public final class IntegrationAccountCertificatesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_List.json + */ + /** + * Sample code: Get certificates by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getCertificatesByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .list("testResourceGroup", "testIntegrationAccount", null, Context.NONE); + } +} +``` + +### IntegrationAccountMaps_CreateOrUpdate + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.MapType; +import java.io.IOException; + +/** Samples for IntegrationAccountMaps CreateOrUpdate. */ +public final class IntegrationAccountMapsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountLargeMaps_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a map larger than 4 MB. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAMapLargerThan4MB(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountMaps() + .define("testMap") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withMapType(MapType.XSLT) + .withContentType("application/xml") + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } + + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a map. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAMap(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccountMaps() + .define("testMap") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withMapType(MapType.XSLT) + .withContent( + "\r\n" + + "\r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + "") + .withContentType("application/xml") + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } +} +``` + +### IntegrationAccountMaps_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountMaps Delete. */ +public final class IntegrationAccountMapsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_Delete.json + */ + /** + * Sample code: Delete a map. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAMap(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountMaps() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testMap", Context.NONE); + } +} +``` + +### IntegrationAccountMaps_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountMaps Get. */ +public final class IntegrationAccountMapsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_Get.json + */ + /** + * Sample code: Get map by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getMapByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountMaps() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testMap", Context.NONE); + } +} +``` + +### IntegrationAccountMaps_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountMaps List. */ +public final class IntegrationAccountMapsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_List.json + */ + /** + * Sample code: Get maps by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getMapsByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccountMaps().list("testResourceGroup", "testIntegrationAccount", null, null, Context.NONE); + } +} +``` + +### IntegrationAccountMaps_ListContentCallbackUrl + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountMaps ListContentCallbackUrl. */ +public final class IntegrationAccountMapsListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountMaps() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testMap", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### IntegrationAccountPartners_CreateOrUpdate + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.B2BPartnerContent; +import com.azure.resourcemanager.logic.models.BusinessIdentity; +import com.azure.resourcemanager.logic.models.PartnerContent; +import com.azure.resourcemanager.logic.models.PartnerType; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationAccountPartners CreateOrUpdate. */ +public final class IntegrationAccountPartnersCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a partner. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAPartner(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccountPartners() + .define("testPartner") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withPartnerType(PartnerType.B2B) + .withContent( + new PartnerContent() + .withB2B( + new B2BPartnerContent() + .withBusinessIdentities( + Arrays.asList(new BusinessIdentity().withQualifier("AA").withValue("ZZ"))))) + .withTags(mapOf()) + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### IntegrationAccountPartners_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountPartners Delete. */ +public final class IntegrationAccountPartnersDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_Delete.json + */ + /** + * Sample code: Delete a partner. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAPartner(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testPartner", Context.NONE); + } +} +``` + +### IntegrationAccountPartners_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountPartners Get. */ +public final class IntegrationAccountPartnersGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_Get.json + */ + /** + * Sample code: Get partner by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getPartnerByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testPartner", Context.NONE); + } +} +``` + +### IntegrationAccountPartners_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountPartners List. */ +public final class IntegrationAccountPartnersListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_List.json + */ + /** + * Sample code: Get partners by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getPartnersByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .list("testResourceGroup", "testIntegrationAccount", null, null, Context.NONE); + } +} +``` + +### IntegrationAccountPartners_ListContentCallbackUrl + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountPartners ListContentCallbackUrl. */ +public final class IntegrationAccountPartnersListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testPartner", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### IntegrationAccountSchemas_CreateOrUpdate + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.SchemaType; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationAccountSchemas CreateOrUpdate. */ +public final class IntegrationAccountSchemasCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_CreateOrUpdate.json + */ + /** + * Sample code: Create or update schema. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateSchema(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccountSchemas() + .define("testSchema") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withSchemaType(SchemaType.XML) + .withTags(mapOf("integrationAccountSchemaName", "IntegrationAccountSchema8120")) + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .withContent( + "\r\n" + + "\r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + "") + .withContentType("application/xml") + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### IntegrationAccountSchemas_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSchemas Delete. */ +public final class IntegrationAccountSchemasDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_Delete.json + */ + /** + * Sample code: Delete a schema by name. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteASchemaByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testSchema", Context.NONE); + } +} +``` + +### IntegrationAccountSchemas_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSchemas Get. */ +public final class IntegrationAccountSchemasGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_Get.json + */ + /** + * Sample code: Get schema by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getSchemaByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testSchema", Context.NONE); + } +} +``` + +### IntegrationAccountSchemas_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSchemas List. */ +public final class IntegrationAccountSchemasListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_List.json + */ + /** + * Sample code: Get schemas by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getSchemasByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .list("testResourceGroup", "", null, null, Context.NONE); + } +} +``` + +### IntegrationAccountSchemas_ListContentCallbackUrl + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountSchemas ListContentCallbackUrl. */ +public final class IntegrationAccountSchemasListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testSchema", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### IntegrationAccountSessions_CreateOrUpdate + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import java.io.IOException; + +/** Samples for IntegrationAccountSessions CreateOrUpdate. */ +public final class IntegrationAccountSessionsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an integration account session. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnIntegrationAccountSession(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountSessions() + .define("testsession123-ICN") + .withRegion((String) null) + .withExistingIntegrationAccount("testrg123", "testia123") + .withContent( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"controlNumber\":\"1234\",\"controlNumberChangedTime\":\"2017-02-21T22:30:11.9923759Z\"}", + Object.class, + SerializerEncoding.JSON)) + .create(); + } +} +``` + +### IntegrationAccountSessions_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSessions Delete. */ +public final class IntegrationAccountSessionsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_Delete.json + */ + /** + * Sample code: Delete an integration account session. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccountSession(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSessions() + .deleteWithResponse("testrg123", "testia123", "testsession123-ICN", Context.NONE); + } +} +``` + +### IntegrationAccountSessions_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSessions Get. */ +public final class IntegrationAccountSessionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_Get.json + */ + /** + * Sample code: Get an integration account session. + * + * @param manager Entry point to LogicManager. + */ + public static void getAnIntegrationAccountSession(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSessions() + .getWithResponse("testrg123", "testia123", "testsession123-ICN", Context.NONE); + } +} +``` + +### IntegrationAccountSessions_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSessions List. */ +public final class IntegrationAccountSessionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_List.json + */ + /** + * Sample code: Get a list of integration account sessions. + * + * @param manager Entry point to LogicManager. + */ + public static void getAListOfIntegrationAccountSessions(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccountSessions().list("testrg123", "testia123", null, null, Context.NONE); + } +} +``` + +### IntegrationAccounts_CreateOrUpdate + +```java +import com.azure.resourcemanager.logic.models.IntegrationAccountSku; +import com.azure.resourcemanager.logic.models.IntegrationAccountSkuName; + +/** Samples for IntegrationAccounts CreateOrUpdate. */ +public final class IntegrationAccountsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .define("testIntegrationAccount") + .withRegion("westus") + .withExistingResourceGroup("testResourceGroup") + .withSku(new IntegrationAccountSku().withName(IntegrationAccountSkuName.STANDARD)) + .create(); + } +} +``` + +### IntegrationAccounts_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts Delete. */ +public final class IntegrationAccountsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_Delete.json + */ + /** + * Sample code: Delete an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccounts().deleteWithResponse("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} +``` + +### IntegrationAccounts_GetByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts GetByResourceGroup. */ +public final class IntegrationAccountsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_Get.json + */ + /** + * Sample code: Get integration account by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getIntegrationAccountByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} +``` + +### IntegrationAccounts_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts List. */ +public final class IntegrationAccountsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListBySubscription.json + */ + /** + * Sample code: List integration accounts by subscription. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountsBySubscription(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccounts().list(null, Context.NONE); + } +} +``` + +### IntegrationAccounts_ListByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts ListByResourceGroup. */ +public final class IntegrationAccountsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListByResourceGroup.json + */ + /** + * Sample code: List integration accounts by resource group name. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountsByResourceGroupName( + com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccounts().listByResourceGroup("testResourceGroup", null, Context.NONE); + } +} +``` + +### IntegrationAccounts_ListCallbackUrl + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccounts ListCallbackUrl. */ +public final class IntegrationAccountsListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListCallbackUrl.json + */ + /** + * Sample code: List IntegrationAccount callback URL. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountCallbackURL(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .listCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2017-03-05T08:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### IntegrationAccounts_ListKeyVaultKeys + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.KeyVaultReference; +import com.azure.resourcemanager.logic.models.ListKeyVaultKeysDefinition; + +/** Samples for IntegrationAccounts ListKeyVaultKeys. */ +public final class IntegrationAccountsListKeyVaultKeysSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListKeyVaultKeys.json + */ + /** + * Sample code: Get Integration Account callback URL. + * + * @param manager Entry point to LogicManager. + */ + public static void getIntegrationAccountCallbackURL(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .listKeyVaultKeys( + "testResourceGroup", + "testIntegrationAccount", + new ListKeyVaultKeysDefinition() + .withKeyVault( + new KeyVaultReference() + .withId( + "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.KeyVault/vaults/testKeyVault")) + .withSkipToken("testSkipToken"), + Context.NONE); + } +} +``` + +### IntegrationAccounts_LogTrackingEvents + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.Context; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.EventLevel; +import com.azure.resourcemanager.logic.models.TrackingEvent; +import com.azure.resourcemanager.logic.models.TrackingEventErrorInfo; +import com.azure.resourcemanager.logic.models.TrackingEventsDefinition; +import com.azure.resourcemanager.logic.models.TrackingRecordType; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; + +/** Samples for IntegrationAccounts LogTrackingEvents. */ +public final class IntegrationAccountsLogTrackingEventsSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_LogTrackingEvents.json + */ + /** + * Sample code: Log a tracked event. + * + * @param manager Entry point to LogicManager. + */ + public static void logATrackedEvent(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccounts() + .logTrackingEventsWithResponse( + "testResourceGroup", + "testIntegrationAccount", + new TrackingEventsDefinition() + .withSourceType("Microsoft.Logic/workflows") + .withEvents( + Arrays + .asList( + new TrackingEvent() + .withEventLevel(EventLevel.INFORMATIONAL) + .withEventTime(OffsetDateTime.parse("2016-08-05T01:54:49.505567Z")) + .withRecordType(TrackingRecordType.AS2MESSAGE) + .withRecord( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"agreementProperties\":{\"agreementName\":\"testAgreement\",\"as2From\":\"testas2from\",\"as2To\":\"testas2to\",\"receiverPartnerName\":\"testPartner2\",\"senderPartnerName\":\"testPartner1\"},\"messageProperties\":{\"IsMessageEncrypted\":false,\"IsMessageSigned\":false,\"correlationMessageId\":\"Unique" + + " message" + + " identifier\",\"direction\":\"Receive\",\"dispositionType\":\"received-success\",\"fileName\":\"test\",\"isMdnExpected\":true,\"isMessageCompressed\":false,\"isMessageFailed\":false,\"isNrrEnabled\":true,\"mdnType\":\"Async\",\"messageId\":\"12345\"}}", + Object.class, + SerializerEncoding.JSON)) + .withError( + new TrackingEventErrorInfo() + .withMessage("Some error occurred") + .withCode("NotFound")))), + Context.NONE); + } +} +``` + +### IntegrationAccounts_RegenerateAccessKey + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.KeyType; +import com.azure.resourcemanager.logic.models.RegenerateActionParameter; + +/** Samples for IntegrationAccounts RegenerateAccessKey. */ +public final class IntegrationAccountsRegenerateAccessKeySamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_RegenerateAccessKey.json + */ + /** + * Sample code: Regenerate access key. + * + * @param manager Entry point to LogicManager. + */ + public static void regenerateAccessKey(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .regenerateAccessKeyWithResponse( + "testResourceGroup", + "testIntegrationAccount", + new RegenerateActionParameter().withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### IntegrationAccounts_Update + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.IntegrationAccount; +import com.azure.resourcemanager.logic.models.IntegrationAccountSku; +import com.azure.resourcemanager.logic.models.IntegrationAccountSkuName; + +/** Samples for IntegrationAccounts Update. */ +public final class IntegrationAccountsUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_Update.json + */ + /** + * Sample code: Patch an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void patchAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + IntegrationAccount resource = + manager + .integrationAccounts() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationAccount", Context.NONE) + .getValue(); + resource.update().withSku(new IntegrationAccountSku().withName(IntegrationAccountSkuName.STANDARD)).apply(); + } +} +``` + +### IntegrationServiceEnvironmentManagedApiOperations_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApiOperations List. */ +public final class IntegrationServiceEnvironmentManagedApiOperationsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_ListApiOperations.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApiOperations() + .list("testResourceGroup", "testIntegrationServiceEnvironment", "servicebus", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironmentManagedApis_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApis Delete. */ +public final class IntegrationServiceEnvironmentManagedApisDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_Delete.json + */ + /** + * Sample code: Deletes the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void deletesTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .delete("testResourceGroup", "testIntegrationServiceEnvironment", "servicebus", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironmentManagedApis_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApis Get. */ +public final class IntegrationServiceEnvironmentManagedApisGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_Get.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .getWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", "servicebus", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironmentManagedApis_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApis List. */ +public final class IntegrationServiceEnvironmentManagedApisListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_List.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .list("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironmentManagedApis_Put + +```java +/** Samples for IntegrationServiceEnvironmentManagedApis Put. */ +public final class IntegrationServiceEnvironmentManagedApisPutSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_Put.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .define("servicebus") + .withRegion("brazilsouth") + .withExistingIntegrationServiceEnvironment("testResourceGroup", "testIntegrationServiceEnvironment") + .create(); + } +} +``` + +### IntegrationServiceEnvironmentNetworkHealth_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentNetworkHealth Get. */ +public final class IntegrationServiceEnvironmentNetworkHealthGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_NetworkHealth.json + */ + /** + * Sample code: Gets the integration service environment network health. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentNetworkHealth( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentNetworkHealths() + .getWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironmentSkus_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentSkus List. */ +public final class IntegrationServiceEnvironmentSkusListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Skus.json + */ + /** + * Sample code: List integration service environment skus. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationServiceEnvironmentSkus(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentSkus() + .list("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironments_CreateOrUpdate + +```java +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmenEncryptionConfiguration; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmenEncryptionKeyReference; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentAccessEndpoint; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentAccessEndpointType; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentProperties; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSku; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSkuName; +import com.azure.resourcemanager.logic.models.NetworkConfiguration; +import com.azure.resourcemanager.logic.models.ResourceReference; +import java.util.Arrays; + +/** Samples for IntegrationServiceEnvironments CreateOrUpdate. */ +public final class IntegrationServiceEnvironmentsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Put.json + */ + /** + * Sample code: Create or update an integration service environment. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnIntegrationServiceEnvironment( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .define("testIntegrationServiceEnvironment") + .withRegion("brazilsouth") + .withExistingResourceGroup("testResourceGroup") + .withProperties( + new IntegrationServiceEnvironmentProperties() + .withNetworkConfiguration( + new NetworkConfiguration() + .withAccessEndpoint( + new IntegrationServiceEnvironmentAccessEndpoint() + .withType(IntegrationServiceEnvironmentAccessEndpointType.INTERNAL)) + .withSubnets( + Arrays + .asList( + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s1"), + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s2"), + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s3"), + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s4")))) + .withEncryptionConfiguration( + new IntegrationServiceEnvironmenEncryptionConfiguration() + .withEncryptionKeyReference( + new IntegrationServiceEnvironmenEncryptionKeyReference() + .withKeyVault( + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.KeyVault/vaults/testKeyVault")) + .withKeyName("testKeyName") + .withKeyVersion("13b261d30b984753869902d7f47f4d55")))) + .withSku( + new IntegrationServiceEnvironmentSku() + .withName(IntegrationServiceEnvironmentSkuName.PREMIUM) + .withCapacity(2)) + .create(); + } +} +``` + +### IntegrationServiceEnvironments_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments Delete. */ +public final class IntegrationServiceEnvironmentsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Delete.json + */ + /** + * Sample code: Delete an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .deleteWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironments_GetByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments GetByResourceGroup. */ +public final class IntegrationServiceEnvironmentsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Get.json + */ + /** + * Sample code: Get integration service environment by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getIntegrationServiceEnvironmentByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironments_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments List. */ +public final class IntegrationServiceEnvironmentsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ListBySubscription.json + */ + /** + * Sample code: List integration service environments by subscription. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationServiceEnvironmentsBySubscription( + com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationServiceEnvironments().list(null, Context.NONE); + } +} +``` + +### IntegrationServiceEnvironments_ListByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments ListByResourceGroup. */ +public final class IntegrationServiceEnvironmentsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ListByResourceGroup.json + */ + /** + * Sample code: List integration service environments by resource group name. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationServiceEnvironmentsByResourceGroupName( + com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationServiceEnvironments().listByResourceGroup("testResourceGroup", null, Context.NONE); + } +} +``` + +### IntegrationServiceEnvironments_Restart + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments Restart. */ +public final class IntegrationServiceEnvironmentsRestartSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Restart.json + */ + /** + * Sample code: Restarts an integration service environment. + * + * @param manager Entry point to LogicManager. + */ + public static void restartsAnIntegrationServiceEnvironment(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .restartWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironments_Update + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironment; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSku; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSkuName; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationServiceEnvironments Update. */ +public final class IntegrationServiceEnvironmentsUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Patch.json + */ + /** + * Sample code: Patch an integration service environment. + * + * @param manager Entry point to LogicManager. + */ + public static void patchAnIntegrationServiceEnvironment(com.azure.resourcemanager.logic.LogicManager manager) { + IntegrationServiceEnvironment resource = + manager + .integrationServiceEnvironments() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE) + .getValue(); + resource + .update() + .withTags(mapOf("tag1", "value1")) + .withSku( + new IntegrationServiceEnvironmentSku() + .withName(IntegrationServiceEnvironmentSkuName.DEVELOPER) + .withCapacity(0)) + .apply(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### Operations_List + +```java +import com.azure.core.util.Context; + +/** Samples for Operations List. */ +public final class OperationsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Operations_List.json + */ + /** + * Sample code: List Microsoft.Logic operations. + * + * @param manager Entry point to LogicManager. + */ + public static void listMicrosoftLogicOperations(com.azure.resourcemanager.logic.LogicManager manager) { + manager.operations().list(Context.NONE); + } +} +``` + +### WorkflowRunActionRepetitions_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitions Get. */ +public final class WorkflowRunActionRepetitionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitions_Get.json + */ + /** + * Sample code: Get a repetition. + * + * @param manager Entry point to LogicManager. + */ + public static void getARepetition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitions() + .getWithResponse( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", "000001", Context.NONE); + } +} +``` + +### WorkflowRunActionRepetitions_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitions List. */ +public final class WorkflowRunActionRepetitionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitions_List.json + */ + /** + * Sample code: List repetitions. + * + * @param manager Entry point to LogicManager. + */ + public static void listRepetitions(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitions() + .list("testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", Context.NONE); + } +} +``` + +### WorkflowRunActionRepetitions_ListExpressionTraces + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitions ListExpressionTraces. */ +public final class WorkflowRunActionRepetitionsListExpressionTracesSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitions_ListExpressionTraces.json + */ + /** + * Sample code: List expression traces for a repetition. + * + * @param manager Entry point to LogicManager. + */ + public static void listExpressionTracesForARepetition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitions() + .listExpressionTraces( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", "000001", Context.NONE); + } +} +``` + +### WorkflowRunActionRepetitionsRequestHistories_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitionsRequestHistories Get. */ +public final class WorkflowRunActionRepetitionsRequestHistoriesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json + */ + /** + * Sample code: Get a repetition request history. + * + * @param manager Entry point to LogicManager. + */ + public static void getARepetitionRequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitionsRequestHistories() + .getWithResponse( + "test-resource-group", + "test-workflow", + "08586776228332053161046300351", + "HTTP_Webhook", + "000001", + "08586611142732800686", + Context.NONE); + } +} +``` + +### WorkflowRunActionRepetitionsRequestHistories_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitionsRequestHistories List. */ +public final class WorkflowRunActionRepetitionsRequestHistoriesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitionsRequestHistories_List.json + */ + /** + * Sample code: List repetition request history. + * + * @param manager Entry point to LogicManager. + */ + public static void listRepetitionRequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitionsRequestHistories() + .list( + "test-resource-group", + "test-workflow", + "08586776228332053161046300351", + "HTTP_Webhook", + "000001", + Context.NONE); + } +} +``` + +### WorkflowRunActionRequestHistories_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRequestHistories Get. */ +public final class WorkflowRunActionRequestHistoriesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRequestHistories_Get.json + */ + /** + * Sample code: Get a request history. + * + * @param manager Entry point to LogicManager. + */ + public static void getARequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRequestHistories() + .getWithResponse( + "test-resource-group", + "test-workflow", + "08586776228332053161046300351", + "HTTP_Webhook", + "08586611142732800686", + Context.NONE); + } +} +``` + +### WorkflowRunActionRequestHistories_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRequestHistories List. */ +public final class WorkflowRunActionRequestHistoriesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRequestHistories_List.json + */ + /** + * Sample code: List a request history. + * + * @param manager Entry point to LogicManager. + */ + public static void listARequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRequestHistories() + .list( + "test-resource-group", "test-workflow", "08586776228332053161046300351", "HTTP_Webhook", Context.NONE); + } +} +``` + +### WorkflowRunActionScopeRepetitions_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionScopeRepetitions Get. */ +public final class WorkflowRunActionScopeRepetitionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionScopeRepetitions_Get.json + */ + /** + * Sample code: Get a scoped repetition. + * + * @param manager Entry point to LogicManager. + */ + public static void getAScopedRepetition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionScopeRepetitions() + .getWithResponse( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "for_each", "000000", Context.NONE); + } +} +``` + +### WorkflowRunActionScopeRepetitions_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionScopeRepetitions List. */ +public final class WorkflowRunActionScopeRepetitionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionScopeRepetitions_List.json + */ + /** + * Sample code: List the scoped repetitions. + * + * @param manager Entry point to LogicManager. + */ + public static void listTheScopedRepetitions(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionScopeRepetitions() + .list("testResourceGroup", "testFlow", "08586776228332053161046300351", "for_each", Context.NONE); + } +} +``` + +### WorkflowRunActions_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActions Get. */ +public final class WorkflowRunActionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActions_Get.json + */ + /** + * Sample code: Get a workflow run action. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowRunAction(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActions() + .getWithResponse( + "test-resource-group", "test-workflow", "08586676746934337772206998657CU22", "HTTP", Context.NONE); + } +} +``` + +### WorkflowRunActions_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActions List. */ +public final class WorkflowRunActionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActions_List.json + */ + /** + * Sample code: List a workflow run actions. + * + * @param manager Entry point to LogicManager. + */ + public static void listAWorkflowRunActions(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActions() + .list( + "test-resource-group", "test-workflow", "08586676746934337772206998657CU22", null, null, Context.NONE); + } +} +``` + +### WorkflowRunActions_ListExpressionTraces + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActions ListExpressionTraces. */ +public final class WorkflowRunActionsListExpressionTracesSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActions_ListExpressionTraces.json + */ + /** + * Sample code: List expression traces. + * + * @param manager Entry point to LogicManager. + */ + public static void listExpressionTraces(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActions() + .listExpressionTraces( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", Context.NONE); + } +} +``` + +### WorkflowRunOperations_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunOperations Get. */ +public final class WorkflowRunOperationsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunOperations_Get.json + */ + /** + * Sample code: Get a run operation. + * + * @param manager Entry point to LogicManager. + */ + public static void getARunOperation(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunOperations() + .getWithResponse( + "testResourceGroup", + "testFlow", + "08586774142730039209110422528", + "ebdcbbde-c4db-43ec-987c-fd0f7726f43b", + Context.NONE); + } +} +``` + +### WorkflowRuns_Cancel + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRuns Cancel. */ +public final class WorkflowRunsCancelSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRuns_Cancel.json + */ + /** + * Sample code: Cancel a workflow run. + * + * @param manager Entry point to LogicManager. + */ + public static void cancelAWorkflowRun(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRuns() + .cancelWithResponse( + "test-resource-group", "test-workflow", "08586676746934337772206998657CU22", Context.NONE); + } +} +``` + +### WorkflowRuns_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRuns Get. */ +public final class WorkflowRunsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRuns_Get.json + */ + /** + * Sample code: Get a run for a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void getARunForAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRuns() + .getWithResponse("test-resource-group", "test-workflow", "08586676746934337772206998657CU22", Context.NONE); + } +} +``` + +### WorkflowRuns_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRuns List. */ +public final class WorkflowRunsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRuns_List.json + */ + /** + * Sample code: List workflow runs. + * + * @param manager Entry point to LogicManager. + */ + public static void listWorkflowRuns(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowRuns().list("test-resource-group", "test-workflow", null, null, Context.NONE); + } +} +``` + +### WorkflowTriggerHistories_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggerHistories Get. */ +public final class WorkflowTriggerHistoriesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggerHistories_Get.json + */ + /** + * Sample code: Get a workflow trigger history. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowTriggerHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggerHistories() + .getWithResponse( + "testResourceGroup", + "testWorkflowName", + "testTriggerName", + "08586676746934337772206998657CU22", + Context.NONE); + } +} +``` + +### WorkflowTriggerHistories_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggerHistories List. */ +public final class WorkflowTriggerHistoriesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggerHistories_List.json + */ + /** + * Sample code: List a workflow trigger history. + * + * @param manager Entry point to LogicManager. + */ + public static void listAWorkflowTriggerHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggerHistories() + .list("testResourceGroup", "testWorkflowName", "testTriggerName", null, null, Context.NONE); + } +} +``` + +### WorkflowTriggerHistories_Resubmit + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggerHistories Resubmit. */ +public final class WorkflowTriggerHistoriesResubmitSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggerHistories_Resubmit.json + */ + /** + * Sample code: Resubmit a workflow run based on the trigger history. + * + * @param manager Entry point to LogicManager. + */ + public static void resubmitAWorkflowRunBasedOnTheTriggerHistory( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggerHistories() + .resubmitWithResponse( + "testResourceGroup", "testWorkflowName", "testTriggerName", "testHistoryName", Context.NONE); + } +} +``` + +### WorkflowTriggers_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers Get. */ +public final class WorkflowTriggersGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_Get.json + */ + /** + * Sample code: Get a workflow trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowTrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().getWithResponse("test-resource-group", "test-workflow", "manual", Context.NONE); + } +} +``` + +### WorkflowTriggers_GetSchemaJson + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers GetSchemaJson. */ +public final class WorkflowTriggersGetSchemaJsonSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_GetSchemaJson.json + */ + /** + * Sample code: Get trigger schema. + * + * @param manager Entry point to LogicManager. + */ + public static void getTriggerSchema(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggers() + .getSchemaJsonWithResponse("testResourceGroup", "testWorkflow", "testTrigger", Context.NONE); + } +} +``` + +### WorkflowTriggers_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers List. */ +public final class WorkflowTriggersListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_List.json + */ + /** + * Sample code: List workflow triggers. + * + * @param manager Entry point to LogicManager. + */ + public static void listWorkflowTriggers(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().list("test-resource-group", "test-workflow", null, null, Context.NONE); + } +} +``` + +### WorkflowTriggers_ListCallbackUrl + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers ListCallbackUrl. */ +public final class WorkflowTriggersListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_ListCallbackUrl.json + */ + /** + * Sample code: Get the callback URL for a trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheCallbackURLForATrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggers() + .listCallbackUrlWithResponse("test-resource-group", "test-workflow", "manual", Context.NONE); + } +} +``` + +### WorkflowTriggers_Reset + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers Reset. */ +public final class WorkflowTriggersResetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_Reset.json + */ + /** + * Sample code: Reset trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void resetTrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().resetWithResponse("testResourceGroup", "testWorkflow", "testTrigger", Context.NONE); + } +} +``` + +### WorkflowTriggers_Run + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers Run. */ +public final class WorkflowTriggersRunSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_Run.json + */ + /** + * Sample code: Run a workflow trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void runAWorkflowTrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().runWithResponse("test-resource-group", "test-workflow", "manual", Context.NONE); + } +} +``` + +### WorkflowTriggers_SetState + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.SetTriggerStateActionDefinition; +import com.azure.resourcemanager.logic.models.WorkflowTriggerReference; + +/** Samples for WorkflowTriggers SetState. */ +public final class WorkflowTriggersSetStateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_SetState.json + */ + /** + * Sample code: Set trigger state. + * + * @param manager Entry point to LogicManager. + */ + public static void setTriggerState(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggers() + .setStateWithResponse( + "testResourceGroup", + "testWorkflow", + "testTrigger", + new SetTriggerStateActionDefinition() + .withSource( + new WorkflowTriggerReference() + .withId( + "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sourceResGroup/providers/Microsoft.Logic/workflows/sourceWorkflow/triggers/sourceTrigger")), + Context.NONE); + } +} +``` + +### WorkflowVersionTriggers_ListCallbackUrl + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for WorkflowVersionTriggers ListCallbackUrl. */ +public final class WorkflowVersionTriggersListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowVersionTriggers_ListCallbackUrl.json + */ + /** + * Sample code: Get the callback url for a trigger of a workflow version. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheCallbackUrlForATriggerOfAWorkflowVersion( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowVersionTriggers() + .listCallbackUrlWithResponse( + "testResourceGroup", + "testWorkflowName", + "testWorkflowVersionId", + "testTriggerName", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2017-03-05T08:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### WorkflowVersions_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowVersions Get. */ +public final class WorkflowVersionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowVersions_Get.json + */ + /** + * Sample code: Get a workflow version. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowVersion(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowVersions() + .getWithResponse("test-resource-group", "test-workflow", "08586676824806722526", Context.NONE); + } +} +``` + +### WorkflowVersions_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowVersions List. */ +public final class WorkflowVersionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowVersions_List.json + */ + /** + * Sample code: List a workflows versions. + * + * @param manager Entry point to LogicManager. + */ + public static void listAWorkflowsVersions(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowVersions().list("test-resource-group", "test-workflow", null, Context.NONE); + } +} +``` + +### Workflows_CreateOrUpdate + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowParameter; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for Workflows CreateOrUpdate. */ +public final class WorkflowsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .workflows() + .define("test-workflow") + .withRegion("brazilsouth") + .withExistingResourceGroup("test-resource-group") + .withTags(mapOf()) + .withIntegrationAccount( + new ResourceReference() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account")) + .withDefinition( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{\"Find_pet_by_ID\":{\"type\":\"ApiConnection\",\"inputs\":{\"path\":\"/pet/@{encodeURIComponent('1')}\",\"method\":\"get\",\"host\":{\"connection\":{\"name\":\"@parameters('$connections')['test-custom-connector']['connectionId']\"}}},\"runAfter\":{}}},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"parameters\":{\"$connections\":{\"type\":\"Object\",\"defaultValue\":{}}},\"triggers\":{\"manual\":{\"type\":\"Request\",\"inputs\":{\"schema\":{}},\"kind\":\"Http\"}}}", + Object.class, + SerializerEncoding.JSON)) + .withParameters( + mapOf( + "$connections", + new WorkflowParameter() + .withValue( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"test-custom-connector\":{\"connectionId\":\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Web/connections/test-custom-connector\",\"connectionName\":\"test-custom-connector\",\"id\":\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/test-custom-connector\"}}", + Object.class, + SerializerEncoding.JSON)))) + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### Workflows_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows Delete. */ +public final class WorkflowsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Delete.json + */ + /** + * Sample code: Delete a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().deleteWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} +``` + +### Workflows_Disable + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows Disable. */ +public final class WorkflowsDisableSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Disable.json + */ + /** + * Sample code: Disable a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void disableAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().disableWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} +``` + +### Workflows_Enable + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows Enable. */ +public final class WorkflowsEnableSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Enable.json + */ + /** + * Sample code: Enable a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void enableAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().enableWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} +``` + +### Workflows_GenerateUpgradedDefinition + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GenerateUpgradedDefinitionParameters; + +/** Samples for Workflows GenerateUpgradedDefinition. */ +public final class WorkflowsGenerateUpgradedDefinitionSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_GenerateUpgradedDefinition.json + */ + /** + * Sample code: Generate an upgraded definition. + * + * @param manager Entry point to LogicManager. + */ + public static void generateAnUpgradedDefinition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .generateUpgradedDefinitionWithResponse( + "test-resource-group", + "test-workflow", + new GenerateUpgradedDefinitionParameters().withTargetSchemaVersion("2016-06-01"), + Context.NONE); + } +} +``` + +### Workflows_GetByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows GetByResourceGroup. */ +public final class WorkflowsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Get.json + */ + /** + * Sample code: Get a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().getByResourceGroupWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} +``` + +### Workflows_List + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows List. */ +public final class WorkflowsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListBySubscription.json + */ + /** + * Sample code: List all workflows in a subscription. + * + * @param manager Entry point to LogicManager. + */ + public static void listAllWorkflowsInASubscription(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().list(null, null, Context.NONE); + } +} +``` + +### Workflows_ListByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows ListByResourceGroup. */ +public final class WorkflowsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListByResourceGroup.json + */ + /** + * Sample code: List all workflows in a resource group. + * + * @param manager Entry point to LogicManager. + */ + public static void listAllWorkflowsInAResourceGroup(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().listByResourceGroup("test-resource-group", null, null, Context.NONE); + } +} +``` + +### Workflows_ListCallbackUrl + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for Workflows ListCallbackUrl. */ +public final class WorkflowsListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListCallbackUrl.json + */ + /** + * Sample code: Get callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .listCallbackUrlWithResponse( + "testResourceGroup", + "testWorkflow", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### Workflows_ListSwagger + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows ListSwagger. */ +public final class WorkflowsListSwaggerSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListSwagger.json + */ + /** + * Sample code: Get the swagger for a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheSwaggerForAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().listSwaggerWithResponse("testResourceGroup", "testWorkflowName", Context.NONE); + } +} +``` + +### Workflows_Move + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.WorkflowReference; + +/** Samples for Workflows Move. */ +public final class WorkflowsMoveSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Move.json + */ + /** + * Sample code: Move a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void moveAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .move( + "testResourceGroup", + "testWorkflow", + new WorkflowReference() + .withId( + "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/newResourceGroup/providers/Microsoft.Logic/workflows/newWorkflowName"), + Context.NONE); + } +} +``` + +### Workflows_RegenerateAccessKey + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.KeyType; +import com.azure.resourcemanager.logic.models.RegenerateActionParameter; + +/** Samples for Workflows RegenerateAccessKey. */ +public final class WorkflowsRegenerateAccessKeySamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_RegenerateAccessKey.json + */ + /** + * Sample code: Regenerate the callback URL access key for request triggers. + * + * @param manager Entry point to LogicManager. + */ + public static void regenerateTheCallbackURLAccessKeyForRequestTriggers( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .regenerateAccessKeyWithResponse( + "testResourceGroup", + "testWorkflowName", + new RegenerateActionParameter().withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### Workflows_Update + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows Update. */ +public final class WorkflowsUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Update.json + */ + /** + * Sample code: Patch a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void patchAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().updateWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} +``` + +### Workflows_ValidateByLocation + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.Context; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.fluent.models.WorkflowInner; +import com.azure.resourcemanager.logic.models.ResourceReference; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for Workflows ValidateByLocation. */ +public final class WorkflowsValidateByLocationSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ValidateByLocation.json + */ + /** + * Sample code: Validate a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void validateAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .workflows() + .validateByLocationWithResponse( + "test-resource-group", + "brazilsouth", + "test-workflow", + new WorkflowInner() + .withLocation("brazilsouth") + .withTags(mapOf()) + .withIntegrationAccount( + new ResourceReference() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account")) + .withDefinition( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"parameters\":{},\"triggers\":{}}", + Object.class, + SerializerEncoding.JSON)), + Context.NONE); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### Workflows_ValidateByResourceGroup + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.Context; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.fluent.models.WorkflowInner; +import com.azure.resourcemanager.logic.models.ResourceReference; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for Workflows ValidateByResourceGroup. */ +public final class WorkflowsValidateByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ValidateByResourceGroup.json + */ + /** + * Sample code: Validate a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void validateAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .workflows() + .validateByResourceGroupWithResponse( + "test-resource-group", + "test-workflow", + new WorkflowInner() + .withLocation("brazilsouth") + .withTags(mapOf()) + .withIntegrationAccount( + new ResourceReference() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account")) + .withDefinition( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"parameters\":{},\"triggers\":{}}", + Object.class, + SerializerEncoding.JSON)), + Context.NONE); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + diff --git a/sdk/logic/azure-resourcemanager-logic/pom.xml b/sdk/logic/azure-resourcemanager-logic/pom.xml index c5f406c10de3..2a289550b872 100644 --- a/sdk/logic/azure-resourcemanager-logic/pom.xml +++ b/sdk/logic/azure-resourcemanager-logic/pom.xml @@ -1,55 +1,55 @@ - 4.0.0 - - com.azure - azure-client-sdk-parent - 1.7.0 - ../../parents/azure-client-sdk-parent - + 4.0.0 + + com.azure + azure-client-sdk-parent + 1.7.0 + ../../parents/azure-client-sdk-parent + - com.azure.resourcemanager - azure-resourcemanager-logic - 1.0.0-beta.2 - jar + com.azure.resourcemanager + azure-resourcemanager-logic + 1.0.0-beta.2 + jar - Microsoft Azure SDK for Logic Management - This package contains Microsoft Azure SDK for Logic Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for Azure Logic Apps. Package tag package-2019-05. - https://github.com/Azure/azure-sdk-for-java + Microsoft Azure SDK for Logic Management + This package contains Microsoft Azure SDK for Logic Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for Azure Logic Apps. Package tag package-2019-05. + https://github.com/Azure/azure-sdk-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + - - https://github.com/Azure/azure-sdk-for-java - scm:git:git@github.com:Azure/azure-sdk-for-java.git - scm:git:git@github.com:Azure/azure-sdk-for-java.git - HEAD - - - - microsoft - Microsoft - - - - UTF-8 - true - - - - com.azure - azure-core - 1.26.0 - - - com.azure - azure-core-management - 1.5.3 - - + + https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + + microsoft + Microsoft + + + + UTF-8 + true + + + + com.azure + azure-core + 1.26.0 + + + com.azure + azure-core-management + 1.5.3 + + diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/LogicManager.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/LogicManager.java index a41e824594a7..82f8d5566915 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/LogicManager.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/LogicManager.java @@ -8,8 +8,8 @@ import com.azure.core.http.HttpClient; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; -import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; @@ -17,6 +17,7 @@ import com.azure.core.http.policy.RequestIdPolicy; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; +import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; @@ -81,6 +82,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; +import java.util.stream.Collectors; /** Entry point to LogicManager. REST API for Azure Logic Apps. */ public final class LogicManager { @@ -176,11 +178,12 @@ public static Configurable configure() { /** The Configurable allowing configurations to be set. */ public static final class Configurable { - private final ClientLogger logger = new ClientLogger(Configurable.class); + private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); private HttpClient httpClient; private HttpLogOptions httpLogOptions; private final List policies = new ArrayList<>(); + private final List scopes = new ArrayList<>(); private RetryPolicy retryPolicy; private Duration defaultPollInterval; @@ -220,6 +223,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) { return this; } + /** + * Adds the scope to permission sets. + * + * @param scope the scope. + * @return the configurable object itself. + */ + public Configurable withScope(String scope) { + this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null.")); + return this; + } + /** * Sets the retry policy to the HTTP pipeline. * @@ -238,9 +252,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { * @return the configurable object itself. */ public Configurable withDefaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null."); + this.defaultPollInterval = + Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null."); if (this.defaultPollInterval.isNegative()) { - throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative")); + throw LOGGER + .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative")); } return this; } @@ -276,20 +292,33 @@ public LogicManager authenticate(TokenCredential credential, AzureProfile profil userAgentBuilder.append(" (auto-generated)"); } + if (scopes.isEmpty()) { + scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default"); + } if (retryPolicy == null) { retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); } List policies = new ArrayList<>(); policies.add(new UserAgentPolicy(userAgentBuilder.toString())); policies.add(new RequestIdPolicy()); + policies + .addAll( + this + .policies + .stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .collect(Collectors.toList())); HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); + policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); policies - .add( - new BearerTokenAuthenticationPolicy( - credential, profile.getEnvironment().getManagementEndpoint() + "/.default")); - policies.addAll(this.policies); + .addAll( + this + .policies + .stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) + .collect(Collectors.toList())); HttpPolicyProviders.addAfterRetryPolicies(policies); policies.add(new HttpLoggingPolicy(httpLogOptions)); HttpPipeline httpPipeline = diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAgreementsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAgreementsClient.java index ef871c4a2b1b..4bac5569ec48 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAgreementsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAgreementsClient.java @@ -23,7 +23,7 @@ public interface IntegrationAccountAgreementsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -39,7 +39,7 @@ public interface IntegrationAccountAgreementsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -69,7 +69,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -105,7 +105,7 @@ IntegrationAccountAgreementInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account agreement. + * @return the integration account agreement along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -138,7 +138,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( @@ -174,7 +174,7 @@ WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listContentCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAssembliesClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAssembliesClient.java index b4a73aca4ba2..f2b9653aa068 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAssembliesClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAssembliesClient.java @@ -22,7 +22,7 @@ public interface IntegrationAccountAssembliesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -36,7 +36,7 @@ public interface IntegrationAccountAssembliesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -66,7 +66,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -102,7 +102,7 @@ AssemblyDefinitionInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the assembly definition. + * @return the assembly definition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -135,7 +135,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( @@ -166,7 +166,7 @@ WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url for an integration account assembly. + * @return the content callback url for an integration account assembly along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listContentCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountBatchConfigurationsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountBatchConfigurationsClient.java index 41f4a3b8f27b..63a927120fdf 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountBatchConfigurationsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountBatchConfigurationsClient.java @@ -24,7 +24,7 @@ public interface IntegrationAccountBatchConfigurationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -38,7 +38,7 @@ public interface IntegrationAccountBatchConfigurationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -68,7 +68,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -104,7 +104,7 @@ BatchConfigurationInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the batch configuration resource definition. + * @return the batch configuration resource definition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -137,7 +137,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountCertificatesClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountCertificatesClient.java index 2de63e608397..3d0d3f337d64 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountCertificatesClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountCertificatesClient.java @@ -21,7 +21,7 @@ public interface IntegrationAccountCertificatesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -36,7 +36,7 @@ public interface IntegrationAccountCertificatesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -67,7 +67,7 @@ IntegrationAccountCertificateInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -103,7 +103,7 @@ IntegrationAccountCertificateInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account certificate. + * @return the integration account certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -136,7 +136,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountMapsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountMapsClient.java index 03dfae63b1a0..9bf481f5b718 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountMapsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountMapsClient.java @@ -23,7 +23,7 @@ public interface IntegrationAccountMapsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -39,7 +39,7 @@ public interface IntegrationAccountMapsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -69,14 +69,15 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( String resourceGroupName, String integrationAccountName, String mapName, Context context); /** - * Creates or updates an integration account map. + * Creates or updates an integration account map. If the map is larger than 4 MB, you need to store the map in an + * Azure blob and use the blob's Shared Access Signature (SAS) URL as the 'contentLink' property value. * * @param resourceGroupName The resource group name. * @param integrationAccountName The integration account name. @@ -92,7 +93,8 @@ IntegrationAccountMapInner createOrUpdate( String resourceGroupName, String integrationAccountName, String mapName, IntegrationAccountMapInner map); /** - * Creates or updates an integration account map. + * Creates or updates an integration account map. If the map is larger than 4 MB, you need to store the map in an + * Azure blob and use the blob's Shared Access Signature (SAS) URL as the 'contentLink' property value. * * @param resourceGroupName The resource group name. * @param integrationAccountName The integration account name. @@ -102,7 +104,7 @@ IntegrationAccountMapInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account map. + * @return the integration account map along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -135,7 +137,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( @@ -171,7 +173,7 @@ WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listContentCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountPartnersClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountPartnersClient.java index 3a1f5880b7ae..636f7b617fd3 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountPartnersClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountPartnersClient.java @@ -23,7 +23,7 @@ public interface IntegrationAccountPartnersClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -39,7 +39,7 @@ public interface IntegrationAccountPartnersClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -69,7 +69,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -105,7 +105,7 @@ IntegrationAccountPartnerInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account partner. + * @return the integration account partner along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -138,7 +138,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( @@ -174,7 +174,7 @@ WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listContentCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSchemasClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSchemasClient.java index 0b2ed3442082..a2a0f2bf005f 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSchemasClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSchemasClient.java @@ -23,7 +23,7 @@ public interface IntegrationAccountSchemasClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -39,7 +39,7 @@ public interface IntegrationAccountSchemasClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -69,7 +69,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -105,7 +105,7 @@ IntegrationAccountSchemaInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account schema. + * @return the integration account schema along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -138,7 +138,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( @@ -174,7 +174,7 @@ WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listContentCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSessionsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSessionsClient.java index 2536b3d22052..ace0c66e853c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSessionsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSessionsClient.java @@ -21,7 +21,7 @@ public interface IntegrationAccountSessionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -37,7 +37,7 @@ public interface IntegrationAccountSessionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -67,7 +67,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -103,7 +103,7 @@ IntegrationAccountSessionInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account session. + * @return the integration account session along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -136,7 +136,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountsClient.java index eb7c0cf3cb6f..62d508d35912 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountsClient.java @@ -24,7 +24,7 @@ public interface IntegrationAccountsClient { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -37,7 +37,7 @@ public interface IntegrationAccountsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Integer top, Context context); @@ -49,7 +49,7 @@ public interface IntegrationAccountsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); @@ -63,7 +63,7 @@ public interface IntegrationAccountsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Integer top, Context context); @@ -90,7 +90,7 @@ public interface IntegrationAccountsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByResourceGroupWithResponse( @@ -121,7 +121,7 @@ IntegrationAccountInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -155,7 +155,7 @@ IntegrationAccountInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse( @@ -185,7 +185,7 @@ Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse(String resourceGroupName, String integrationAccountName, Context context); @@ -215,7 +215,7 @@ CallbackUrlInner listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account callback URL. + * @return the integration account callback URL along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listCallbackUrlWithResponse( @@ -230,7 +230,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listKeyVaultKeys( @@ -246,7 +246,7 @@ PagedIterable listKeyVaultKeys( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listKeyVaultKeys( @@ -279,7 +279,7 @@ void logTrackingEvents( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response logTrackingEventsWithResponse( @@ -313,7 +313,7 @@ IntegrationAccountInner regenerateAccessKey( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response regenerateAccessKeyWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApiOperationsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApiOperationsClient.java index 2afc3696b39e..85b8f69d76bc 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApiOperationsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApiOperationsClient.java @@ -24,7 +24,7 @@ public interface IntegrationServiceEnvironmentManagedApiOperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -40,7 +40,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApisClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApisClient.java index afc4aeea327b..b44f85b5fb11 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApisClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApisClient.java @@ -11,7 +11,7 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.logic.fluent.models.ManagedApiInner; +import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner; /** * An instance of this class provides access to all the operations defined in @@ -26,10 +26,11 @@ public interface IntegrationServiceEnvironmentManagedApisClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName); + PagedIterable list( + String resourceGroup, String integrationServiceEnvironmentName); /** * Gets the integration service environment managed Apis. @@ -40,10 +41,10 @@ public interface IntegrationServiceEnvironmentManagedApisClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( + PagedIterable list( String resourceGroup, String integrationServiceEnvironmentName, Context context); /** @@ -58,7 +59,8 @@ PagedIterable list( * @return the integration service environment managed Api. */ @ServiceMethod(returns = ReturnType.SINGLE) - ManagedApiInner get(String resourceGroup, String integrationServiceEnvironmentName, String apiName); + IntegrationServiceEnvironmentManagedApiInner get( + String resourceGroup, String integrationServiceEnvironmentName, String apiName); /** * Gets the integration service environment managed Api. @@ -70,10 +72,10 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Api. + * @return the integration service environment managed Api along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + Response getWithResponse( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); /** @@ -82,14 +84,19 @@ Response getWithResponse( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the {@link SyncPoller} for polling of the integration service environment managed api. */ - @ServiceMethod(returns = ReturnType.SINGLE) - SyncPoller, ManagedApiInner> beginPut( - String resourceGroup, String integrationServiceEnvironmentName, String apiName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, IntegrationServiceEnvironmentManagedApiInner> + beginPut( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi); /** * Puts the integration service environment managed Api. @@ -97,15 +104,21 @@ SyncPoller, ManagedApiInner> beginPut( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the {@link SyncPoller} for polling of the integration service environment managed api. */ - @ServiceMethod(returns = ReturnType.SINGLE) - SyncPoller, ManagedApiInner> beginPut( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, IntegrationServiceEnvironmentManagedApiInner> + beginPut( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, + Context context); /** * Puts the integration service environment managed Api. @@ -113,13 +126,18 @@ SyncPoller, ManagedApiInner> beginPut( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api. */ @ServiceMethod(returns = ReturnType.SINGLE) - ManagedApiInner put(String resourceGroup, String integrationServiceEnvironmentName, String apiName); + IntegrationServiceEnvironmentManagedApiInner put( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi); /** * Puts the integration service environment managed Api. @@ -127,15 +145,20 @@ SyncPoller, ManagedApiInner> beginPut( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api. */ @ServiceMethod(returns = ReturnType.SINGLE) - ManagedApiInner put( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); + IntegrationServiceEnvironmentManagedApiInner put( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, + Context context); /** * Deletes the integration service environment managed Api. @@ -146,9 +169,9 @@ ManagedApiInner put( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroup, String integrationServiceEnvironmentName, String apiName); @@ -162,9 +185,9 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentNetworkHealthsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentNetworkHealthsClient.java index b3b9c6393c74..d4ceed28f1bf 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentNetworkHealthsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentNetworkHealthsClient.java @@ -39,7 +39,7 @@ Map get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment network health. + * @return the integration service environment network health along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response> getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentSkusClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentSkusClient.java index f72ef85f4499..f41ca435fecd 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentSkusClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentSkusClient.java @@ -22,7 +22,7 @@ public interface IntegrationServiceEnvironmentSkusClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -37,7 +37,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentsClient.java index 1751c7e4cd96..09bee934b264 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentsClient.java @@ -20,7 +20,8 @@ public interface IntegrationServiceEnvironmentsClient { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -33,7 +34,8 @@ public interface IntegrationServiceEnvironmentsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Integer top, Context context); @@ -45,7 +47,8 @@ public interface IntegrationServiceEnvironmentsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroup); @@ -59,7 +62,8 @@ public interface IntegrationServiceEnvironmentsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup( @@ -88,7 +92,7 @@ IntegrationServiceEnvironmentInner getByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByResourceGroupWithResponse( @@ -103,9 +107,9 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationServiceEnvironmentInner> beginCreateOrUpdate( String resourceGroup, String integrationServiceEnvironmentName, @@ -121,9 +125,9 @@ SyncPoller, IntegrationServiceEnv * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationServiceEnvironmentInner> beginCreateOrUpdate( String resourceGroup, String integrationServiceEnvironmentName, @@ -175,9 +179,9 @@ IntegrationServiceEnvironmentInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationServiceEnvironmentInner> beginUpdate( String resourceGroup, String integrationServiceEnvironmentName, @@ -193,9 +197,9 @@ SyncPoller, IntegrationServiceEnv * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationServiceEnvironmentInner> beginUpdate( String resourceGroup, String integrationServiceEnvironmentName, @@ -259,7 +263,7 @@ IntegrationServiceEnvironmentInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse(String resourceGroup, String integrationServiceEnvironmentName, Context context); @@ -285,7 +289,7 @@ IntegrationServiceEnvironmentInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response restartWithResponse(String resourceGroup, String integrationServiceEnvironmentName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/OperationsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/OperationsClient.java index ff353084183a..de2648426be8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/OperationsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/OperationsClient.java @@ -17,7 +17,7 @@ public interface OperationsClient { * * @throws com.azure.core.management.exception.ManagementException 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 the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -29,7 +29,7 @@ public interface OperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsClient.java index 5957f396754f..00c3761c7bc4 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsClient.java @@ -24,7 +24,7 @@ public interface WorkflowRunActionRepetitionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -41,7 +41,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -76,7 +76,7 @@ WorkflowRunActionRepetitionDefinitionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action repetition. + * @return a workflow run action repetition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -98,7 +98,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listExpressionTraces( @@ -116,7 +116,7 @@ PagedIterable listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listExpressionTraces( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsRequestHistoriesClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsRequestHistoriesClient.java index 3c9157740d53..ef92ad20686c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsRequestHistoriesClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsRequestHistoriesClient.java @@ -27,7 +27,7 @@ public interface WorkflowRunActionRepetitionsRequestHistoriesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -45,7 +45,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -92,7 +92,7 @@ RequestHistoryInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run repetition request history. + * @return a workflow run repetition request history along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRequestHistoriesClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRequestHistoriesClient.java index 94963ee7f578..222d9122fb82 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRequestHistoriesClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRequestHistoriesClient.java @@ -25,7 +25,7 @@ public interface WorkflowRunActionRequestHistoriesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -42,7 +42,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -77,7 +77,7 @@ RequestHistoryInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run request history. + * @return a workflow run request history along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionScopeRepetitionsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionScopeRepetitionsClient.java index 41e6fd9505ca..56071b7d5976 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionScopeRepetitionsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionScopeRepetitionsClient.java @@ -25,7 +25,7 @@ public interface WorkflowRunActionScopeRepetitionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -42,7 +42,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -77,7 +77,7 @@ WorkflowRunActionRepetitionDefinitionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action scoped repetition. + * @return a workflow run action scoped repetition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionsClient.java index fa8a1c8007c2..d3abc42bcffe 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionsClient.java @@ -23,7 +23,7 @@ public interface WorkflowRunActionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workflowName, String runName); @@ -40,7 +40,7 @@ public interface WorkflowRunActionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -72,7 +72,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action. + * @return a workflow run action along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -88,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listExpressionTraces( @@ -105,7 +105,7 @@ PagedIterable listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listExpressionTraces( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunOperationsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunOperationsClient.java index c5d66ccf924d..4bb5cce6d26d 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunOperationsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunOperationsClient.java @@ -38,7 +38,7 @@ public interface WorkflowRunOperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an operation for a run. + * @return an operation for a run along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunsClient.java index 212c5c0f8f0b..17b1093614c8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunsClient.java @@ -21,7 +21,7 @@ public interface WorkflowRunsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workflowName); @@ -38,7 +38,7 @@ public interface WorkflowRunsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -68,7 +68,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run. + * @return a workflow run along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -97,7 +97,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response cancelWithResponse(String resourceGroupName, String workflowName, String runName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggerHistoriesClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggerHistoriesClient.java index d401dc6aee91..434088c18a80 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggerHistoriesClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggerHistoriesClient.java @@ -22,7 +22,7 @@ public interface WorkflowTriggerHistoriesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workflowName, String triggerName); @@ -40,7 +40,7 @@ public interface WorkflowTriggerHistoriesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -75,7 +75,7 @@ WorkflowTriggerHistoryInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger history. + * @return a workflow trigger history along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -108,7 +108,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response resubmitWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggersClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggersClient.java index 28c3500738ad..ee85e4725bf4 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggersClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggersClient.java @@ -24,7 +24,7 @@ public interface WorkflowTriggersClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workflowName); @@ -40,7 +40,7 @@ public interface WorkflowTriggersClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -70,7 +70,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger. + * @return a workflow trigger along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -99,7 +99,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response resetWithResponse( @@ -128,7 +128,7 @@ Response resetWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response runWithResponse(String resourceGroupName, String workflowName, String triggerName, Context context); @@ -157,7 +157,7 @@ Response resetWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the trigger schema as JSON. + * @return the trigger schema as JSON along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getSchemaJsonWithResponse( @@ -189,7 +189,7 @@ void setState( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response setStateWithResponse( @@ -223,7 +223,7 @@ Response setStateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback URL for a workflow trigger. + * @return the callback URL for a workflow trigger along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionTriggersClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionTriggersClient.java index 92f75c88297d..55dc5ae9a283 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionTriggersClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionTriggersClient.java @@ -41,7 +41,7 @@ WorkflowTriggerCallbackUrlInner listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback url for a trigger of a workflow version. + * @return the callback url for a trigger of a workflow version along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionsClient.java index 83b3633ba3ab..44786db3dba2 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionsClient.java @@ -21,7 +21,7 @@ public interface WorkflowVersionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workflowName); @@ -36,7 +36,7 @@ public interface WorkflowVersionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -66,7 +66,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow version. + * @return a workflow version along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowsClient.java index fc9193bed4e4..98144c8662f3 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowsClient.java @@ -25,7 +25,7 @@ public interface WorkflowsClient { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -40,7 +40,7 @@ public interface WorkflowsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Integer top, String filter, Context context); @@ -52,7 +52,7 @@ public interface WorkflowsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); @@ -68,7 +68,7 @@ public interface WorkflowsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup( @@ -96,7 +96,7 @@ PagedIterable listByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByResourceGroupWithResponse( @@ -126,7 +126,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -154,7 +154,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse(String resourceGroupName, String workflowName, Context context); @@ -180,7 +180,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse(String resourceGroupName, String workflowName, Context context); @@ -206,7 +206,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response disableWithResponse(String resourceGroupName, String workflowName, Context context); @@ -232,7 +232,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response enableWithResponse(String resourceGroupName, String workflowName, Context context); @@ -262,7 +262,7 @@ Object generateUpgradedDefinition( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return any object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response generateUpgradedDefinitionWithResponse( @@ -296,7 +296,7 @@ WorkflowTriggerCallbackUrlInner listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow callback Url. + * @return the workflow callback Url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listCallbackUrlWithResponse( @@ -324,7 +324,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an OpenAPI definition for the workflow. + * @return an OpenAPI definition for the workflow along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listSwaggerWithResponse(String resourceGroupName, String workflowName, Context context); @@ -338,9 +338,9 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginMove(String resourceGroupName, String workflowName, WorkflowReference move); /** @@ -353,9 +353,9 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginMove( String resourceGroupName, String workflowName, WorkflowReference move, Context context); @@ -409,7 +409,7 @@ SyncPoller, Void> beginMove( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response regenerateAccessKeyWithResponse( @@ -438,7 +438,7 @@ Response regenerateAccessKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response validateByResourceGroupWithResponse( @@ -469,7 +469,7 @@ Response validateByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response validateByLocationWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/ApiOperationInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/ApiOperationInner.java index 63ecb8efdeb6..d7d068229101 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/ApiOperationInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/ApiOperationInner.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.ApiOperationPropertiesDefinition; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The api operation. */ @Fluent public final class ApiOperationInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiOperationInner.class); - /* * The api operations properties */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/AssemblyDefinitionInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/AssemblyDefinitionInner.java index 262afc958c20..a1a23155be10 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/AssemblyDefinitionInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/AssemblyDefinitionInner.java @@ -8,15 +8,12 @@ import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.AssemblyProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The assembly definition. */ @Fluent public final class AssemblyDefinitionInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AssemblyDefinitionInner.class); - /* * The assembly properties. */ @@ -64,7 +61,7 @@ public AssemblyDefinitionInner withTags(Map tags) { */ public void validate() { if (properties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property properties in model AssemblyDefinitionInner")); @@ -72,4 +69,6 @@ public void validate() { properties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(AssemblyDefinitionInner.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/BatchConfigurationInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/BatchConfigurationInner.java index f03ffde6a074..cf2dfafee13f 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/BatchConfigurationInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/BatchConfigurationInner.java @@ -8,15 +8,12 @@ import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.BatchConfigurationProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The batch configuration resource definition. */ @Fluent public final class BatchConfigurationInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BatchConfigurationInner.class); - /* * The batch configuration properties. */ @@ -64,7 +61,7 @@ public BatchConfigurationInner withTags(Map tags) { */ public void validate() { if (properties() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property properties in model BatchConfigurationInner")); @@ -72,4 +69,6 @@ public void validate() { properties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(BatchConfigurationInner.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/CallbackUrlInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/CallbackUrlInner.java index 271eba011220..62f7509113c3 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/CallbackUrlInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/CallbackUrlInner.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The callback url. */ @Fluent public final class CallbackUrlInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CallbackUrlInner.class); - /* * The URL value. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementInner.java index 315615b8b873..7af97dafd6fe 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementInner.java @@ -5,78 +5,46 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.AgreementContent; import com.azure.resourcemanager.logic.models.AgreementType; import com.azure.resourcemanager.logic.models.BusinessIdentity; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.Map; /** The integration account agreement. */ -@JsonFlatten @Fluent -public class IntegrationAccountAgreementInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountAgreementInner.class); - - /* - * The created time. - */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; - - /* - * The changed time. - */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; - - /* - * The metadata. - */ - @JsonProperty(value = "properties.metadata") - private Object metadata; - +public final class IntegrationAccountAgreementInner extends Resource { /* - * The agreement type. + * The integration account agreement properties. */ - @JsonProperty(value = "properties.agreementType", required = true) - private AgreementType agreementType; + @JsonProperty(value = "properties", required = true) + private IntegrationAccountAgreementProperties innerProperties = new IntegrationAccountAgreementProperties(); - /* - * The integration account partner that is set as host partner for this - * agreement. - */ - @JsonProperty(value = "properties.hostPartner", required = true) - private String hostPartner; - - /* - * The integration account partner that is set as guest partner for this - * agreement. - */ - @JsonProperty(value = "properties.guestPartner", required = true) - private String guestPartner; - - /* - * The business identity of the host partner. + /** + * Get the innerProperties property: The integration account agreement properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.hostIdentity", required = true) - private BusinessIdentity hostIdentity; + private IntegrationAccountAgreementProperties innerProperties() { + return this.innerProperties; + } - /* - * The business identity of the guest partner. - */ - @JsonProperty(value = "properties.guestIdentity", required = true) - private BusinessIdentity guestIdentity; + /** {@inheritDoc} */ + @Override + public IntegrationAccountAgreementInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The agreement content. - */ - @JsonProperty(value = "properties.content", required = true) - private AgreementContent content; + /** {@inheritDoc} */ + @Override + public IntegrationAccountAgreementInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the createdTime property: The created time. @@ -84,7 +52,7 @@ public class IntegrationAccountAgreementInner extends Resource { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -93,7 +61,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -102,7 +70,7 @@ public OffsetDateTime changedTime() { * @return the metadata value. */ public Object metadata() { - return this.metadata; + return this.innerProperties() == null ? null : this.innerProperties().metadata(); } /** @@ -112,7 +80,10 @@ public Object metadata() { * @return the IntegrationAccountAgreementInner object itself. */ public IntegrationAccountAgreementInner withMetadata(Object metadata) { - this.metadata = metadata; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountAgreementProperties(); + } + this.innerProperties().withMetadata(metadata); return this; } @@ -122,7 +93,7 @@ public IntegrationAccountAgreementInner withMetadata(Object metadata) { * @return the agreementType value. */ public AgreementType agreementType() { - return this.agreementType; + return this.innerProperties() == null ? null : this.innerProperties().agreementType(); } /** @@ -132,7 +103,10 @@ public AgreementType agreementType() { * @return the IntegrationAccountAgreementInner object itself. */ public IntegrationAccountAgreementInner withAgreementType(AgreementType agreementType) { - this.agreementType = agreementType; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountAgreementProperties(); + } + this.innerProperties().withAgreementType(agreementType); return this; } @@ -142,7 +116,7 @@ public IntegrationAccountAgreementInner withAgreementType(AgreementType agreemen * @return the hostPartner value. */ public String hostPartner() { - return this.hostPartner; + return this.innerProperties() == null ? null : this.innerProperties().hostPartner(); } /** @@ -152,7 +126,10 @@ public String hostPartner() { * @return the IntegrationAccountAgreementInner object itself. */ public IntegrationAccountAgreementInner withHostPartner(String hostPartner) { - this.hostPartner = hostPartner; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountAgreementProperties(); + } + this.innerProperties().withHostPartner(hostPartner); return this; } @@ -162,7 +139,7 @@ public IntegrationAccountAgreementInner withHostPartner(String hostPartner) { * @return the guestPartner value. */ public String guestPartner() { - return this.guestPartner; + return this.innerProperties() == null ? null : this.innerProperties().guestPartner(); } /** @@ -172,7 +149,10 @@ public String guestPartner() { * @return the IntegrationAccountAgreementInner object itself. */ public IntegrationAccountAgreementInner withGuestPartner(String guestPartner) { - this.guestPartner = guestPartner; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountAgreementProperties(); + } + this.innerProperties().withGuestPartner(guestPartner); return this; } @@ -182,7 +162,7 @@ public IntegrationAccountAgreementInner withGuestPartner(String guestPartner) { * @return the hostIdentity value. */ public BusinessIdentity hostIdentity() { - return this.hostIdentity; + return this.innerProperties() == null ? null : this.innerProperties().hostIdentity(); } /** @@ -192,7 +172,10 @@ public BusinessIdentity hostIdentity() { * @return the IntegrationAccountAgreementInner object itself. */ public IntegrationAccountAgreementInner withHostIdentity(BusinessIdentity hostIdentity) { - this.hostIdentity = hostIdentity; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountAgreementProperties(); + } + this.innerProperties().withHostIdentity(hostIdentity); return this; } @@ -202,7 +185,7 @@ public IntegrationAccountAgreementInner withHostIdentity(BusinessIdentity hostId * @return the guestIdentity value. */ public BusinessIdentity guestIdentity() { - return this.guestIdentity; + return this.innerProperties() == null ? null : this.innerProperties().guestIdentity(); } /** @@ -212,7 +195,10 @@ public BusinessIdentity guestIdentity() { * @return the IntegrationAccountAgreementInner object itself. */ public IntegrationAccountAgreementInner withGuestIdentity(BusinessIdentity guestIdentity) { - this.guestIdentity = guestIdentity; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountAgreementProperties(); + } + this.innerProperties().withGuestIdentity(guestIdentity); return this; } @@ -222,7 +208,7 @@ public IntegrationAccountAgreementInner withGuestIdentity(BusinessIdentity guest * @return the content value. */ public AgreementContent content() { - return this.content; + return this.innerProperties() == null ? null : this.innerProperties().content(); } /** @@ -232,21 +218,10 @@ public AgreementContent content() { * @return the IntegrationAccountAgreementInner object itself. */ public IntegrationAccountAgreementInner withContent(AgreementContent content) { - this.content = content; - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountAgreementInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountAgreementInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountAgreementProperties(); + } + this.innerProperties().withContent(content); return this; } @@ -256,47 +231,15 @@ public IntegrationAccountAgreementInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (agreementType() == null) { - throw logger + if (innerProperties() == null) { + throw LOGGER .logExceptionAsError( new IllegalArgumentException( - "Missing required property agreementType in model IntegrationAccountAgreementInner")); - } - if (hostPartner() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property hostPartner in model IntegrationAccountAgreementInner")); - } - if (guestPartner() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property guestPartner in model IntegrationAccountAgreementInner")); - } - if (hostIdentity() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property hostIdentity in model IntegrationAccountAgreementInner")); + "Missing required property innerProperties in model IntegrationAccountAgreementInner")); } else { - hostIdentity().validate(); - } - if (guestIdentity() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property guestIdentity in model IntegrationAccountAgreementInner")); - } else { - guestIdentity().validate(); - } - if (content() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property content in model IntegrationAccountAgreementInner")); - } else { - content().validate(); + innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountAgreementInner.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementProperties.java new file mode 100644 index 000000000000..1e30a01cdf8a --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementProperties.java @@ -0,0 +1,283 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.AgreementContent; +import com.azure.resourcemanager.logic.models.AgreementType; +import com.azure.resourcemanager.logic.models.BusinessIdentity; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The integration account agreement properties. */ +@Fluent +public final class IntegrationAccountAgreementProperties { + /* + * The created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * The changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The metadata. + */ + @JsonProperty(value = "metadata") + private Object metadata; + + /* + * The agreement type. + */ + @JsonProperty(value = "agreementType", required = true) + private AgreementType agreementType; + + /* + * The integration account partner that is set as host partner for this + * agreement. + */ + @JsonProperty(value = "hostPartner", required = true) + private String hostPartner; + + /* + * The integration account partner that is set as guest partner for this + * agreement. + */ + @JsonProperty(value = "guestPartner", required = true) + private String guestPartner; + + /* + * The business identity of the host partner. + */ + @JsonProperty(value = "hostIdentity", required = true) + private BusinessIdentity hostIdentity; + + /* + * The business identity of the guest partner. + */ + @JsonProperty(value = "guestIdentity", required = true) + private BusinessIdentity guestIdentity; + + /* + * The agreement content. + */ + @JsonProperty(value = "content", required = true) + private AgreementContent content; + + /** + * Get the createdTime property: The created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: The changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the metadata property: The metadata. + * + * @return the metadata value. + */ + public Object metadata() { + return this.metadata; + } + + /** + * Set the metadata property: The metadata. + * + * @param metadata the metadata value to set. + * @return the IntegrationAccountAgreementProperties object itself. + */ + public IntegrationAccountAgreementProperties withMetadata(Object metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get the agreementType property: The agreement type. + * + * @return the agreementType value. + */ + public AgreementType agreementType() { + return this.agreementType; + } + + /** + * Set the agreementType property: The agreement type. + * + * @param agreementType the agreementType value to set. + * @return the IntegrationAccountAgreementProperties object itself. + */ + public IntegrationAccountAgreementProperties withAgreementType(AgreementType agreementType) { + this.agreementType = agreementType; + return this; + } + + /** + * Get the hostPartner property: The integration account partner that is set as host partner for this agreement. + * + * @return the hostPartner value. + */ + public String hostPartner() { + return this.hostPartner; + } + + /** + * Set the hostPartner property: The integration account partner that is set as host partner for this agreement. + * + * @param hostPartner the hostPartner value to set. + * @return the IntegrationAccountAgreementProperties object itself. + */ + public IntegrationAccountAgreementProperties withHostPartner(String hostPartner) { + this.hostPartner = hostPartner; + return this; + } + + /** + * Get the guestPartner property: The integration account partner that is set as guest partner for this agreement. + * + * @return the guestPartner value. + */ + public String guestPartner() { + return this.guestPartner; + } + + /** + * Set the guestPartner property: The integration account partner that is set as guest partner for this agreement. + * + * @param guestPartner the guestPartner value to set. + * @return the IntegrationAccountAgreementProperties object itself. + */ + public IntegrationAccountAgreementProperties withGuestPartner(String guestPartner) { + this.guestPartner = guestPartner; + return this; + } + + /** + * Get the hostIdentity property: The business identity of the host partner. + * + * @return the hostIdentity value. + */ + public BusinessIdentity hostIdentity() { + return this.hostIdentity; + } + + /** + * Set the hostIdentity property: The business identity of the host partner. + * + * @param hostIdentity the hostIdentity value to set. + * @return the IntegrationAccountAgreementProperties object itself. + */ + public IntegrationAccountAgreementProperties withHostIdentity(BusinessIdentity hostIdentity) { + this.hostIdentity = hostIdentity; + return this; + } + + /** + * Get the guestIdentity property: The business identity of the guest partner. + * + * @return the guestIdentity value. + */ + public BusinessIdentity guestIdentity() { + return this.guestIdentity; + } + + /** + * Set the guestIdentity property: The business identity of the guest partner. + * + * @param guestIdentity the guestIdentity value to set. + * @return the IntegrationAccountAgreementProperties object itself. + */ + public IntegrationAccountAgreementProperties withGuestIdentity(BusinessIdentity guestIdentity) { + this.guestIdentity = guestIdentity; + return this; + } + + /** + * Get the content property: The agreement content. + * + * @return the content value. + */ + public AgreementContent content() { + return this.content; + } + + /** + * Set the content property: The agreement content. + * + * @param content the content value to set. + * @return the IntegrationAccountAgreementProperties object itself. + */ + public IntegrationAccountAgreementProperties withContent(AgreementContent content) { + this.content = content; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (agreementType() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property agreementType in model IntegrationAccountAgreementProperties")); + } + if (hostPartner() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property hostPartner in model IntegrationAccountAgreementProperties")); + } + if (guestPartner() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property guestPartner in model IntegrationAccountAgreementProperties")); + } + if (hostIdentity() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property hostIdentity in model IntegrationAccountAgreementProperties")); + } else { + hostIdentity().validate(); + } + if (guestIdentity() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property guestIdentity in model IntegrationAccountAgreementProperties")); + } else { + guestIdentity().validate(); + } + if (content() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property content in model IntegrationAccountAgreementProperties")); + } else { + content().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountAgreementProperties.class); +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateInner.java index 8ec46df03ada..529b9554531e 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateInner.java @@ -5,50 +5,44 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.KeyVaultKeyReference; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.Map; /** The integration account certificate. */ -@JsonFlatten @Fluent -public class IntegrationAccountCertificateInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountCertificateInner.class); - - /* - * The created time. - */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; - +public final class IntegrationAccountCertificateInner extends Resource { /* - * The changed time. + * The integration account certificate properties. */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; + @JsonProperty(value = "properties", required = true) + private IntegrationAccountCertificateProperties innerProperties = new IntegrationAccountCertificateProperties(); - /* - * The metadata. + /** + * Get the innerProperties property: The integration account certificate properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.metadata") - private Object metadata; + private IntegrationAccountCertificateProperties innerProperties() { + return this.innerProperties; + } - /* - * The key details in the key vault. - */ - @JsonProperty(value = "properties.key") - private KeyVaultKeyReference key; + /** {@inheritDoc} */ + @Override + public IntegrationAccountCertificateInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The public certificate. - */ - @JsonProperty(value = "properties.publicCertificate") - private String publicCertificate; + /** {@inheritDoc} */ + @Override + public IntegrationAccountCertificateInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the createdTime property: The created time. @@ -56,7 +50,7 @@ public class IntegrationAccountCertificateInner extends Resource { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -65,7 +59,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -74,7 +68,7 @@ public OffsetDateTime changedTime() { * @return the metadata value. */ public Object metadata() { - return this.metadata; + return this.innerProperties() == null ? null : this.innerProperties().metadata(); } /** @@ -84,7 +78,10 @@ public Object metadata() { * @return the IntegrationAccountCertificateInner object itself. */ public IntegrationAccountCertificateInner withMetadata(Object metadata) { - this.metadata = metadata; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountCertificateProperties(); + } + this.innerProperties().withMetadata(metadata); return this; } @@ -94,7 +91,7 @@ public IntegrationAccountCertificateInner withMetadata(Object metadata) { * @return the key value. */ public KeyVaultKeyReference key() { - return this.key; + return this.innerProperties() == null ? null : this.innerProperties().key(); } /** @@ -104,7 +101,10 @@ public KeyVaultKeyReference key() { * @return the IntegrationAccountCertificateInner object itself. */ public IntegrationAccountCertificateInner withKey(KeyVaultKeyReference key) { - this.key = key; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountCertificateProperties(); + } + this.innerProperties().withKey(key); return this; } @@ -114,7 +114,7 @@ public IntegrationAccountCertificateInner withKey(KeyVaultKeyReference key) { * @return the publicCertificate value. */ public String publicCertificate() { - return this.publicCertificate; + return this.innerProperties() == null ? null : this.innerProperties().publicCertificate(); } /** @@ -124,21 +124,10 @@ public String publicCertificate() { * @return the IntegrationAccountCertificateInner object itself. */ public IntegrationAccountCertificateInner withPublicCertificate(String publicCertificate) { - this.publicCertificate = publicCertificate; - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountCertificateInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountCertificateInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountCertificateProperties(); + } + this.innerProperties().withPublicCertificate(publicCertificate); return this; } @@ -148,8 +137,15 @@ public IntegrationAccountCertificateInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (key() != null) { - key().validate(); + if (innerProperties() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerProperties in model IntegrationAccountCertificateInner")); + } else { + innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountCertificateInner.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateProperties.java new file mode 100644 index 000000000000..b05d663b5534 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateProperties.java @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.logic.models.KeyVaultKeyReference; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The integration account certificate properties. */ +@Fluent +public final class IntegrationAccountCertificateProperties { + /* + * The created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * The changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The metadata. + */ + @JsonProperty(value = "metadata") + private Object metadata; + + /* + * The key details in the key vault. + */ + @JsonProperty(value = "key") + private KeyVaultKeyReference key; + + /* + * The public certificate. + */ + @JsonProperty(value = "publicCertificate") + private String publicCertificate; + + /** + * Get the createdTime property: The created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: The changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the metadata property: The metadata. + * + * @return the metadata value. + */ + public Object metadata() { + return this.metadata; + } + + /** + * Set the metadata property: The metadata. + * + * @param metadata the metadata value to set. + * @return the IntegrationAccountCertificateProperties object itself. + */ + public IntegrationAccountCertificateProperties withMetadata(Object metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get the key property: The key details in the key vault. + * + * @return the key value. + */ + public KeyVaultKeyReference key() { + return this.key; + } + + /** + * Set the key property: The key details in the key vault. + * + * @param key the key value to set. + * @return the IntegrationAccountCertificateProperties object itself. + */ + public IntegrationAccountCertificateProperties withKey(KeyVaultKeyReference key) { + this.key = key; + return this; + } + + /** + * Get the publicCertificate property: The public certificate. + * + * @return the publicCertificate value. + */ + public String publicCertificate() { + return this.publicCertificate; + } + + /** + * Set the publicCertificate property: The public certificate. + * + * @param publicCertificate the publicCertificate value to set. + * @return the IntegrationAccountCertificateProperties object itself. + */ + public IntegrationAccountCertificateProperties withPublicCertificate(String publicCertificate) { + this.publicCertificate = publicCertificate; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (key() != null) { + key().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountInner.java index b0ad2cdb2b8b..60687b097b25 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountInner.java @@ -5,20 +5,21 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.IntegrationAccountSku; +import com.azure.resourcemanager.logic.models.ResourceReference; import com.azure.resourcemanager.logic.models.WorkflowState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The integration account. */ -@JsonFlatten @Fluent -public class IntegrationAccountInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountInner.class); +public final class IntegrationAccountInner extends Resource { + /* + * The integration account properties. + */ + @JsonProperty(value = "properties") + private IntegrationAccountProperties innerProperties; /* * The sku. @@ -26,17 +27,14 @@ public class IntegrationAccountInner extends Resource { @JsonProperty(value = "sku") private IntegrationAccountSku sku; - /* - * The integration service environment. - */ - @JsonProperty(value = "properties.integrationServiceEnvironment") - private IntegrationServiceEnvironmentInner integrationServiceEnvironment; - - /* - * The workflow state. + /** + * Get the innerProperties property: The integration account properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.state") - private WorkflowState state; + private IntegrationAccountProperties innerProperties() { + return this.innerProperties; + } /** * Get the sku property: The sku. @@ -58,13 +56,27 @@ public IntegrationAccountInner withSku(IntegrationAccountSku sku) { return this; } + /** {@inheritDoc} */ + @Override + public IntegrationAccountInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public IntegrationAccountInner withTags(Map tags) { + super.withTags(tags); + return this; + } + /** * Get the integrationServiceEnvironment property: The integration service environment. * * @return the integrationServiceEnvironment value. */ - public IntegrationServiceEnvironmentInner integrationServiceEnvironment() { - return this.integrationServiceEnvironment; + public ResourceReference integrationServiceEnvironment() { + return this.innerProperties() == null ? null : this.innerProperties().integrationServiceEnvironment(); } /** @@ -73,9 +85,11 @@ public IntegrationServiceEnvironmentInner integrationServiceEnvironment() { * @param integrationServiceEnvironment the integrationServiceEnvironment value to set. * @return the IntegrationAccountInner object itself. */ - public IntegrationAccountInner withIntegrationServiceEnvironment( - IntegrationServiceEnvironmentInner integrationServiceEnvironment) { - this.integrationServiceEnvironment = integrationServiceEnvironment; + public IntegrationAccountInner withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment) { + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountProperties(); + } + this.innerProperties().withIntegrationServiceEnvironment(integrationServiceEnvironment); return this; } @@ -85,7 +99,7 @@ public IntegrationAccountInner withIntegrationServiceEnvironment( * @return the state value. */ public WorkflowState state() { - return this.state; + return this.innerProperties() == null ? null : this.innerProperties().state(); } /** @@ -95,21 +109,10 @@ public WorkflowState state() { * @return the IntegrationAccountInner object itself. */ public IntegrationAccountInner withState(WorkflowState state) { - this.state = state; - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountProperties(); + } + this.innerProperties().withState(state); return this; } @@ -119,11 +122,11 @@ public IntegrationAccountInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } if (sku() != null) { sku().validate(); } - if (integrationServiceEnvironment() != null) { - integrationServiceEnvironment().validate(); - } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapInner.java index 9c57c5d6bf88..63cc8cc08080 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapInner.java @@ -5,70 +5,46 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.ContentLink; import com.azure.resourcemanager.logic.models.IntegrationAccountMapPropertiesParametersSchema; import com.azure.resourcemanager.logic.models.MapType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.Map; /** The integration account map. */ -@JsonFlatten @Fluent -public class IntegrationAccountMapInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountMapInner.class); - - /* - * The map type. - */ - @JsonProperty(value = "properties.mapType", required = true) - private MapType mapType; - - /* - * The parameters schema of integration account map. - */ - @JsonProperty(value = "properties.parametersSchema") - private IntegrationAccountMapPropertiesParametersSchema parametersSchema; - +public final class IntegrationAccountMapInner extends Resource { /* - * The created time. + * The integration account map properties. */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; + @JsonProperty(value = "properties", required = true) + private IntegrationAccountMapProperties innerProperties = new IntegrationAccountMapProperties(); - /* - * The changed time. - */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; - - /* - * The content. - */ - @JsonProperty(value = "properties.content") - private String content; - - /* - * The content type. + /** + * Get the innerProperties property: The integration account map properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.contentType") - private String contentType; + private IntegrationAccountMapProperties innerProperties() { + return this.innerProperties; + } - /* - * The content link. - */ - @JsonProperty(value = "properties.contentLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink contentLink; + /** {@inheritDoc} */ + @Override + public IntegrationAccountMapInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The metadata. - */ - @JsonProperty(value = "properties.metadata") - private Object metadata; + /** {@inheritDoc} */ + @Override + public IntegrationAccountMapInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the mapType property: The map type. @@ -76,7 +52,7 @@ public class IntegrationAccountMapInner extends Resource { * @return the mapType value. */ public MapType mapType() { - return this.mapType; + return this.innerProperties() == null ? null : this.innerProperties().mapType(); } /** @@ -86,7 +62,10 @@ public MapType mapType() { * @return the IntegrationAccountMapInner object itself. */ public IntegrationAccountMapInner withMapType(MapType mapType) { - this.mapType = mapType; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountMapProperties(); + } + this.innerProperties().withMapType(mapType); return this; } @@ -96,7 +75,7 @@ public IntegrationAccountMapInner withMapType(MapType mapType) { * @return the parametersSchema value. */ public IntegrationAccountMapPropertiesParametersSchema parametersSchema() { - return this.parametersSchema; + return this.innerProperties() == null ? null : this.innerProperties().parametersSchema(); } /** @@ -107,7 +86,10 @@ public IntegrationAccountMapPropertiesParametersSchema parametersSchema() { */ public IntegrationAccountMapInner withParametersSchema( IntegrationAccountMapPropertiesParametersSchema parametersSchema) { - this.parametersSchema = parametersSchema; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountMapProperties(); + } + this.innerProperties().withParametersSchema(parametersSchema); return this; } @@ -117,7 +99,7 @@ public IntegrationAccountMapInner withParametersSchema( * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -126,7 +108,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -135,7 +117,7 @@ public OffsetDateTime changedTime() { * @return the content value. */ public String content() { - return this.content; + return this.innerProperties() == null ? null : this.innerProperties().content(); } /** @@ -145,7 +127,10 @@ public String content() { * @return the IntegrationAccountMapInner object itself. */ public IntegrationAccountMapInner withContent(String content) { - this.content = content; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountMapProperties(); + } + this.innerProperties().withContent(content); return this; } @@ -155,7 +140,7 @@ public IntegrationAccountMapInner withContent(String content) { * @return the contentType value. */ public String contentType() { - return this.contentType; + return this.innerProperties() == null ? null : this.innerProperties().contentType(); } /** @@ -165,7 +150,10 @@ public String contentType() { * @return the IntegrationAccountMapInner object itself. */ public IntegrationAccountMapInner withContentType(String contentType) { - this.contentType = contentType; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountMapProperties(); + } + this.innerProperties().withContentType(contentType); return this; } @@ -175,7 +163,7 @@ public IntegrationAccountMapInner withContentType(String contentType) { * @return the contentLink value. */ public ContentLink contentLink() { - return this.contentLink; + return this.innerProperties() == null ? null : this.innerProperties().contentLink(); } /** @@ -184,7 +172,7 @@ public ContentLink contentLink() { * @return the metadata value. */ public Object metadata() { - return this.metadata; + return this.innerProperties() == null ? null : this.innerProperties().metadata(); } /** @@ -194,21 +182,10 @@ public Object metadata() { * @return the IntegrationAccountMapInner object itself. */ public IntegrationAccountMapInner withMetadata(Object metadata) { - this.metadata = metadata; - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountMapInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountMapInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountMapProperties(); + } + this.innerProperties().withMetadata(metadata); return this; } @@ -218,17 +195,15 @@ public IntegrationAccountMapInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (mapType() == null) { - throw logger + if (innerProperties() == null) { + throw LOGGER .logExceptionAsError( new IllegalArgumentException( - "Missing required property mapType in model IntegrationAccountMapInner")); - } - if (parametersSchema() != null) { - parametersSchema().validate(); - } - if (contentLink() != null) { - contentLink().validate(); + "Missing required property innerProperties in model IntegrationAccountMapInner")); + } else { + innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountMapInner.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapProperties.java new file mode 100644 index 000000000000..0c244dc8be86 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapProperties.java @@ -0,0 +1,215 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.ContentLink; +import com.azure.resourcemanager.logic.models.IntegrationAccountMapPropertiesParametersSchema; +import com.azure.resourcemanager.logic.models.MapType; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The integration account map. */ +@Fluent +public final class IntegrationAccountMapProperties { + /* + * The map type. + */ + @JsonProperty(value = "mapType", required = true) + private MapType mapType; + + /* + * The parameters schema of integration account map. + */ + @JsonProperty(value = "parametersSchema") + private IntegrationAccountMapPropertiesParametersSchema parametersSchema; + + /* + * The created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * The changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The content. + */ + @JsonProperty(value = "content") + private String content; + + /* + * The content type. + */ + @JsonProperty(value = "contentType") + private String contentType; + + /* + * The content link. + */ + @JsonProperty(value = "contentLink", access = JsonProperty.Access.WRITE_ONLY) + private ContentLink contentLink; + + /* + * The metadata. + */ + @JsonProperty(value = "metadata") + private Object metadata; + + /** + * Get the mapType property: The map type. + * + * @return the mapType value. + */ + public MapType mapType() { + return this.mapType; + } + + /** + * Set the mapType property: The map type. + * + * @param mapType the mapType value to set. + * @return the IntegrationAccountMapProperties object itself. + */ + public IntegrationAccountMapProperties withMapType(MapType mapType) { + this.mapType = mapType; + return this; + } + + /** + * Get the parametersSchema property: The parameters schema of integration account map. + * + * @return the parametersSchema value. + */ + public IntegrationAccountMapPropertiesParametersSchema parametersSchema() { + return this.parametersSchema; + } + + /** + * Set the parametersSchema property: The parameters schema of integration account map. + * + * @param parametersSchema the parametersSchema value to set. + * @return the IntegrationAccountMapProperties object itself. + */ + public IntegrationAccountMapProperties withParametersSchema( + IntegrationAccountMapPropertiesParametersSchema parametersSchema) { + this.parametersSchema = parametersSchema; + return this; + } + + /** + * Get the createdTime property: The created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: The changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the content property: The content. + * + * @return the content value. + */ + public String content() { + return this.content; + } + + /** + * Set the content property: The content. + * + * @param content the content value to set. + * @return the IntegrationAccountMapProperties object itself. + */ + public IntegrationAccountMapProperties withContent(String content) { + this.content = content; + return this; + } + + /** + * Get the contentType property: The content type. + * + * @return the contentType value. + */ + public String contentType() { + return this.contentType; + } + + /** + * Set the contentType property: The content type. + * + * @param contentType the contentType value to set. + * @return the IntegrationAccountMapProperties object itself. + */ + public IntegrationAccountMapProperties withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * Get the contentLink property: The content link. + * + * @return the contentLink value. + */ + public ContentLink contentLink() { + return this.contentLink; + } + + /** + * Get the metadata property: The metadata. + * + * @return the metadata value. + */ + public Object metadata() { + return this.metadata; + } + + /** + * Set the metadata property: The metadata. + * + * @param metadata the metadata value to set. + * @return the IntegrationAccountMapProperties object itself. + */ + public IntegrationAccountMapProperties withMetadata(Object metadata) { + this.metadata = metadata; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (mapType() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property mapType in model IntegrationAccountMapProperties")); + } + if (parametersSchema() != null) { + parametersSchema().validate(); + } + if (contentLink() != null) { + contentLink().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountMapProperties.class); +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerInner.java index 58b64de353ca..ba6d97266cde 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerInner.java @@ -5,51 +5,45 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.PartnerContent; import com.azure.resourcemanager.logic.models.PartnerType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.Map; /** The integration account partner. */ -@JsonFlatten @Fluent -public class IntegrationAccountPartnerInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountPartnerInner.class); - - /* - * The partner type. - */ - @JsonProperty(value = "properties.partnerType", required = true) - private PartnerType partnerType; - +public final class IntegrationAccountPartnerInner extends Resource { /* - * The created time. + * The integration account partner properties. */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; + @JsonProperty(value = "properties", required = true) + private IntegrationAccountPartnerProperties innerProperties = new IntegrationAccountPartnerProperties(); - /* - * The changed time. + /** + * Get the innerProperties property: The integration account partner properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; + private IntegrationAccountPartnerProperties innerProperties() { + return this.innerProperties; + } - /* - * The metadata. - */ - @JsonProperty(value = "properties.metadata") - private Object metadata; + /** {@inheritDoc} */ + @Override + public IntegrationAccountPartnerInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The partner content. - */ - @JsonProperty(value = "properties.content", required = true) - private PartnerContent content; + /** {@inheritDoc} */ + @Override + public IntegrationAccountPartnerInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the partnerType property: The partner type. @@ -57,7 +51,7 @@ public class IntegrationAccountPartnerInner extends Resource { * @return the partnerType value. */ public PartnerType partnerType() { - return this.partnerType; + return this.innerProperties() == null ? null : this.innerProperties().partnerType(); } /** @@ -67,7 +61,10 @@ public PartnerType partnerType() { * @return the IntegrationAccountPartnerInner object itself. */ public IntegrationAccountPartnerInner withPartnerType(PartnerType partnerType) { - this.partnerType = partnerType; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountPartnerProperties(); + } + this.innerProperties().withPartnerType(partnerType); return this; } @@ -77,7 +74,7 @@ public IntegrationAccountPartnerInner withPartnerType(PartnerType partnerType) { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -86,7 +83,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -95,7 +92,7 @@ public OffsetDateTime changedTime() { * @return the metadata value. */ public Object metadata() { - return this.metadata; + return this.innerProperties() == null ? null : this.innerProperties().metadata(); } /** @@ -105,7 +102,10 @@ public Object metadata() { * @return the IntegrationAccountPartnerInner object itself. */ public IntegrationAccountPartnerInner withMetadata(Object metadata) { - this.metadata = metadata; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountPartnerProperties(); + } + this.innerProperties().withMetadata(metadata); return this; } @@ -115,7 +115,7 @@ public IntegrationAccountPartnerInner withMetadata(Object metadata) { * @return the content value. */ public PartnerContent content() { - return this.content; + return this.innerProperties() == null ? null : this.innerProperties().content(); } /** @@ -125,21 +125,10 @@ public PartnerContent content() { * @return the IntegrationAccountPartnerInner object itself. */ public IntegrationAccountPartnerInner withContent(PartnerContent content) { - this.content = content; - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountPartnerInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountPartnerInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountPartnerProperties(); + } + this.innerProperties().withContent(content); return this; } @@ -149,19 +138,15 @@ public IntegrationAccountPartnerInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (partnerType() == null) { - throw logger + if (innerProperties() == null) { + throw LOGGER .logExceptionAsError( new IllegalArgumentException( - "Missing required property partnerType in model IntegrationAccountPartnerInner")); - } - if (content() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property content in model IntegrationAccountPartnerInner")); + "Missing required property innerProperties in model IntegrationAccountPartnerInner")); } else { - content().validate(); + innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountPartnerInner.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerProperties.java new file mode 100644 index 000000000000..3857c41354f7 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerProperties.java @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.PartnerContent; +import com.azure.resourcemanager.logic.models.PartnerType; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The integration account partner properties. */ +@Fluent +public final class IntegrationAccountPartnerProperties { + /* + * The partner type. + */ + @JsonProperty(value = "partnerType", required = true) + private PartnerType partnerType; + + /* + * The created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * The changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The metadata. + */ + @JsonProperty(value = "metadata") + private Object metadata; + + /* + * The partner content. + */ + @JsonProperty(value = "content", required = true) + private PartnerContent content; + + /** + * Get the partnerType property: The partner type. + * + * @return the partnerType value. + */ + public PartnerType partnerType() { + return this.partnerType; + } + + /** + * Set the partnerType property: The partner type. + * + * @param partnerType the partnerType value to set. + * @return the IntegrationAccountPartnerProperties object itself. + */ + public IntegrationAccountPartnerProperties withPartnerType(PartnerType partnerType) { + this.partnerType = partnerType; + return this; + } + + /** + * Get the createdTime property: The created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: The changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the metadata property: The metadata. + * + * @return the metadata value. + */ + public Object metadata() { + return this.metadata; + } + + /** + * Set the metadata property: The metadata. + * + * @param metadata the metadata value to set. + * @return the IntegrationAccountPartnerProperties object itself. + */ + public IntegrationAccountPartnerProperties withMetadata(Object metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get the content property: The partner content. + * + * @return the content value. + */ + public PartnerContent content() { + return this.content; + } + + /** + * Set the content property: The partner content. + * + * @param content the content value to set. + * @return the IntegrationAccountPartnerProperties object itself. + */ + public IntegrationAccountPartnerProperties withContent(PartnerContent content) { + this.content = content; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (partnerType() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property partnerType in model IntegrationAccountPartnerProperties")); + } + if (content() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property content in model IntegrationAccountPartnerProperties")); + } else { + content().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountPartnerProperties.class); +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountProperties.java new file mode 100644 index 000000000000..c58ab33d4f85 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountProperties.java @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowState; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The integration account properties. */ +@Fluent +public final class IntegrationAccountProperties { + /* + * The integration service environment. + */ + @JsonProperty(value = "integrationServiceEnvironment") + private ResourceReference integrationServiceEnvironment; + + /* + * The workflow state. + */ + @JsonProperty(value = "state") + private WorkflowState state; + + /** + * Get the integrationServiceEnvironment property: The integration service environment. + * + * @return the integrationServiceEnvironment value. + */ + public ResourceReference integrationServiceEnvironment() { + return this.integrationServiceEnvironment; + } + + /** + * Set the integrationServiceEnvironment property: The integration service environment. + * + * @param integrationServiceEnvironment the integrationServiceEnvironment value to set. + * @return the IntegrationAccountProperties object itself. + */ + public IntegrationAccountProperties withIntegrationServiceEnvironment( + ResourceReference integrationServiceEnvironment) { + this.integrationServiceEnvironment = integrationServiceEnvironment; + return this; + } + + /** + * Get the state property: The workflow state. + * + * @return the state value. + */ + public WorkflowState state() { + return this.state; + } + + /** + * Set the state property: The workflow state. + * + * @param state the state value to set. + * @return the IntegrationAccountProperties object itself. + */ + public IntegrationAccountProperties withState(WorkflowState state) { + this.state = state; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (integrationServiceEnvironment() != null) { + integrationServiceEnvironment().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaInner.java index bfc95501d80c..02b199f44643 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaInner.java @@ -5,81 +5,45 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.ContentLink; import com.azure.resourcemanager.logic.models.SchemaType; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.Map; /** The integration account schema. */ -@JsonFlatten @Fluent -public class IntegrationAccountSchemaInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountSchemaInner.class); - - /* - * The schema type. - */ - @JsonProperty(value = "properties.schemaType", required = true) - private SchemaType schemaType; - - /* - * The target namespace of the schema. - */ - @JsonProperty(value = "properties.targetNamespace") - private String targetNamespace; - - /* - * The document name. - */ - @JsonProperty(value = "properties.documentName") - private String documentName; - - /* - * The file name. - */ - @JsonProperty(value = "properties.fileName") - private String fileName; - - /* - * The created time. - */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; - +public final class IntegrationAccountSchemaInner extends Resource { /* - * The changed time. + * The integration account schema properties. */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; + @JsonProperty(value = "properties", required = true) + private IntegrationAccountSchemaProperties innerProperties = new IntegrationAccountSchemaProperties(); - /* - * The metadata. - */ - @JsonProperty(value = "properties.metadata") - private Object metadata; - - /* - * The content. + /** + * Get the innerProperties property: The integration account schema properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.content") - private String content; + private IntegrationAccountSchemaProperties innerProperties() { + return this.innerProperties; + } - /* - * The content type. - */ - @JsonProperty(value = "properties.contentType") - private String contentType; + /** {@inheritDoc} */ + @Override + public IntegrationAccountSchemaInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The content link. - */ - @JsonProperty(value = "properties.contentLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink contentLink; + /** {@inheritDoc} */ + @Override + public IntegrationAccountSchemaInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the schemaType property: The schema type. @@ -87,7 +51,7 @@ public class IntegrationAccountSchemaInner extends Resource { * @return the schemaType value. */ public SchemaType schemaType() { - return this.schemaType; + return this.innerProperties() == null ? null : this.innerProperties().schemaType(); } /** @@ -97,7 +61,10 @@ public SchemaType schemaType() { * @return the IntegrationAccountSchemaInner object itself. */ public IntegrationAccountSchemaInner withSchemaType(SchemaType schemaType) { - this.schemaType = schemaType; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSchemaProperties(); + } + this.innerProperties().withSchemaType(schemaType); return this; } @@ -107,7 +74,7 @@ public IntegrationAccountSchemaInner withSchemaType(SchemaType schemaType) { * @return the targetNamespace value. */ public String targetNamespace() { - return this.targetNamespace; + return this.innerProperties() == null ? null : this.innerProperties().targetNamespace(); } /** @@ -117,7 +84,10 @@ public String targetNamespace() { * @return the IntegrationAccountSchemaInner object itself. */ public IntegrationAccountSchemaInner withTargetNamespace(String targetNamespace) { - this.targetNamespace = targetNamespace; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSchemaProperties(); + } + this.innerProperties().withTargetNamespace(targetNamespace); return this; } @@ -127,7 +97,7 @@ public IntegrationAccountSchemaInner withTargetNamespace(String targetNamespace) * @return the documentName value. */ public String documentName() { - return this.documentName; + return this.innerProperties() == null ? null : this.innerProperties().documentName(); } /** @@ -137,7 +107,10 @@ public String documentName() { * @return the IntegrationAccountSchemaInner object itself. */ public IntegrationAccountSchemaInner withDocumentName(String documentName) { - this.documentName = documentName; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSchemaProperties(); + } + this.innerProperties().withDocumentName(documentName); return this; } @@ -147,7 +120,7 @@ public IntegrationAccountSchemaInner withDocumentName(String documentName) { * @return the fileName value. */ public String fileName() { - return this.fileName; + return this.innerProperties() == null ? null : this.innerProperties().fileName(); } /** @@ -157,7 +130,10 @@ public String fileName() { * @return the IntegrationAccountSchemaInner object itself. */ public IntegrationAccountSchemaInner withFileName(String fileName) { - this.fileName = fileName; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSchemaProperties(); + } + this.innerProperties().withFileName(fileName); return this; } @@ -167,7 +143,7 @@ public IntegrationAccountSchemaInner withFileName(String fileName) { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -176,7 +152,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -185,7 +161,7 @@ public OffsetDateTime changedTime() { * @return the metadata value. */ public Object metadata() { - return this.metadata; + return this.innerProperties() == null ? null : this.innerProperties().metadata(); } /** @@ -195,7 +171,10 @@ public Object metadata() { * @return the IntegrationAccountSchemaInner object itself. */ public IntegrationAccountSchemaInner withMetadata(Object metadata) { - this.metadata = metadata; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSchemaProperties(); + } + this.innerProperties().withMetadata(metadata); return this; } @@ -205,7 +184,7 @@ public IntegrationAccountSchemaInner withMetadata(Object metadata) { * @return the content value. */ public String content() { - return this.content; + return this.innerProperties() == null ? null : this.innerProperties().content(); } /** @@ -215,7 +194,10 @@ public String content() { * @return the IntegrationAccountSchemaInner object itself. */ public IntegrationAccountSchemaInner withContent(String content) { - this.content = content; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSchemaProperties(); + } + this.innerProperties().withContent(content); return this; } @@ -225,7 +207,7 @@ public IntegrationAccountSchemaInner withContent(String content) { * @return the contentType value. */ public String contentType() { - return this.contentType; + return this.innerProperties() == null ? null : this.innerProperties().contentType(); } /** @@ -235,7 +217,10 @@ public String contentType() { * @return the IntegrationAccountSchemaInner object itself. */ public IntegrationAccountSchemaInner withContentType(String contentType) { - this.contentType = contentType; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSchemaProperties(); + } + this.innerProperties().withContentType(contentType); return this; } @@ -245,21 +230,7 @@ public IntegrationAccountSchemaInner withContentType(String contentType) { * @return the contentLink value. */ public ContentLink contentLink() { - return this.contentLink; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountSchemaInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountSchemaInner withTags(Map tags) { - super.withTags(tags); - return this; + return this.innerProperties() == null ? null : this.innerProperties().contentLink(); } /** @@ -268,14 +239,15 @@ public IntegrationAccountSchemaInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (schemaType() == null) { - throw logger + if (innerProperties() == null) { + throw LOGGER .logExceptionAsError( new IllegalArgumentException( - "Missing required property schemaType in model IntegrationAccountSchemaInner")); - } - if (contentLink() != null) { - contentLink().validate(); + "Missing required property innerProperties in model IntegrationAccountSchemaInner")); + } else { + innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountSchemaInner.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaProperties.java new file mode 100644 index 000000000000..fc7572c497a0 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaProperties.java @@ -0,0 +1,262 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.ContentLink; +import com.azure.resourcemanager.logic.models.SchemaType; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The integration account schema properties. */ +@Fluent +public final class IntegrationAccountSchemaProperties { + /* + * The schema type. + */ + @JsonProperty(value = "schemaType", required = true) + private SchemaType schemaType; + + /* + * The target namespace of the schema. + */ + @JsonProperty(value = "targetNamespace") + private String targetNamespace; + + /* + * The document name. + */ + @JsonProperty(value = "documentName") + private String documentName; + + /* + * The file name. + */ + @JsonProperty(value = "fileName") + private String fileName; + + /* + * The created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * The changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The metadata. + */ + @JsonProperty(value = "metadata") + private Object metadata; + + /* + * The content. + */ + @JsonProperty(value = "content") + private String content; + + /* + * The content type. + */ + @JsonProperty(value = "contentType") + private String contentType; + + /* + * The content link. + */ + @JsonProperty(value = "contentLink", access = JsonProperty.Access.WRITE_ONLY) + private ContentLink contentLink; + + /** + * Get the schemaType property: The schema type. + * + * @return the schemaType value. + */ + public SchemaType schemaType() { + return this.schemaType; + } + + /** + * Set the schemaType property: The schema type. + * + * @param schemaType the schemaType value to set. + * @return the IntegrationAccountSchemaProperties object itself. + */ + public IntegrationAccountSchemaProperties withSchemaType(SchemaType schemaType) { + this.schemaType = schemaType; + return this; + } + + /** + * Get the targetNamespace property: The target namespace of the schema. + * + * @return the targetNamespace value. + */ + public String targetNamespace() { + return this.targetNamespace; + } + + /** + * Set the targetNamespace property: The target namespace of the schema. + * + * @param targetNamespace the targetNamespace value to set. + * @return the IntegrationAccountSchemaProperties object itself. + */ + public IntegrationAccountSchemaProperties withTargetNamespace(String targetNamespace) { + this.targetNamespace = targetNamespace; + return this; + } + + /** + * Get the documentName property: The document name. + * + * @return the documentName value. + */ + public String documentName() { + return this.documentName; + } + + /** + * Set the documentName property: The document name. + * + * @param documentName the documentName value to set. + * @return the IntegrationAccountSchemaProperties object itself. + */ + public IntegrationAccountSchemaProperties withDocumentName(String documentName) { + this.documentName = documentName; + return this; + } + + /** + * Get the fileName property: The file name. + * + * @return the fileName value. + */ + public String fileName() { + return this.fileName; + } + + /** + * Set the fileName property: The file name. + * + * @param fileName the fileName value to set. + * @return the IntegrationAccountSchemaProperties object itself. + */ + public IntegrationAccountSchemaProperties withFileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * Get the createdTime property: The created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: The changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the metadata property: The metadata. + * + * @return the metadata value. + */ + public Object metadata() { + return this.metadata; + } + + /** + * Set the metadata property: The metadata. + * + * @param metadata the metadata value to set. + * @return the IntegrationAccountSchemaProperties object itself. + */ + public IntegrationAccountSchemaProperties withMetadata(Object metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get the content property: The content. + * + * @return the content value. + */ + public String content() { + return this.content; + } + + /** + * Set the content property: The content. + * + * @param content the content value to set. + * @return the IntegrationAccountSchemaProperties object itself. + */ + public IntegrationAccountSchemaProperties withContent(String content) { + this.content = content; + return this; + } + + /** + * Get the contentType property: The content type. + * + * @return the contentType value. + */ + public String contentType() { + return this.contentType; + } + + /** + * Set the contentType property: The content type. + * + * @param contentType the contentType value to set. + * @return the IntegrationAccountSchemaProperties object itself. + */ + public IntegrationAccountSchemaProperties withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * Get the contentLink property: The content link. + * + * @return the contentLink value. + */ + public ContentLink contentLink() { + return this.contentLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (schemaType() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property schemaType in model IntegrationAccountSchemaProperties")); + } + if (contentLink() != null) { + contentLink().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountSchemaProperties.class); +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionInner.java index 4d89faa530cc..8801054f65ec 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionInner.java @@ -5,37 +5,43 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.Map; /** The integration account session. */ -@JsonFlatten @Fluent -public class IntegrationAccountSessionInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountSessionInner.class); - +public final class IntegrationAccountSessionInner extends Resource { /* - * The created time. + * The integration account session properties. */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; + @JsonProperty(value = "properties", required = true) + private IntegrationAccountSessionProperties innerProperties = new IntegrationAccountSessionProperties(); - /* - * The changed time. + /** + * Get the innerProperties property: The integration account session properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; + private IntegrationAccountSessionProperties innerProperties() { + return this.innerProperties; + } - /* - * The session content. - */ - @JsonProperty(value = "properties.content") - private Object content; + /** {@inheritDoc} */ + @Override + public IntegrationAccountSessionInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public IntegrationAccountSessionInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the createdTime property: The created time. @@ -43,7 +49,7 @@ public class IntegrationAccountSessionInner extends Resource { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -52,7 +58,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -61,7 +67,7 @@ public OffsetDateTime changedTime() { * @return the content value. */ public Object content() { - return this.content; + return this.innerProperties() == null ? null : this.innerProperties().content(); } /** @@ -71,21 +77,10 @@ public Object content() { * @return the IntegrationAccountSessionInner object itself. */ public IntegrationAccountSessionInner withContent(Object content) { - this.content = content; - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountSessionInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountSessionInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSessionProperties(); + } + this.innerProperties().withContent(content); return this; } @@ -95,5 +90,15 @@ public IntegrationAccountSessionInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerProperties in model IntegrationAccountSessionInner")); + } else { + innerProperties().validate(); + } } + + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountSessionInner.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionProperties.java new file mode 100644 index 000000000000..feab28c97394 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionProperties.java @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The integration account session properties. */ +@Fluent +public final class IntegrationAccountSessionProperties { + /* + * The created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * The changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The session content. + */ + @JsonProperty(value = "content") + private Object content; + + /** + * Get the createdTime property: The created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: The changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the content property: The session content. + * + * @return the content value. + */ + public Object content() { + return this.content; + } + + /** + * Set the content property: The session content. + * + * @param content the content value to set. + * @return the IntegrationAccountSessionProperties object itself. + */ + public IntegrationAccountSessionProperties withContent(Object content) { + this.content = content; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentInner.java index e993be37c0fa..0f4442791607 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentInner.java @@ -6,18 +6,15 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentProperties; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSku; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.azure.resourcemanager.logic.models.ManagedServiceIdentity; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The integration service environment. */ @Fluent public final class IntegrationServiceEnvironmentInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentInner.class); - /* * The integration service environment properties. */ @@ -30,6 +27,12 @@ public final class IntegrationServiceEnvironmentInner extends Resource { @JsonProperty(value = "sku") private IntegrationServiceEnvironmentSku sku; + /* + * Managed service identity properties. + */ + @JsonProperty(value = "identity") + private ManagedServiceIdentity identity; + /** * Get the properties property: The integration service environment properties. * @@ -70,6 +73,26 @@ public IntegrationServiceEnvironmentInner withSku(IntegrationServiceEnvironmentS return this; } + /** + * Get the identity property: Managed service identity properties. + * + * @return the identity value. + */ + public ManagedServiceIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: Managed service identity properties. + * + * @param identity the identity value to set. + * @return the IntegrationServiceEnvironmentInner object itself. + */ + public IntegrationServiceEnvironmentInner withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; + return this; + } + /** {@inheritDoc} */ @Override public IntegrationServiceEnvironmentInner withLocation(String location) { @@ -96,5 +119,8 @@ public void validate() { if (sku() != null) { sku().validate(); } + if (identity() != null) { + identity().validate(); + } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiInner.java new file mode 100644 index 000000000000..f3ee79775699 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiInner.java @@ -0,0 +1,220 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.resourcemanager.logic.models.ApiResourceBackendService; +import com.azure.resourcemanager.logic.models.ApiResourceDefinitions; +import com.azure.resourcemanager.logic.models.ApiResourceGeneralInformation; +import com.azure.resourcemanager.logic.models.ApiResourceMetadata; +import com.azure.resourcemanager.logic.models.ApiResourcePolicies; +import com.azure.resourcemanager.logic.models.ApiTier; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApiDeploymentParameters; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import java.util.Map; + +/** The integration service environment managed api. */ +@Fluent +public final class IntegrationServiceEnvironmentManagedApiInner extends Resource { + /* + * The integration service environment managed api properties. + */ + @JsonProperty(value = "properties") + private IntegrationServiceEnvironmentManagedApiProperties innerProperties; + + /** + * Get the innerProperties property: The integration service environment managed api properties. + * + * @return the innerProperties value. + */ + private IntegrationServiceEnvironmentManagedApiProperties innerProperties() { + return this.innerProperties; + } + + /** {@inheritDoc} */ + @Override + public IntegrationServiceEnvironmentManagedApiInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public IntegrationServiceEnvironmentManagedApiInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Get the deploymentParameters property: The integration service environment managed api deployment parameters. + * + * @return the deploymentParameters value. + */ + public IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters() { + return this.innerProperties() == null ? null : this.innerProperties().deploymentParameters(); + } + + /** + * Set the deploymentParameters property: The integration service environment managed api deployment parameters. + * + * @param deploymentParameters the deploymentParameters value to set. + * @return the IntegrationServiceEnvironmentManagedApiInner object itself. + */ + public IntegrationServiceEnvironmentManagedApiInner withDeploymentParameters( + IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters) { + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationServiceEnvironmentManagedApiProperties(); + } + this.innerProperties().withDeploymentParameters(deploymentParameters); + return this; + } + + /** + * Get the name property: The name. + * + * @return the name value. + */ + public String namePropertiesName() { + return this.innerProperties() == null ? null : this.innerProperties().name(); + } + + /** + * Get the connectionParameters property: The connection parameters. + * + * @return the connectionParameters value. + */ + public Map connectionParameters() { + return this.innerProperties() == null ? null : this.innerProperties().connectionParameters(); + } + + /** + * Get the metadata property: The metadata. + * + * @return the metadata value. + */ + public ApiResourceMetadata metadata() { + return this.innerProperties() == null ? null : this.innerProperties().metadata(); + } + + /** + * Get the runtimeUrls property: The runtime urls. + * + * @return the runtimeUrls value. + */ + public List runtimeUrls() { + return this.innerProperties() == null ? null : this.innerProperties().runtimeUrls(); + } + + /** + * Get the generalInformation property: The api general information. + * + * @return the generalInformation value. + */ + public ApiResourceGeneralInformation generalInformation() { + return this.innerProperties() == null ? null : this.innerProperties().generalInformation(); + } + + /** + * Get the capabilities property: The capabilities. + * + * @return the capabilities value. + */ + public List capabilities() { + return this.innerProperties() == null ? null : this.innerProperties().capabilities(); + } + + /** + * Get the backendService property: The backend service. + * + * @return the backendService value. + */ + public ApiResourceBackendService backendService() { + return this.innerProperties() == null ? null : this.innerProperties().backendService(); + } + + /** + * Get the policies property: The policies for the API. + * + * @return the policies value. + */ + public ApiResourcePolicies policies() { + return this.innerProperties() == null ? null : this.innerProperties().policies(); + } + + /** + * Get the apiDefinitionUrl property: The API definition. + * + * @return the apiDefinitionUrl value. + */ + public String apiDefinitionUrl() { + return this.innerProperties() == null ? null : this.innerProperties().apiDefinitionUrl(); + } + + /** + * Get the apiDefinitions property: The api definitions. + * + * @return the apiDefinitions value. + */ + public ApiResourceDefinitions apiDefinitions() { + return this.innerProperties() == null ? null : this.innerProperties().apiDefinitions(); + } + + /** + * Get the integrationServiceEnvironment property: The integration service environment reference. + * + * @return the integrationServiceEnvironment value. + */ + public ResourceReference integrationServiceEnvironment() { + return this.innerProperties() == null ? null : this.innerProperties().integrationServiceEnvironment(); + } + + /** + * Set the integrationServiceEnvironment property: The integration service environment reference. + * + * @param integrationServiceEnvironment the integrationServiceEnvironment value to set. + * @return the IntegrationServiceEnvironmentManagedApiInner object itself. + */ + public IntegrationServiceEnvironmentManagedApiInner withIntegrationServiceEnvironment( + ResourceReference integrationServiceEnvironment) { + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationServiceEnvironmentManagedApiProperties(); + } + this.innerProperties().withIntegrationServiceEnvironment(integrationServiceEnvironment); + return this; + } + + /** + * Get the provisioningState property: The provisioning state. + * + * @return the provisioningState value. + */ + public WorkflowProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the category property: The category. + * + * @return the category value. + */ + public ApiTier category() { + return this.innerProperties() == null ? null : this.innerProperties().category(); + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiProperties.java new file mode 100644 index 000000000000..7845a93b2646 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiProperties.java @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.logic.models.ApiResourceProperties; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApiDeploymentParameters; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The integration service environment managed api properties. */ +@Fluent +public final class IntegrationServiceEnvironmentManagedApiProperties extends ApiResourceProperties { + /* + * The integration service environment managed api deployment parameters. + */ + @JsonProperty(value = "deploymentParameters") + private IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters; + + /** + * Get the deploymentParameters property: The integration service environment managed api deployment parameters. + * + * @return the deploymentParameters value. + */ + public IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters() { + return this.deploymentParameters; + } + + /** + * Set the deploymentParameters property: The integration service environment managed api deployment parameters. + * + * @param deploymentParameters the deploymentParameters value to set. + * @return the IntegrationServiceEnvironmentManagedApiProperties object itself. + */ + public IntegrationServiceEnvironmentManagedApiProperties withDeploymentParameters( + IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters) { + this.deploymentParameters = deploymentParameters; + return this; + } + + /** {@inheritDoc} */ + @Override + public IntegrationServiceEnvironmentManagedApiProperties withIntegrationServiceEnvironment( + ResourceReference integrationServiceEnvironment) { + super.withIntegrationServiceEnvironment(integrationServiceEnvironment); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (deploymentParameters() != null) { + deploymentParameters().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentSkuDefinitionInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentSkuDefinitionInner.java index a5f696bd7c8a..6b300628db94 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentSkuDefinitionInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentSkuDefinitionInner.java @@ -5,18 +5,13 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSkuCapacity; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSkuDefinitionSku; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The integration service environment sku definition. */ @Fluent public final class IntegrationServiceEnvironmentSkuDefinitionInner { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentSkuDefinitionInner.class); - /* * The resource type. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentSubnetNetworkHealthInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentSubnetNetworkHealthInner.java index d2fd697d9d9f..577e7ff5273a 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentSubnetNetworkHealthInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentSubnetNetworkHealthInner.java @@ -9,16 +9,12 @@ import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentNetworkDependency; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentNetworkDependencyHealth; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentNetworkEndPointAccessibilityState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The integration service environment subnet network health. */ @Fluent public final class IntegrationServiceEnvironmentSubnetNetworkHealthInner { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentSubnetNetworkHealthInner.class); - /* * The outbound network dependencies. */ @@ -113,11 +109,14 @@ public void validate() { outboundNetworkHealth().validate(); } if (networkDependencyHealthState() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property networkDependencyHealthState in model" + " IntegrationServiceEnvironmentSubnetNetworkHealthInner")); } } + + private static final ClientLogger LOGGER = + new ClientLogger(IntegrationServiceEnvironmentSubnetNetworkHealthInner.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/JsonSchemaInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/JsonSchemaInner.java index 68a931ee8f65..9505f95dfccb 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/JsonSchemaInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/JsonSchemaInner.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The JSON schema. */ @Fluent public final class JsonSchemaInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(JsonSchemaInner.class); - /* * The JSON title. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/KeyVaultKeyInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/KeyVaultKeyInner.java index 3bcec8d10419..dde57045a5d7 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/KeyVaultKeyInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/KeyVaultKeyInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.KeyVaultKeyAttributes; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The key vault key. */ @Fluent public final class KeyVaultKeyInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KeyVaultKeyInner.class); - /* * The key id. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/ManagedApiInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/ManagedApiInner.java deleted file mode 100644 index a42e762bd786..000000000000 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/ManagedApiInner.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.logic.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.logic.models.ApiResourceProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** The managed api definition. */ -@Fluent -public final class ManagedApiInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedApiInner.class); - - /* - * The api resource properties. - */ - @JsonProperty(value = "properties") - private ApiResourceProperties properties; - - /** - * Get the properties property: The api resource properties. - * - * @return the properties value. - */ - public ApiResourceProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The api resource properties. - * - * @param properties the properties value to set. - * @return the ManagedApiInner object itself. - */ - public ManagedApiInner withProperties(ApiResourceProperties properties) { - this.properties = properties; - return this; - } - - /** {@inheritDoc} */ - @Override - public ManagedApiInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public ManagedApiInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } -} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/OperationInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/OperationInner.java index 7e351630fc17..5338b88ac684 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/OperationInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/OperationInner.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.OperationDisplay; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Logic REST API operation. */ @Fluent public final class OperationInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class); - /* * Operation: origin */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/RequestHistoryInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/RequestHistoryInner.java index 2ddd3c6389fb..4c27bcfbb187 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/RequestHistoryInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/RequestHistoryInner.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.RequestHistoryProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The request history. */ @Fluent public final class RequestHistoryInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RequestHistoryInner.class); - /* * The request history properties. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowInner.java index 699a05ca0b98..a98a361b33af 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowInner.java @@ -5,104 +5,76 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.FlowAccessControlConfiguration; import com.azure.resourcemanager.logic.models.FlowEndpointsConfiguration; +import com.azure.resourcemanager.logic.models.ManagedServiceIdentity; import com.azure.resourcemanager.logic.models.ResourceReference; import com.azure.resourcemanager.logic.models.Sku; import com.azure.resourcemanager.logic.models.WorkflowParameter; import com.azure.resourcemanager.logic.models.WorkflowProvisioningState; import com.azure.resourcemanager.logic.models.WorkflowState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.Map; /** The workflow type. */ -@JsonFlatten @Fluent -public class WorkflowInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowInner.class); - - /* - * Gets the provisioning state. - */ - @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowProvisioningState provisioningState; - - /* - * Gets the created time. - */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; - - /* - * Gets the changed time. - */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; - - /* - * The state. - */ - @JsonProperty(value = "properties.state") - private WorkflowState state; - - /* - * Gets the version. - */ - @JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY) - private String version; - - /* - * Gets the access endpoint. - */ - @JsonProperty(value = "properties.accessEndpoint", access = JsonProperty.Access.WRITE_ONLY) - private String accessEndpoint; - +public final class WorkflowInner extends Resource { /* - * The endpoints configuration. + * The workflow properties. */ - @JsonProperty(value = "properties.endpointsConfiguration") - private FlowEndpointsConfiguration endpointsConfiguration; + @JsonProperty(value = "properties") + private WorkflowProperties innerProperties; /* - * The access control configuration. + * Managed service identity properties. */ - @JsonProperty(value = "properties.accessControl") - private FlowAccessControlConfiguration accessControl; + @JsonProperty(value = "identity") + private ManagedServiceIdentity identity; - /* - * The sku. + /** + * Get the innerProperties property: The workflow properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.sku", access = JsonProperty.Access.WRITE_ONLY) - private Sku sku; + private WorkflowProperties innerProperties() { + return this.innerProperties; + } - /* - * The integration account. + /** + * Get the identity property: Managed service identity properties. + * + * @return the identity value. */ - @JsonProperty(value = "properties.integrationAccount") - private ResourceReference integrationAccount; + public ManagedServiceIdentity identity() { + return this.identity; + } - /* - * The integration service environment. + /** + * Set the identity property: Managed service identity properties. + * + * @param identity the identity value to set. + * @return the WorkflowInner object itself. */ - @JsonProperty(value = "properties.integrationServiceEnvironment") - private ResourceReference integrationServiceEnvironment; + public WorkflowInner withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; + return this; + } - /* - * The definition. - */ - @JsonProperty(value = "properties.definition") - private Object definition; + /** {@inheritDoc} */ + @Override + public WorkflowInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The parameters. - */ - @JsonProperty(value = "properties.parameters") - private Map parameters; + /** {@inheritDoc} */ + @Override + public WorkflowInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the provisioningState property: Gets the provisioning state. @@ -110,7 +82,7 @@ public class WorkflowInner extends Resource { * @return the provisioningState value. */ public WorkflowProvisioningState provisioningState() { - return this.provisioningState; + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } /** @@ -119,7 +91,7 @@ public WorkflowProvisioningState provisioningState() { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -128,7 +100,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -137,7 +109,7 @@ public OffsetDateTime changedTime() { * @return the state value. */ public WorkflowState state() { - return this.state; + return this.innerProperties() == null ? null : this.innerProperties().state(); } /** @@ -147,7 +119,10 @@ public WorkflowState state() { * @return the WorkflowInner object itself. */ public WorkflowInner withState(WorkflowState state) { - this.state = state; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowProperties(); + } + this.innerProperties().withState(state); return this; } @@ -157,7 +132,7 @@ public WorkflowInner withState(WorkflowState state) { * @return the version value. */ public String version() { - return this.version; + return this.innerProperties() == null ? null : this.innerProperties().version(); } /** @@ -166,7 +141,7 @@ public String version() { * @return the accessEndpoint value. */ public String accessEndpoint() { - return this.accessEndpoint; + return this.innerProperties() == null ? null : this.innerProperties().accessEndpoint(); } /** @@ -175,7 +150,7 @@ public String accessEndpoint() { * @return the endpointsConfiguration value. */ public FlowEndpointsConfiguration endpointsConfiguration() { - return this.endpointsConfiguration; + return this.innerProperties() == null ? null : this.innerProperties().endpointsConfiguration(); } /** @@ -185,7 +160,10 @@ public FlowEndpointsConfiguration endpointsConfiguration() { * @return the WorkflowInner object itself. */ public WorkflowInner withEndpointsConfiguration(FlowEndpointsConfiguration endpointsConfiguration) { - this.endpointsConfiguration = endpointsConfiguration; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowProperties(); + } + this.innerProperties().withEndpointsConfiguration(endpointsConfiguration); return this; } @@ -195,7 +173,7 @@ public WorkflowInner withEndpointsConfiguration(FlowEndpointsConfiguration endpo * @return the accessControl value. */ public FlowAccessControlConfiguration accessControl() { - return this.accessControl; + return this.innerProperties() == null ? null : this.innerProperties().accessControl(); } /** @@ -205,7 +183,10 @@ public FlowAccessControlConfiguration accessControl() { * @return the WorkflowInner object itself. */ public WorkflowInner withAccessControl(FlowAccessControlConfiguration accessControl) { - this.accessControl = accessControl; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowProperties(); + } + this.innerProperties().withAccessControl(accessControl); return this; } @@ -215,7 +196,7 @@ public WorkflowInner withAccessControl(FlowAccessControlConfiguration accessCont * @return the sku value. */ public Sku sku() { - return this.sku; + return this.innerProperties() == null ? null : this.innerProperties().sku(); } /** @@ -224,7 +205,7 @@ public Sku sku() { * @return the integrationAccount value. */ public ResourceReference integrationAccount() { - return this.integrationAccount; + return this.innerProperties() == null ? null : this.innerProperties().integrationAccount(); } /** @@ -234,7 +215,10 @@ public ResourceReference integrationAccount() { * @return the WorkflowInner object itself. */ public WorkflowInner withIntegrationAccount(ResourceReference integrationAccount) { - this.integrationAccount = integrationAccount; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowProperties(); + } + this.innerProperties().withIntegrationAccount(integrationAccount); return this; } @@ -244,7 +228,7 @@ public WorkflowInner withIntegrationAccount(ResourceReference integrationAccount * @return the integrationServiceEnvironment value. */ public ResourceReference integrationServiceEnvironment() { - return this.integrationServiceEnvironment; + return this.innerProperties() == null ? null : this.innerProperties().integrationServiceEnvironment(); } /** @@ -254,7 +238,10 @@ public ResourceReference integrationServiceEnvironment() { * @return the WorkflowInner object itself. */ public WorkflowInner withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment) { - this.integrationServiceEnvironment = integrationServiceEnvironment; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowProperties(); + } + this.innerProperties().withIntegrationServiceEnvironment(integrationServiceEnvironment); return this; } @@ -264,7 +251,7 @@ public WorkflowInner withIntegrationServiceEnvironment(ResourceReference integra * @return the definition value. */ public Object definition() { - return this.definition; + return this.innerProperties() == null ? null : this.innerProperties().definition(); } /** @@ -274,7 +261,10 @@ public Object definition() { * @return the WorkflowInner object itself. */ public WorkflowInner withDefinition(Object definition) { - this.definition = definition; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowProperties(); + } + this.innerProperties().withDefinition(definition); return this; } @@ -284,7 +274,7 @@ public WorkflowInner withDefinition(Object definition) { * @return the parameters value. */ public Map parameters() { - return this.parameters; + return this.innerProperties() == null ? null : this.innerProperties().parameters(); } /** @@ -294,21 +284,10 @@ public Map parameters() { * @return the WorkflowInner object itself. */ public WorkflowInner withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** {@inheritDoc} */ - @Override - public WorkflowInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public WorkflowInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowProperties(); + } + this.innerProperties().withParameters(parameters); return this; } @@ -318,30 +297,11 @@ public WorkflowInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (endpointsConfiguration() != null) { - endpointsConfiguration().validate(); - } - if (accessControl() != null) { - accessControl().validate(); - } - if (sku() != null) { - sku().validate(); - } - if (integrationAccount() != null) { - integrationAccount().validate(); - } - if (integrationServiceEnvironment() != null) { - integrationServiceEnvironment().validate(); + if (innerProperties() != null) { + innerProperties().validate(); } - if (parameters() != null) { - parameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); + if (identity() != null) { + identity().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowProperties.java new file mode 100644 index 000000000000..eb774270e1a5 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowProperties.java @@ -0,0 +1,328 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.logic.models.FlowAccessControlConfiguration; +import com.azure.resourcemanager.logic.models.FlowEndpointsConfiguration; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.Sku; +import com.azure.resourcemanager.logic.models.WorkflowParameter; +import com.azure.resourcemanager.logic.models.WorkflowProvisioningState; +import com.azure.resourcemanager.logic.models.WorkflowState; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** The workflow properties. */ +@Fluent +public final class WorkflowProperties { + /* + * Gets the provisioning state. + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowProvisioningState provisioningState; + + /* + * Gets the created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * Gets the changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The state. + */ + @JsonProperty(value = "state") + private WorkflowState state; + + /* + * Gets the version. + */ + @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY) + private String version; + + /* + * Gets the access endpoint. + */ + @JsonProperty(value = "accessEndpoint", access = JsonProperty.Access.WRITE_ONLY) + private String accessEndpoint; + + /* + * The endpoints configuration. + */ + @JsonProperty(value = "endpointsConfiguration") + private FlowEndpointsConfiguration endpointsConfiguration; + + /* + * The access control configuration. + */ + @JsonProperty(value = "accessControl") + private FlowAccessControlConfiguration accessControl; + + /* + * The sku. + */ + @JsonProperty(value = "sku", access = JsonProperty.Access.WRITE_ONLY) + private Sku sku; + + /* + * The integration account. + */ + @JsonProperty(value = "integrationAccount") + private ResourceReference integrationAccount; + + /* + * The integration service environment. + */ + @JsonProperty(value = "integrationServiceEnvironment") + private ResourceReference integrationServiceEnvironment; + + /* + * The definition. + */ + @JsonProperty(value = "definition") + private Object definition; + + /* + * The parameters. + */ + @JsonProperty(value = "parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map parameters; + + /** + * Get the provisioningState property: Gets the provisioning state. + * + * @return the provisioningState value. + */ + public WorkflowProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the createdTime property: Gets the created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: Gets the changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the state property: The state. + * + * @return the state value. + */ + public WorkflowState state() { + return this.state; + } + + /** + * Set the state property: The state. + * + * @param state the state value to set. + * @return the WorkflowProperties object itself. + */ + public WorkflowProperties withState(WorkflowState state) { + this.state = state; + return this; + } + + /** + * Get the version property: Gets the version. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * Get the accessEndpoint property: Gets the access endpoint. + * + * @return the accessEndpoint value. + */ + public String accessEndpoint() { + return this.accessEndpoint; + } + + /** + * Get the endpointsConfiguration property: The endpoints configuration. + * + * @return the endpointsConfiguration value. + */ + public FlowEndpointsConfiguration endpointsConfiguration() { + return this.endpointsConfiguration; + } + + /** + * Set the endpointsConfiguration property: The endpoints configuration. + * + * @param endpointsConfiguration the endpointsConfiguration value to set. + * @return the WorkflowProperties object itself. + */ + public WorkflowProperties withEndpointsConfiguration(FlowEndpointsConfiguration endpointsConfiguration) { + this.endpointsConfiguration = endpointsConfiguration; + return this; + } + + /** + * Get the accessControl property: The access control configuration. + * + * @return the accessControl value. + */ + public FlowAccessControlConfiguration accessControl() { + return this.accessControl; + } + + /** + * Set the accessControl property: The access control configuration. + * + * @param accessControl the accessControl value to set. + * @return the WorkflowProperties object itself. + */ + public WorkflowProperties withAccessControl(FlowAccessControlConfiguration accessControl) { + this.accessControl = accessControl; + return this; + } + + /** + * Get the sku property: The sku. + * + * @return the sku value. + */ + public Sku sku() { + return this.sku; + } + + /** + * Get the integrationAccount property: The integration account. + * + * @return the integrationAccount value. + */ + public ResourceReference integrationAccount() { + return this.integrationAccount; + } + + /** + * Set the integrationAccount property: The integration account. + * + * @param integrationAccount the integrationAccount value to set. + * @return the WorkflowProperties object itself. + */ + public WorkflowProperties withIntegrationAccount(ResourceReference integrationAccount) { + this.integrationAccount = integrationAccount; + return this; + } + + /** + * Get the integrationServiceEnvironment property: The integration service environment. + * + * @return the integrationServiceEnvironment value. + */ + public ResourceReference integrationServiceEnvironment() { + return this.integrationServiceEnvironment; + } + + /** + * Set the integrationServiceEnvironment property: The integration service environment. + * + * @param integrationServiceEnvironment the integrationServiceEnvironment value to set. + * @return the WorkflowProperties object itself. + */ + public WorkflowProperties withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment) { + this.integrationServiceEnvironment = integrationServiceEnvironment; + return this; + } + + /** + * Get the definition property: The definition. + * + * @return the definition value. + */ + public Object definition() { + return this.definition; + } + + /** + * Set the definition property: The definition. + * + * @param definition the definition value to set. + * @return the WorkflowProperties object itself. + */ + public WorkflowProperties withDefinition(Object definition) { + this.definition = definition; + return this; + } + + /** + * Get the parameters property: The parameters. + * + * @return the parameters value. + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set the parameters property: The parameters. + * + * @param parameters the parameters value to set. + * @return the WorkflowProperties object itself. + */ + public WorkflowProperties withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (endpointsConfiguration() != null) { + endpointsConfiguration().validate(); + } + if (accessControl() != null) { + accessControl().validate(); + } + if (sku() != null) { + sku().validate(); + } + if (integrationAccount() != null) { + integrationAccount().validate(); + } + if (integrationServiceEnvironment() != null) { + integrationServiceEnvironment().validate(); + } + if (parameters() != null) { + parameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionInner.java index d869a2b7dc99..dc861f2873d9 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionInner.java @@ -5,23 +5,23 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.ContentLink; import com.azure.resourcemanager.logic.models.RetryHistory; import com.azure.resourcemanager.logic.models.RunActionCorrelation; import com.azure.resourcemanager.logic.models.WorkflowStatus; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; /** The workflow run action. */ -@JsonFlatten @Fluent -public class WorkflowRunActionInner extends SubResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunActionInner.class); +public final class WorkflowRunActionInner extends SubResource { + /* + * The workflow run action properties. + */ + @JsonProperty(value = "properties") + private WorkflowRunActionProperties innerProperties; /* * Gets the workflow run action name. @@ -35,71 +35,14 @@ public class WorkflowRunActionInner extends SubResource { @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; - /* - * Gets the start time. - */ - @JsonProperty(value = "properties.startTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime startTime; - - /* - * Gets the end time. - */ - @JsonProperty(value = "properties.endTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime endTime; - - /* - * Gets the status. - */ - @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowStatus status; - - /* - * Gets the code. - */ - @JsonProperty(value = "properties.code", access = JsonProperty.Access.WRITE_ONLY) - private String code; - - /* - * Gets the error. - */ - @JsonProperty(value = "properties.error", access = JsonProperty.Access.WRITE_ONLY) - private Object error; - - /* - * Gets the tracking id. - */ - @JsonProperty(value = "properties.trackingId", access = JsonProperty.Access.WRITE_ONLY) - private String trackingId; - - /* - * The correlation properties. - */ - @JsonProperty(value = "properties.correlation") - private RunActionCorrelation correlation; - - /* - * Gets the link to inputs. - */ - @JsonProperty(value = "properties.inputsLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink inputsLink; - - /* - * Gets the link to outputs. - */ - @JsonProperty(value = "properties.outputsLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink outputsLink; - - /* - * Gets the tracked properties. - */ - @JsonProperty(value = "properties.trackedProperties", access = JsonProperty.Access.WRITE_ONLY) - private Object trackedProperties; - - /* - * Gets the retry histories. + /** + * Get the innerProperties property: The workflow run action properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.retryHistory") - private List retryHistory; + private WorkflowRunActionProperties innerProperties() { + return this.innerProperties; + } /** * Get the name property: Gets the workflow run action name. @@ -119,13 +62,20 @@ public String type() { return this.type; } + /** {@inheritDoc} */ + @Override + public WorkflowRunActionInner withId(String id) { + super.withId(id); + return this; + } + /** * Get the startTime property: Gets the start time. * * @return the startTime value. */ public OffsetDateTime startTime() { - return this.startTime; + return this.innerProperties() == null ? null : this.innerProperties().startTime(); } /** @@ -134,7 +84,7 @@ public OffsetDateTime startTime() { * @return the endTime value. */ public OffsetDateTime endTime() { - return this.endTime; + return this.innerProperties() == null ? null : this.innerProperties().endTime(); } /** @@ -143,7 +93,7 @@ public OffsetDateTime endTime() { * @return the status value. */ public WorkflowStatus status() { - return this.status; + return this.innerProperties() == null ? null : this.innerProperties().status(); } /** @@ -152,7 +102,7 @@ public WorkflowStatus status() { * @return the code value. */ public String code() { - return this.code; + return this.innerProperties() == null ? null : this.innerProperties().code(); } /** @@ -161,7 +111,7 @@ public String code() { * @return the error value. */ public Object error() { - return this.error; + return this.innerProperties() == null ? null : this.innerProperties().error(); } /** @@ -170,7 +120,7 @@ public Object error() { * @return the trackingId value. */ public String trackingId() { - return this.trackingId; + return this.innerProperties() == null ? null : this.innerProperties().trackingId(); } /** @@ -179,7 +129,7 @@ public String trackingId() { * @return the correlation value. */ public RunActionCorrelation correlation() { - return this.correlation; + return this.innerProperties() == null ? null : this.innerProperties().correlation(); } /** @@ -189,7 +139,10 @@ public RunActionCorrelation correlation() { * @return the WorkflowRunActionInner object itself. */ public WorkflowRunActionInner withCorrelation(RunActionCorrelation correlation) { - this.correlation = correlation; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionProperties(); + } + this.innerProperties().withCorrelation(correlation); return this; } @@ -199,7 +152,7 @@ public WorkflowRunActionInner withCorrelation(RunActionCorrelation correlation) * @return the inputsLink value. */ public ContentLink inputsLink() { - return this.inputsLink; + return this.innerProperties() == null ? null : this.innerProperties().inputsLink(); } /** @@ -208,7 +161,7 @@ public ContentLink inputsLink() { * @return the outputsLink value. */ public ContentLink outputsLink() { - return this.outputsLink; + return this.innerProperties() == null ? null : this.innerProperties().outputsLink(); } /** @@ -217,7 +170,7 @@ public ContentLink outputsLink() { * @return the trackedProperties value. */ public Object trackedProperties() { - return this.trackedProperties; + return this.innerProperties() == null ? null : this.innerProperties().trackedProperties(); } /** @@ -226,7 +179,7 @@ public Object trackedProperties() { * @return the retryHistory value. */ public List retryHistory() { - return this.retryHistory; + return this.innerProperties() == null ? null : this.innerProperties().retryHistory(); } /** @@ -236,14 +189,10 @@ public List retryHistory() { * @return the WorkflowRunActionInner object itself. */ public WorkflowRunActionInner withRetryHistory(List retryHistory) { - this.retryHistory = retryHistory; - return this; - } - - /** {@inheritDoc} */ - @Override - public WorkflowRunActionInner withId(String id) { - super.withId(id); + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionProperties(); + } + this.innerProperties().withRetryHistory(retryHistory); return this; } @@ -253,17 +202,8 @@ public WorkflowRunActionInner withId(String id) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (correlation() != null) { - correlation().validate(); - } - if (inputsLink() != null) { - inputsLink().validate(); - } - if (outputsLink() != null) { - outputsLink().validate(); - } - if (retryHistory() != null) { - retryHistory().forEach(e -> e.validate()); + if (innerProperties() != null) { + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionProperties.java new file mode 100644 index 000000000000..c7644eec3f98 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionProperties.java @@ -0,0 +1,225 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.logic.models.ContentLink; +import com.azure.resourcemanager.logic.models.RetryHistory; +import com.azure.resourcemanager.logic.models.RunActionCorrelation; +import com.azure.resourcemanager.logic.models.WorkflowStatus; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.List; + +/** The workflow run action properties. */ +@Fluent +public final class WorkflowRunActionProperties { + /* + * Gets the start time. + */ + @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime startTime; + + /* + * Gets the end time. + */ + @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime endTime; + + /* + * Gets the status. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowStatus status; + + /* + * Gets the code. + */ + @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) + private String code; + + /* + * Gets the error. + */ + @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY) + private Object error; + + /* + * Gets the tracking id. + */ + @JsonProperty(value = "trackingId", access = JsonProperty.Access.WRITE_ONLY) + private String trackingId; + + /* + * The correlation properties. + */ + @JsonProperty(value = "correlation") + private RunActionCorrelation correlation; + + /* + * Gets the link to inputs. + */ + @JsonProperty(value = "inputsLink", access = JsonProperty.Access.WRITE_ONLY) + private ContentLink inputsLink; + + /* + * Gets the link to outputs. + */ + @JsonProperty(value = "outputsLink", access = JsonProperty.Access.WRITE_ONLY) + private ContentLink outputsLink; + + /* + * Gets the tracked properties. + */ + @JsonProperty(value = "trackedProperties", access = JsonProperty.Access.WRITE_ONLY) + private Object trackedProperties; + + /* + * Gets the retry histories. + */ + @JsonProperty(value = "retryHistory") + private List retryHistory; + + /** + * Get the startTime property: Gets the start time. + * + * @return the startTime value. + */ + public OffsetDateTime startTime() { + return this.startTime; + } + + /** + * Get the endTime property: Gets the end time. + * + * @return the endTime value. + */ + public OffsetDateTime endTime() { + return this.endTime; + } + + /** + * Get the status property: Gets the status. + * + * @return the status value. + */ + public WorkflowStatus status() { + return this.status; + } + + /** + * Get the code property: Gets the code. + * + * @return the code value. + */ + public String code() { + return this.code; + } + + /** + * Get the error property: Gets the error. + * + * @return the error value. + */ + public Object error() { + return this.error; + } + + /** + * Get the trackingId property: Gets the tracking id. + * + * @return the trackingId value. + */ + public String trackingId() { + return this.trackingId; + } + + /** + * Get the correlation property: The correlation properties. + * + * @return the correlation value. + */ + public RunActionCorrelation correlation() { + return this.correlation; + } + + /** + * Set the correlation property: The correlation properties. + * + * @param correlation the correlation value to set. + * @return the WorkflowRunActionProperties object itself. + */ + public WorkflowRunActionProperties withCorrelation(RunActionCorrelation correlation) { + this.correlation = correlation; + return this; + } + + /** + * Get the inputsLink property: Gets the link to inputs. + * + * @return the inputsLink value. + */ + public ContentLink inputsLink() { + return this.inputsLink; + } + + /** + * Get the outputsLink property: Gets the link to outputs. + * + * @return the outputsLink value. + */ + public ContentLink outputsLink() { + return this.outputsLink; + } + + /** + * Get the trackedProperties property: Gets the tracked properties. + * + * @return the trackedProperties value. + */ + public Object trackedProperties() { + return this.trackedProperties; + } + + /** + * Get the retryHistory property: Gets the retry histories. + * + * @return the retryHistory value. + */ + public List retryHistory() { + return this.retryHistory; + } + + /** + * Set the retryHistory property: Gets the retry histories. + * + * @param retryHistory the retryHistory value to set. + * @return the WorkflowRunActionProperties object itself. + */ + public WorkflowRunActionProperties withRetryHistory(List retryHistory) { + this.retryHistory = retryHistory; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (correlation() != null) { + correlation().validate(); + } + if (inputsLink() != null) { + inputsLink().validate(); + } + if (outputsLink() != null) { + outputsLink().validate(); + } + if (retryHistory() != null) { + retryHistory().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionRepetitionDefinitionInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionRepetitionDefinitionInner.java index 905c805d3cb6..f3a706cc0754 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionRepetitionDefinitionInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionRepetitionDefinitionInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.ContentLink; @@ -13,353 +12,301 @@ import com.azure.resourcemanager.logic.models.RetryHistory; import com.azure.resourcemanager.logic.models.RunActionCorrelation; import com.azure.resourcemanager.logic.models.WorkflowStatus; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; import java.util.Map; /** The workflow run action repetition definition. */ -@JsonFlatten @Fluent -public class WorkflowRunActionRepetitionDefinitionInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunActionRepetitionDefinitionInner.class); - - /* - * The start time of the workflow scope repetition. - */ - @JsonProperty(value = "properties.startTime") - private OffsetDateTime startTime; - - /* - * The end time of the workflow scope repetition. - */ - @JsonProperty(value = "properties.endTime") - private OffsetDateTime endTime; - - /* - * The correlation properties. - */ - @JsonProperty(value = "properties.correlation") - private RunActionCorrelation correlation; - - /* - * The status of the workflow scope repetition. - */ - @JsonProperty(value = "properties.status") - private WorkflowStatus status; - - /* - * The workflow scope repetition code. - */ - @JsonProperty(value = "properties.code") - private String code; - - /* - * Any object - */ - @JsonProperty(value = "properties.error") - private Object error; - +public final class WorkflowRunActionRepetitionDefinitionInner extends Resource { /* - * Gets the tracking id. + * The workflow run action repetition properties definition. */ - @JsonProperty(value = "properties.trackingId", access = JsonProperty.Access.WRITE_ONLY) - private String trackingId; + @JsonProperty(value = "properties", required = true) + private WorkflowRunActionRepetitionProperties innerProperties = new WorkflowRunActionRepetitionProperties(); - /* - * Gets the inputs. - */ - @JsonProperty(value = "properties.inputs", access = JsonProperty.Access.WRITE_ONLY) - private Object inputs; - - /* - * Gets the link to inputs. - */ - @JsonProperty(value = "properties.inputsLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink inputsLink; - - /* - * Gets the outputs. - */ - @JsonProperty(value = "properties.outputs", access = JsonProperty.Access.WRITE_ONLY) - private Object outputs; - - /* - * Gets the link to outputs. - */ - @JsonProperty(value = "properties.outputsLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink outputsLink; - - /* - * Gets the tracked properties. - */ - @JsonProperty(value = "properties.trackedProperties", access = JsonProperty.Access.WRITE_ONLY) - private Object trackedProperties; - - /* - * Gets the retry histories. + /** + * Get the innerProperties property: The workflow run action repetition properties definition. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.retryHistory") - private List retryHistory; + private WorkflowRunActionRepetitionProperties innerProperties() { + return this.innerProperties; + } - /* - * The iterationCount property. - */ - @JsonProperty(value = "properties.iterationCount") - private Integer iterationCount; + /** {@inheritDoc} */ + @Override + public WorkflowRunActionRepetitionDefinitionInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The repetition indexes. - */ - @JsonProperty(value = "properties.repetitionIndexes") - private List repetitionIndexes; + /** {@inheritDoc} */ + @Override + public WorkflowRunActionRepetitionDefinitionInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** - * Get the startTime property: The start time of the workflow scope repetition. + * Get the repetitionIndexes property: The repetition indexes. * - * @return the startTime value. + * @return the repetitionIndexes value. */ - public OffsetDateTime startTime() { - return this.startTime; + public List repetitionIndexes() { + return this.innerProperties() == null ? null : this.innerProperties().repetitionIndexes(); } /** - * Set the startTime property: The start time of the workflow scope repetition. + * Set the repetitionIndexes property: The repetition indexes. * - * @param startTime the startTime value to set. + * @param repetitionIndexes the repetitionIndexes value to set. * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public WorkflowRunActionRepetitionDefinitionInner withStartTime(OffsetDateTime startTime) { - this.startTime = startTime; + public WorkflowRunActionRepetitionDefinitionInner withRepetitionIndexes(List repetitionIndexes) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withRepetitionIndexes(repetitionIndexes); return this; } /** - * Get the endTime property: The end time of the workflow scope repetition. + * Get the trackingId property: Gets the tracking id. * - * @return the endTime value. + * @return the trackingId value. */ - public OffsetDateTime endTime() { - return this.endTime; + public String trackingId() { + return this.innerProperties() == null ? null : this.innerProperties().trackingId(); } /** - * Set the endTime property: The end time of the workflow scope repetition. + * Get the inputs property: Gets the inputs. * - * @param endTime the endTime value to set. - * @return the WorkflowRunActionRepetitionDefinitionInner object itself. + * @return the inputs value. */ - public WorkflowRunActionRepetitionDefinitionInner withEndTime(OffsetDateTime endTime) { - this.endTime = endTime; - return this; + public Object inputs() { + return this.innerProperties() == null ? null : this.innerProperties().inputs(); } /** - * Get the correlation property: The correlation properties. + * Get the inputsLink property: Gets the link to inputs. * - * @return the correlation value. + * @return the inputsLink value. */ - public RunActionCorrelation correlation() { - return this.correlation; + public ContentLink inputsLink() { + return this.innerProperties() == null ? null : this.innerProperties().inputsLink(); } /** - * Set the correlation property: The correlation properties. + * Get the outputs property: Gets the outputs. * - * @param correlation the correlation value to set. - * @return the WorkflowRunActionRepetitionDefinitionInner object itself. + * @return the outputs value. */ - public WorkflowRunActionRepetitionDefinitionInner withCorrelation(RunActionCorrelation correlation) { - this.correlation = correlation; - return this; + public Object outputs() { + return this.innerProperties() == null ? null : this.innerProperties().outputs(); } /** - * Get the status property: The status of the workflow scope repetition. + * Get the outputsLink property: Gets the link to outputs. * - * @return the status value. + * @return the outputsLink value. */ - public WorkflowStatus status() { - return this.status; + public ContentLink outputsLink() { + return this.innerProperties() == null ? null : this.innerProperties().outputsLink(); } /** - * Set the status property: The status of the workflow scope repetition. + * Get the trackedProperties property: Gets the tracked properties. * - * @param status the status value to set. - * @return the WorkflowRunActionRepetitionDefinitionInner object itself. + * @return the trackedProperties value. */ - public WorkflowRunActionRepetitionDefinitionInner withStatus(WorkflowStatus status) { - this.status = status; - return this; + public Object trackedProperties() { + return this.innerProperties() == null ? null : this.innerProperties().trackedProperties(); } /** - * Get the code property: The workflow scope repetition code. + * Get the retryHistory property: Gets the retry histories. * - * @return the code value. + * @return the retryHistory value. */ - public String code() { - return this.code; + public List retryHistory() { + return this.innerProperties() == null ? null : this.innerProperties().retryHistory(); } /** - * Set the code property: The workflow scope repetition code. + * Set the retryHistory property: Gets the retry histories. * - * @param code the code value to set. + * @param retryHistory the retryHistory value to set. * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public WorkflowRunActionRepetitionDefinitionInner withCode(String code) { - this.code = code; + public WorkflowRunActionRepetitionDefinitionInner withRetryHistory(List retryHistory) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withRetryHistory(retryHistory); return this; } /** - * Get the error property: Any object. + * Get the iterationCount property: The iterationCount property. * - * @return the error value. + * @return the iterationCount value. */ - public Object error() { - return this.error; + public Integer iterationCount() { + return this.innerProperties() == null ? null : this.innerProperties().iterationCount(); } /** - * Set the error property: Any object. + * Set the iterationCount property: The iterationCount property. * - * @param error the error value to set. + * @param iterationCount the iterationCount value to set. * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public WorkflowRunActionRepetitionDefinitionInner withError(Object error) { - this.error = error; + public WorkflowRunActionRepetitionDefinitionInner withIterationCount(Integer iterationCount) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withIterationCount(iterationCount); return this; } /** - * Get the trackingId property: Gets the tracking id. + * Get the startTime property: The start time of the workflow scope repetition. * - * @return the trackingId value. + * @return the startTime value. */ - public String trackingId() { - return this.trackingId; + public OffsetDateTime startTime() { + return this.innerProperties() == null ? null : this.innerProperties().startTime(); } /** - * Get the inputs property: Gets the inputs. + * Set the startTime property: The start time of the workflow scope repetition. * - * @return the inputs value. + * @param startTime the startTime value to set. + * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public Object inputs() { - return this.inputs; + public WorkflowRunActionRepetitionDefinitionInner withStartTime(OffsetDateTime startTime) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withStartTime(startTime); + return this; } /** - * Get the inputsLink property: Gets the link to inputs. + * Get the endTime property: The end time of the workflow scope repetition. * - * @return the inputsLink value. + * @return the endTime value. */ - public ContentLink inputsLink() { - return this.inputsLink; + public OffsetDateTime endTime() { + return this.innerProperties() == null ? null : this.innerProperties().endTime(); } /** - * Get the outputs property: Gets the outputs. + * Set the endTime property: The end time of the workflow scope repetition. * - * @return the outputs value. + * @param endTime the endTime value to set. + * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public Object outputs() { - return this.outputs; + public WorkflowRunActionRepetitionDefinitionInner withEndTime(OffsetDateTime endTime) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withEndTime(endTime); + return this; } /** - * Get the outputsLink property: Gets the link to outputs. + * Get the correlation property: The correlation properties. * - * @return the outputsLink value. + * @return the correlation value. */ - public ContentLink outputsLink() { - return this.outputsLink; + public RunActionCorrelation correlation() { + return this.innerProperties() == null ? null : this.innerProperties().correlation(); } /** - * Get the trackedProperties property: Gets the tracked properties. + * Set the correlation property: The correlation properties. * - * @return the trackedProperties value. + * @param correlation the correlation value to set. + * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public Object trackedProperties() { - return this.trackedProperties; + public WorkflowRunActionRepetitionDefinitionInner withCorrelation(RunActionCorrelation correlation) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withCorrelation(correlation); + return this; } /** - * Get the retryHistory property: Gets the retry histories. + * Get the status property: The status of the workflow scope repetition. * - * @return the retryHistory value. + * @return the status value. */ - public List retryHistory() { - return this.retryHistory; + public WorkflowStatus status() { + return this.innerProperties() == null ? null : this.innerProperties().status(); } /** - * Set the retryHistory property: Gets the retry histories. + * Set the status property: The status of the workflow scope repetition. * - * @param retryHistory the retryHistory value to set. + * @param status the status value to set. * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public WorkflowRunActionRepetitionDefinitionInner withRetryHistory(List retryHistory) { - this.retryHistory = retryHistory; + public WorkflowRunActionRepetitionDefinitionInner withStatus(WorkflowStatus status) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withStatus(status); return this; } /** - * Get the iterationCount property: The iterationCount property. + * Get the code property: The workflow scope repetition code. * - * @return the iterationCount value. + * @return the code value. */ - public Integer iterationCount() { - return this.iterationCount; + public String code() { + return this.innerProperties() == null ? null : this.innerProperties().code(); } /** - * Set the iterationCount property: The iterationCount property. + * Set the code property: The workflow scope repetition code. * - * @param iterationCount the iterationCount value to set. + * @param code the code value to set. * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public WorkflowRunActionRepetitionDefinitionInner withIterationCount(Integer iterationCount) { - this.iterationCount = iterationCount; + public WorkflowRunActionRepetitionDefinitionInner withCode(String code) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withCode(code); return this; } /** - * Get the repetitionIndexes property: The repetition indexes. + * Get the error property: Anything. * - * @return the repetitionIndexes value. + * @return the error value. */ - public List repetitionIndexes() { - return this.repetitionIndexes; + public Object error() { + return this.innerProperties() == null ? null : this.innerProperties().error(); } /** - * Set the repetitionIndexes property: The repetition indexes. + * Set the error property: Anything. * - * @param repetitionIndexes the repetitionIndexes value to set. + * @param error the error value to set. * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public WorkflowRunActionRepetitionDefinitionInner withRepetitionIndexes(List repetitionIndexes) { - this.repetitionIndexes = repetitionIndexes; - return this; - } - - /** {@inheritDoc} */ - @Override - public WorkflowRunActionRepetitionDefinitionInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public WorkflowRunActionRepetitionDefinitionInner withTags(Map tags) { - super.withTags(tags); + public WorkflowRunActionRepetitionDefinitionInner withError(Object error) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withError(error); return this; } @@ -369,20 +316,16 @@ public WorkflowRunActionRepetitionDefinitionInner withTags(Map t * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (correlation() != null) { - correlation().validate(); - } - if (inputsLink() != null) { - inputsLink().validate(); - } - if (outputsLink() != null) { - outputsLink().validate(); - } - if (retryHistory() != null) { - retryHistory().forEach(e -> e.validate()); - } - if (repetitionIndexes() != null) { - repetitionIndexes().forEach(e -> e.validate()); + if (innerProperties() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerProperties in model" + + " WorkflowRunActionRepetitionDefinitionInner")); + } else { + innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(WorkflowRunActionRepetitionDefinitionInner.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionRepetitionProperties.java similarity index 89% rename from sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionProperties.java rename to sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionRepetitionProperties.java index 1ada913693f7..e4864252fde1 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionProperties.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionRepetitionProperties.java @@ -2,11 +2,14 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.resourcemanager.logic.models; +package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.azure.resourcemanager.logic.models.OperationResult; +import com.azure.resourcemanager.logic.models.RepetitionIndex; +import com.azure.resourcemanager.logic.models.RetryHistory; +import com.azure.resourcemanager.logic.models.RunActionCorrelation; +import com.azure.resourcemanager.logic.models.WorkflowStatus; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -14,8 +17,6 @@ /** The workflow run action repetition properties definition. */ @Fluent public final class WorkflowRunActionRepetitionProperties extends OperationResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunActionRepetitionProperties.class); - /* * The repetition indexes. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunInner.java index a39bbc2ae79a..a4c14b392b81 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunInner.java @@ -5,24 +5,24 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.Correlation; import com.azure.resourcemanager.logic.models.ResourceReference; import com.azure.resourcemanager.logic.models.WorkflowOutputParameter; import com.azure.resourcemanager.logic.models.WorkflowRunTrigger; import com.azure.resourcemanager.logic.models.WorkflowStatus; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.Map; /** The workflow run. */ -@JsonFlatten @Fluent -public class WorkflowRunInner extends SubResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunInner.class); +public final class WorkflowRunInner extends SubResource { + /* + * The workflow run properties. + */ + @JsonProperty(value = "properties") + private WorkflowRunProperties innerProperties; /* * Gets the workflow run name. @@ -36,77 +36,14 @@ public class WorkflowRunInner extends SubResource { @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; - /* - * Gets the wait end time. - */ - @JsonProperty(value = "properties.waitEndTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime waitEndTime; - - /* - * Gets the start time. - */ - @JsonProperty(value = "properties.startTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime startTime; - - /* - * Gets the end time. - */ - @JsonProperty(value = "properties.endTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime endTime; - - /* - * Gets the status. - */ - @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowStatus status; - - /* - * Gets the code. - */ - @JsonProperty(value = "properties.code", access = JsonProperty.Access.WRITE_ONLY) - private String code; - - /* - * Gets the error. - */ - @JsonProperty(value = "properties.error", access = JsonProperty.Access.WRITE_ONLY) - private Object error; - - /* - * Gets the correlation id. - */ - @JsonProperty(value = "properties.correlationId", access = JsonProperty.Access.WRITE_ONLY) - private String correlationId; - - /* - * The run correlation. - */ - @JsonProperty(value = "properties.correlation") - private Correlation correlation; - - /* - * Gets the reference to workflow version. - */ - @JsonProperty(value = "properties.workflow", access = JsonProperty.Access.WRITE_ONLY) - private ResourceReference workflow; - - /* - * Gets the fired trigger. - */ - @JsonProperty(value = "properties.trigger", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowRunTrigger trigger; - - /* - * Gets the outputs. - */ - @JsonProperty(value = "properties.outputs", access = JsonProperty.Access.WRITE_ONLY) - private Map outputs; - - /* - * Gets the response of the flow run. + /** + * Get the innerProperties property: The workflow run properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.response", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowRunTrigger response; + private WorkflowRunProperties innerProperties() { + return this.innerProperties; + } /** * Get the name property: Gets the workflow run name. @@ -126,13 +63,20 @@ public String type() { return this.type; } + /** {@inheritDoc} */ + @Override + public WorkflowRunInner withId(String id) { + super.withId(id); + return this; + } + /** * Get the waitEndTime property: Gets the wait end time. * * @return the waitEndTime value. */ public OffsetDateTime waitEndTime() { - return this.waitEndTime; + return this.innerProperties() == null ? null : this.innerProperties().waitEndTime(); } /** @@ -141,7 +85,7 @@ public OffsetDateTime waitEndTime() { * @return the startTime value. */ public OffsetDateTime startTime() { - return this.startTime; + return this.innerProperties() == null ? null : this.innerProperties().startTime(); } /** @@ -150,7 +94,7 @@ public OffsetDateTime startTime() { * @return the endTime value. */ public OffsetDateTime endTime() { - return this.endTime; + return this.innerProperties() == null ? null : this.innerProperties().endTime(); } /** @@ -159,7 +103,7 @@ public OffsetDateTime endTime() { * @return the status value. */ public WorkflowStatus status() { - return this.status; + return this.innerProperties() == null ? null : this.innerProperties().status(); } /** @@ -168,7 +112,7 @@ public WorkflowStatus status() { * @return the code value. */ public String code() { - return this.code; + return this.innerProperties() == null ? null : this.innerProperties().code(); } /** @@ -177,7 +121,7 @@ public String code() { * @return the error value. */ public Object error() { - return this.error; + return this.innerProperties() == null ? null : this.innerProperties().error(); } /** @@ -186,7 +130,7 @@ public Object error() { * @return the correlationId value. */ public String correlationId() { - return this.correlationId; + return this.innerProperties() == null ? null : this.innerProperties().correlationId(); } /** @@ -195,7 +139,7 @@ public String correlationId() { * @return the correlation value. */ public Correlation correlation() { - return this.correlation; + return this.innerProperties() == null ? null : this.innerProperties().correlation(); } /** @@ -205,7 +149,10 @@ public Correlation correlation() { * @return the WorkflowRunInner object itself. */ public WorkflowRunInner withCorrelation(Correlation correlation) { - this.correlation = correlation; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunProperties(); + } + this.innerProperties().withCorrelation(correlation); return this; } @@ -215,7 +162,7 @@ public WorkflowRunInner withCorrelation(Correlation correlation) { * @return the workflow value. */ public ResourceReference workflow() { - return this.workflow; + return this.innerProperties() == null ? null : this.innerProperties().workflow(); } /** @@ -224,7 +171,7 @@ public ResourceReference workflow() { * @return the trigger value. */ public WorkflowRunTrigger trigger() { - return this.trigger; + return this.innerProperties() == null ? null : this.innerProperties().trigger(); } /** @@ -233,7 +180,7 @@ public WorkflowRunTrigger trigger() { * @return the outputs value. */ public Map outputs() { - return this.outputs; + return this.innerProperties() == null ? null : this.innerProperties().outputs(); } /** @@ -242,14 +189,7 @@ public Map outputs() { * @return the response value. */ public WorkflowRunTrigger response() { - return this.response; - } - - /** {@inheritDoc} */ - @Override - public WorkflowRunInner withId(String id) { - super.withId(id); - return this; + return this.innerProperties() == null ? null : this.innerProperties().response(); } /** @@ -258,27 +198,8 @@ public WorkflowRunInner withId(String id) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (correlation() != null) { - correlation().validate(); - } - if (workflow() != null) { - workflow().validate(); - } - if (trigger() != null) { - trigger().validate(); - } - if (outputs() != null) { - outputs() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (response() != null) { - response().validate(); + if (innerProperties() != null) { + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunProperties.java new file mode 100644 index 000000000000..e59b665ad8d9 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunProperties.java @@ -0,0 +1,242 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.logic.models.Correlation; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowOutputParameter; +import com.azure.resourcemanager.logic.models.WorkflowRunTrigger; +import com.azure.resourcemanager.logic.models.WorkflowStatus; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** The workflow run properties. */ +@Fluent +public final class WorkflowRunProperties { + /* + * Gets the wait end time. + */ + @JsonProperty(value = "waitEndTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime waitEndTime; + + /* + * Gets the start time. + */ + @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime startTime; + + /* + * Gets the end time. + */ + @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime endTime; + + /* + * Gets the status. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowStatus status; + + /* + * Gets the code. + */ + @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) + private String code; + + /* + * Gets the error. + */ + @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY) + private Object error; + + /* + * Gets the correlation id. + */ + @JsonProperty(value = "correlationId", access = JsonProperty.Access.WRITE_ONLY) + private String correlationId; + + /* + * The run correlation. + */ + @JsonProperty(value = "correlation") + private Correlation correlation; + + /* + * Gets the reference to workflow version. + */ + @JsonProperty(value = "workflow", access = JsonProperty.Access.WRITE_ONLY) + private ResourceReference workflow; + + /* + * Gets the fired trigger. + */ + @JsonProperty(value = "trigger", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowRunTrigger trigger; + + /* + * Gets the outputs. + */ + @JsonProperty(value = "outputs", access = JsonProperty.Access.WRITE_ONLY) + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map outputs; + + /* + * Gets the response of the flow run. + */ + @JsonProperty(value = "response", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowRunTrigger response; + + /** + * Get the waitEndTime property: Gets the wait end time. + * + * @return the waitEndTime value. + */ + public OffsetDateTime waitEndTime() { + return this.waitEndTime; + } + + /** + * Get the startTime property: Gets the start time. + * + * @return the startTime value. + */ + public OffsetDateTime startTime() { + return this.startTime; + } + + /** + * Get the endTime property: Gets the end time. + * + * @return the endTime value. + */ + public OffsetDateTime endTime() { + return this.endTime; + } + + /** + * Get the status property: Gets the status. + * + * @return the status value. + */ + public WorkflowStatus status() { + return this.status; + } + + /** + * Get the code property: Gets the code. + * + * @return the code value. + */ + public String code() { + return this.code; + } + + /** + * Get the error property: Gets the error. + * + * @return the error value. + */ + public Object error() { + return this.error; + } + + /** + * Get the correlationId property: Gets the correlation id. + * + * @return the correlationId value. + */ + public String correlationId() { + return this.correlationId; + } + + /** + * Get the correlation property: The run correlation. + * + * @return the correlation value. + */ + public Correlation correlation() { + return this.correlation; + } + + /** + * Set the correlation property: The run correlation. + * + * @param correlation the correlation value to set. + * @return the WorkflowRunProperties object itself. + */ + public WorkflowRunProperties withCorrelation(Correlation correlation) { + this.correlation = correlation; + return this; + } + + /** + * Get the workflow property: Gets the reference to workflow version. + * + * @return the workflow value. + */ + public ResourceReference workflow() { + return this.workflow; + } + + /** + * Get the trigger property: Gets the fired trigger. + * + * @return the trigger value. + */ + public WorkflowRunTrigger trigger() { + return this.trigger; + } + + /** + * Get the outputs property: Gets the outputs. + * + * @return the outputs value. + */ + public Map outputs() { + return this.outputs; + } + + /** + * Get the response property: Gets the response of the flow run. + * + * @return the response value. + */ + public WorkflowRunTrigger response() { + return this.response; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (correlation() != null) { + correlation().validate(); + } + if (workflow() != null) { + workflow().validate(); + } + if (trigger() != null) { + trigger().validate(); + } + if (outputs() != null) { + outputs() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + if (response() != null) { + response().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerCallbackUrlInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerCallbackUrlInner.java index fc01f84a208a..f8bbd1495c9f 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerCallbackUrlInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerCallbackUrlInner.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.WorkflowTriggerListCallbackUrlQueries; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The workflow trigger callback URL. */ @Fluent public final class WorkflowTriggerCallbackUrlInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggerCallbackUrlInner.class); - /* * Gets the workflow trigger callback URL. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryInner.java index 098f966c5e22..6b748ef808f8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryInner.java @@ -5,22 +5,22 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.ContentLink; import com.azure.resourcemanager.logic.models.Correlation; import com.azure.resourcemanager.logic.models.ResourceReference; import com.azure.resourcemanager.logic.models.WorkflowStatus; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The workflow trigger history. */ -@JsonFlatten @Fluent -public class WorkflowTriggerHistoryInner extends SubResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggerHistoryInner.class); +public final class WorkflowTriggerHistoryInner extends SubResource { + /* + * Gets the workflow trigger history properties. + */ + @JsonProperty(value = "properties") + private WorkflowTriggerHistoryProperties innerProperties; /* * Gets the workflow trigger history name. @@ -34,77 +34,14 @@ public class WorkflowTriggerHistoryInner extends SubResource { @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; - /* - * Gets the start time. - */ - @JsonProperty(value = "properties.startTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime startTime; - - /* - * Gets the end time. - */ - @JsonProperty(value = "properties.endTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime endTime; - - /* - * The scheduled time. - */ - @JsonProperty(value = "properties.scheduledTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime scheduledTime; - - /* - * Gets the status. - */ - @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowStatus status; - - /* - * Gets the code. - */ - @JsonProperty(value = "properties.code", access = JsonProperty.Access.WRITE_ONLY) - private String code; - - /* - * Gets the error. - */ - @JsonProperty(value = "properties.error", access = JsonProperty.Access.WRITE_ONLY) - private Object error; - - /* - * Gets the tracking id. - */ - @JsonProperty(value = "properties.trackingId", access = JsonProperty.Access.WRITE_ONLY) - private String trackingId; - - /* - * The run correlation. - */ - @JsonProperty(value = "properties.correlation") - private Correlation correlation; - - /* - * Gets the link to input parameters. - */ - @JsonProperty(value = "properties.inputsLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink inputsLink; - - /* - * Gets the link to output parameters. - */ - @JsonProperty(value = "properties.outputsLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink outputsLink; - - /* - * The value indicating whether trigger was fired. - */ - @JsonProperty(value = "properties.fired", access = JsonProperty.Access.WRITE_ONLY) - private Boolean fired; - - /* - * Gets the reference to workflow run. + /** + * Get the innerProperties property: Gets the workflow trigger history properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.run", access = JsonProperty.Access.WRITE_ONLY) - private ResourceReference run; + private WorkflowTriggerHistoryProperties innerProperties() { + return this.innerProperties; + } /** * Get the name property: Gets the workflow trigger history name. @@ -124,13 +61,20 @@ public String type() { return this.type; } + /** {@inheritDoc} */ + @Override + public WorkflowTriggerHistoryInner withId(String id) { + super.withId(id); + return this; + } + /** * Get the startTime property: Gets the start time. * * @return the startTime value. */ public OffsetDateTime startTime() { - return this.startTime; + return this.innerProperties() == null ? null : this.innerProperties().startTime(); } /** @@ -139,7 +83,7 @@ public OffsetDateTime startTime() { * @return the endTime value. */ public OffsetDateTime endTime() { - return this.endTime; + return this.innerProperties() == null ? null : this.innerProperties().endTime(); } /** @@ -148,7 +92,7 @@ public OffsetDateTime endTime() { * @return the scheduledTime value. */ public OffsetDateTime scheduledTime() { - return this.scheduledTime; + return this.innerProperties() == null ? null : this.innerProperties().scheduledTime(); } /** @@ -157,7 +101,7 @@ public OffsetDateTime scheduledTime() { * @return the status value. */ public WorkflowStatus status() { - return this.status; + return this.innerProperties() == null ? null : this.innerProperties().status(); } /** @@ -166,7 +110,7 @@ public WorkflowStatus status() { * @return the code value. */ public String code() { - return this.code; + return this.innerProperties() == null ? null : this.innerProperties().code(); } /** @@ -175,7 +119,7 @@ public String code() { * @return the error value. */ public Object error() { - return this.error; + return this.innerProperties() == null ? null : this.innerProperties().error(); } /** @@ -184,7 +128,7 @@ public Object error() { * @return the trackingId value. */ public String trackingId() { - return this.trackingId; + return this.innerProperties() == null ? null : this.innerProperties().trackingId(); } /** @@ -193,7 +137,7 @@ public String trackingId() { * @return the correlation value. */ public Correlation correlation() { - return this.correlation; + return this.innerProperties() == null ? null : this.innerProperties().correlation(); } /** @@ -203,7 +147,10 @@ public Correlation correlation() { * @return the WorkflowTriggerHistoryInner object itself. */ public WorkflowTriggerHistoryInner withCorrelation(Correlation correlation) { - this.correlation = correlation; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowTriggerHistoryProperties(); + } + this.innerProperties().withCorrelation(correlation); return this; } @@ -213,7 +160,7 @@ public WorkflowTriggerHistoryInner withCorrelation(Correlation correlation) { * @return the inputsLink value. */ public ContentLink inputsLink() { - return this.inputsLink; + return this.innerProperties() == null ? null : this.innerProperties().inputsLink(); } /** @@ -222,7 +169,7 @@ public ContentLink inputsLink() { * @return the outputsLink value. */ public ContentLink outputsLink() { - return this.outputsLink; + return this.innerProperties() == null ? null : this.innerProperties().outputsLink(); } /** @@ -231,7 +178,7 @@ public ContentLink outputsLink() { * @return the fired value. */ public Boolean fired() { - return this.fired; + return this.innerProperties() == null ? null : this.innerProperties().fired(); } /** @@ -240,14 +187,7 @@ public Boolean fired() { * @return the run value. */ public ResourceReference run() { - return this.run; - } - - /** {@inheritDoc} */ - @Override - public WorkflowTriggerHistoryInner withId(String id) { - super.withId(id); - return this; + return this.innerProperties() == null ? null : this.innerProperties().run(); } /** @@ -256,17 +196,8 @@ public WorkflowTriggerHistoryInner withId(String id) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (correlation() != null) { - correlation().validate(); - } - if (inputsLink() != null) { - inputsLink().validate(); - } - if (outputsLink() != null) { - outputsLink().validate(); - } - if (run() != null) { - run().validate(); + if (innerProperties() != null) { + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryProperties.java new file mode 100644 index 000000000000..cbfcc012666f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryProperties.java @@ -0,0 +1,228 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.logic.models.ContentLink; +import com.azure.resourcemanager.logic.models.Correlation; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowStatus; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The workflow trigger history properties. */ +@Fluent +public final class WorkflowTriggerHistoryProperties { + /* + * Gets the start time. + */ + @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime startTime; + + /* + * Gets the end time. + */ + @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime endTime; + + /* + * The scheduled time. + */ + @JsonProperty(value = "scheduledTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime scheduledTime; + + /* + * Gets the status. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowStatus status; + + /* + * Gets the code. + */ + @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) + private String code; + + /* + * Gets the error. + */ + @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY) + private Object error; + + /* + * Gets the tracking id. + */ + @JsonProperty(value = "trackingId", access = JsonProperty.Access.WRITE_ONLY) + private String trackingId; + + /* + * The run correlation. + */ + @JsonProperty(value = "correlation") + private Correlation correlation; + + /* + * Gets the link to input parameters. + */ + @JsonProperty(value = "inputsLink", access = JsonProperty.Access.WRITE_ONLY) + private ContentLink inputsLink; + + /* + * Gets the link to output parameters. + */ + @JsonProperty(value = "outputsLink", access = JsonProperty.Access.WRITE_ONLY) + private ContentLink outputsLink; + + /* + * The value indicating whether trigger was fired. + */ + @JsonProperty(value = "fired", access = JsonProperty.Access.WRITE_ONLY) + private Boolean fired; + + /* + * Gets the reference to workflow run. + */ + @JsonProperty(value = "run", access = JsonProperty.Access.WRITE_ONLY) + private ResourceReference run; + + /** + * Get the startTime property: Gets the start time. + * + * @return the startTime value. + */ + public OffsetDateTime startTime() { + return this.startTime; + } + + /** + * Get the endTime property: Gets the end time. + * + * @return the endTime value. + */ + public OffsetDateTime endTime() { + return this.endTime; + } + + /** + * Get the scheduledTime property: The scheduled time. + * + * @return the scheduledTime value. + */ + public OffsetDateTime scheduledTime() { + return this.scheduledTime; + } + + /** + * Get the status property: Gets the status. + * + * @return the status value. + */ + public WorkflowStatus status() { + return this.status; + } + + /** + * Get the code property: Gets the code. + * + * @return the code value. + */ + public String code() { + return this.code; + } + + /** + * Get the error property: Gets the error. + * + * @return the error value. + */ + public Object error() { + return this.error; + } + + /** + * Get the trackingId property: Gets the tracking id. + * + * @return the trackingId value. + */ + public String trackingId() { + return this.trackingId; + } + + /** + * Get the correlation property: The run correlation. + * + * @return the correlation value. + */ + public Correlation correlation() { + return this.correlation; + } + + /** + * Set the correlation property: The run correlation. + * + * @param correlation the correlation value to set. + * @return the WorkflowTriggerHistoryProperties object itself. + */ + public WorkflowTriggerHistoryProperties withCorrelation(Correlation correlation) { + this.correlation = correlation; + return this; + } + + /** + * Get the inputsLink property: Gets the link to input parameters. + * + * @return the inputsLink value. + */ + public ContentLink inputsLink() { + return this.inputsLink; + } + + /** + * Get the outputsLink property: Gets the link to output parameters. + * + * @return the outputsLink value. + */ + public ContentLink outputsLink() { + return this.outputsLink; + } + + /** + * Get the fired property: The value indicating whether trigger was fired. + * + * @return the fired value. + */ + public Boolean fired() { + return this.fired; + } + + /** + * Get the run property: Gets the reference to workflow run. + * + * @return the run value. + */ + public ResourceReference run() { + return this.run; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (correlation() != null) { + correlation().validate(); + } + if (inputsLink() != null) { + inputsLink().validate(); + } + if (outputsLink() != null) { + outputsLink().validate(); + } + if (run() != null) { + run().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerInner.java index e895ca7ae2d3..fad80abc4641 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerInner.java @@ -4,24 +4,24 @@ package com.azure.resourcemanager.logic.fluent.models; -import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; +import com.azure.core.annotation.Fluent; import com.azure.core.management.SubResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.ResourceReference; import com.azure.resourcemanager.logic.models.WorkflowState; import com.azure.resourcemanager.logic.models.WorkflowStatus; import com.azure.resourcemanager.logic.models.WorkflowTriggerProvisioningState; import com.azure.resourcemanager.logic.models.WorkflowTriggerRecurrence; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The workflow trigger. */ -@JsonFlatten -@Immutable -public class WorkflowTriggerInner extends SubResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggerInner.class); +@Fluent +public final class WorkflowTriggerInner extends SubResource { + /* + * The workflow trigger properties. + */ + @JsonProperty(value = "properties") + private WorkflowTriggerProperties innerProperties; /* * Gets the workflow trigger name. @@ -35,59 +35,14 @@ public class WorkflowTriggerInner extends SubResource { @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; - /* - * Gets the provisioning state. - */ - @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowTriggerProvisioningState provisioningState; - - /* - * Gets the created time. - */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; - - /* - * Gets the changed time. - */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; - - /* - * Gets the state. - */ - @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowState state; - - /* - * Gets the status. - */ - @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowStatus status; - - /* - * Gets the last execution time. - */ - @JsonProperty(value = "properties.lastExecutionTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime lastExecutionTime; - - /* - * Gets the next execution time. - */ - @JsonProperty(value = "properties.nextExecutionTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime nextExecutionTime; - - /* - * Gets the workflow trigger recurrence. - */ - @JsonProperty(value = "properties.recurrence", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowTriggerRecurrence recurrence; - - /* - * Gets the reference to workflow. + /** + * Get the innerProperties property: The workflow trigger properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.workflow", access = JsonProperty.Access.WRITE_ONLY) - private ResourceReference workflow; + private WorkflowTriggerProperties innerProperties() { + return this.innerProperties; + } /** * Get the name property: Gets the workflow trigger name. @@ -107,13 +62,20 @@ public String type() { return this.type; } + /** {@inheritDoc} */ + @Override + public WorkflowTriggerInner withId(String id) { + super.withId(id); + return this; + } + /** * Get the provisioningState property: Gets the provisioning state. * * @return the provisioningState value. */ public WorkflowTriggerProvisioningState provisioningState() { - return this.provisioningState; + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } /** @@ -122,7 +84,7 @@ public WorkflowTriggerProvisioningState provisioningState() { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -131,7 +93,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -140,7 +102,7 @@ public OffsetDateTime changedTime() { * @return the state value. */ public WorkflowState state() { - return this.state; + return this.innerProperties() == null ? null : this.innerProperties().state(); } /** @@ -149,7 +111,7 @@ public WorkflowState state() { * @return the status value. */ public WorkflowStatus status() { - return this.status; + return this.innerProperties() == null ? null : this.innerProperties().status(); } /** @@ -158,7 +120,7 @@ public WorkflowStatus status() { * @return the lastExecutionTime value. */ public OffsetDateTime lastExecutionTime() { - return this.lastExecutionTime; + return this.innerProperties() == null ? null : this.innerProperties().lastExecutionTime(); } /** @@ -167,7 +129,7 @@ public OffsetDateTime lastExecutionTime() { * @return the nextExecutionTime value. */ public OffsetDateTime nextExecutionTime() { - return this.nextExecutionTime; + return this.innerProperties() == null ? null : this.innerProperties().nextExecutionTime(); } /** @@ -176,7 +138,7 @@ public OffsetDateTime nextExecutionTime() { * @return the recurrence value. */ public WorkflowTriggerRecurrence recurrence() { - return this.recurrence; + return this.innerProperties() == null ? null : this.innerProperties().recurrence(); } /** @@ -185,14 +147,7 @@ public WorkflowTriggerRecurrence recurrence() { * @return the workflow value. */ public ResourceReference workflow() { - return this.workflow; - } - - /** {@inheritDoc} */ - @Override - public WorkflowTriggerInner withId(String id) { - super.withId(id); - return this; + return this.innerProperties() == null ? null : this.innerProperties().workflow(); } /** @@ -201,11 +156,8 @@ public WorkflowTriggerInner withId(String id) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (recurrence() != null) { - recurrence().validate(); - } - if (workflow() != null) { - workflow().validate(); + if (innerProperties() != null) { + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerProperties.java new file mode 100644 index 000000000000..0c33326dd107 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerProperties.java @@ -0,0 +1,167 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowState; +import com.azure.resourcemanager.logic.models.WorkflowStatus; +import com.azure.resourcemanager.logic.models.WorkflowTriggerProvisioningState; +import com.azure.resourcemanager.logic.models.WorkflowTriggerRecurrence; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The workflow trigger properties. */ +@Immutable +public final class WorkflowTriggerProperties { + /* + * Gets the provisioning state. + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowTriggerProvisioningState provisioningState; + + /* + * Gets the created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * Gets the changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * Gets the state. + */ + @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowState state; + + /* + * Gets the status. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowStatus status; + + /* + * Gets the last execution time. + */ + @JsonProperty(value = "lastExecutionTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime lastExecutionTime; + + /* + * Gets the next execution time. + */ + @JsonProperty(value = "nextExecutionTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime nextExecutionTime; + + /* + * Gets the workflow trigger recurrence. + */ + @JsonProperty(value = "recurrence", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowTriggerRecurrence recurrence; + + /* + * Gets the reference to workflow. + */ + @JsonProperty(value = "workflow", access = JsonProperty.Access.WRITE_ONLY) + private ResourceReference workflow; + + /** + * Get the provisioningState property: Gets the provisioning state. + * + * @return the provisioningState value. + */ + public WorkflowTriggerProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the createdTime property: Gets the created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: Gets the changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the state property: Gets the state. + * + * @return the state value. + */ + public WorkflowState state() { + return this.state; + } + + /** + * Get the status property: Gets the status. + * + * @return the status value. + */ + public WorkflowStatus status() { + return this.status; + } + + /** + * Get the lastExecutionTime property: Gets the last execution time. + * + * @return the lastExecutionTime value. + */ + public OffsetDateTime lastExecutionTime() { + return this.lastExecutionTime; + } + + /** + * Get the nextExecutionTime property: Gets the next execution time. + * + * @return the nextExecutionTime value. + */ + public OffsetDateTime nextExecutionTime() { + return this.nextExecutionTime; + } + + /** + * Get the recurrence property: Gets the workflow trigger recurrence. + * + * @return the recurrence value. + */ + public WorkflowTriggerRecurrence recurrence() { + return this.recurrence; + } + + /** + * Get the workflow property: Gets the reference to workflow. + * + * @return the workflow value. + */ + public ResourceReference workflow() { + return this.workflow; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (recurrence() != null) { + recurrence().validate(); + } + if (workflow() != null) { + workflow().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionInner.java index 3c39c7855d00..8d0c91170b46 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionInner.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.FlowAccessControlConfiguration; import com.azure.resourcemanager.logic.models.FlowEndpointsConfiguration; import com.azure.resourcemanager.logic.models.ResourceReference; @@ -15,88 +13,41 @@ import com.azure.resourcemanager.logic.models.WorkflowParameter; import com.azure.resourcemanager.logic.models.WorkflowProvisioningState; import com.azure.resourcemanager.logic.models.WorkflowState; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.Map; /** The workflow version. */ -@JsonFlatten @Fluent -public class WorkflowVersionInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowVersionInner.class); - - /* - * The provisioning state. - */ - @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowProvisioningState provisioningState; - - /* - * Gets the created time. - */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; - - /* - * Gets the changed time. - */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; - +public final class WorkflowVersionInner extends Resource { /* - * The state. + * The workflow version properties. */ - @JsonProperty(value = "properties.state") - private WorkflowState state; + @JsonProperty(value = "properties") + private WorkflowVersionProperties innerProperties; - /* - * Gets the version. - */ - @JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY) - private String version; - - /* - * Gets the access endpoint. - */ - @JsonProperty(value = "properties.accessEndpoint", access = JsonProperty.Access.WRITE_ONLY) - private String accessEndpoint; - - /* - * The endpoints configuration. - */ - @JsonProperty(value = "properties.endpointsConfiguration") - private FlowEndpointsConfiguration endpointsConfiguration; - - /* - * The access control configuration. - */ - @JsonProperty(value = "properties.accessControl") - private FlowAccessControlConfiguration accessControl; - - /* - * The sku. - */ - @JsonProperty(value = "properties.sku", access = JsonProperty.Access.WRITE_ONLY) - private Sku sku; - - /* - * The integration account. + /** + * Get the innerProperties property: The workflow version properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.integrationAccount") - private ResourceReference integrationAccount; + private WorkflowVersionProperties innerProperties() { + return this.innerProperties; + } - /* - * The definition. - */ - @JsonProperty(value = "properties.definition") - private Object definition; + /** {@inheritDoc} */ + @Override + public WorkflowVersionInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The parameters. - */ - @JsonProperty(value = "properties.parameters") - private Map parameters; + /** {@inheritDoc} */ + @Override + public WorkflowVersionInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the provisioningState property: The provisioning state. @@ -104,7 +55,7 @@ public class WorkflowVersionInner extends Resource { * @return the provisioningState value. */ public WorkflowProvisioningState provisioningState() { - return this.provisioningState; + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } /** @@ -113,7 +64,7 @@ public WorkflowProvisioningState provisioningState() { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -122,7 +73,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -131,7 +82,7 @@ public OffsetDateTime changedTime() { * @return the state value. */ public WorkflowState state() { - return this.state; + return this.innerProperties() == null ? null : this.innerProperties().state(); } /** @@ -141,7 +92,10 @@ public WorkflowState state() { * @return the WorkflowVersionInner object itself. */ public WorkflowVersionInner withState(WorkflowState state) { - this.state = state; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowVersionProperties(); + } + this.innerProperties().withState(state); return this; } @@ -151,7 +105,7 @@ public WorkflowVersionInner withState(WorkflowState state) { * @return the version value. */ public String version() { - return this.version; + return this.innerProperties() == null ? null : this.innerProperties().version(); } /** @@ -160,7 +114,7 @@ public String version() { * @return the accessEndpoint value. */ public String accessEndpoint() { - return this.accessEndpoint; + return this.innerProperties() == null ? null : this.innerProperties().accessEndpoint(); } /** @@ -169,7 +123,7 @@ public String accessEndpoint() { * @return the endpointsConfiguration value. */ public FlowEndpointsConfiguration endpointsConfiguration() { - return this.endpointsConfiguration; + return this.innerProperties() == null ? null : this.innerProperties().endpointsConfiguration(); } /** @@ -179,7 +133,10 @@ public FlowEndpointsConfiguration endpointsConfiguration() { * @return the WorkflowVersionInner object itself. */ public WorkflowVersionInner withEndpointsConfiguration(FlowEndpointsConfiguration endpointsConfiguration) { - this.endpointsConfiguration = endpointsConfiguration; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowVersionProperties(); + } + this.innerProperties().withEndpointsConfiguration(endpointsConfiguration); return this; } @@ -189,7 +146,7 @@ public WorkflowVersionInner withEndpointsConfiguration(FlowEndpointsConfiguratio * @return the accessControl value. */ public FlowAccessControlConfiguration accessControl() { - return this.accessControl; + return this.innerProperties() == null ? null : this.innerProperties().accessControl(); } /** @@ -199,7 +156,10 @@ public FlowAccessControlConfiguration accessControl() { * @return the WorkflowVersionInner object itself. */ public WorkflowVersionInner withAccessControl(FlowAccessControlConfiguration accessControl) { - this.accessControl = accessControl; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowVersionProperties(); + } + this.innerProperties().withAccessControl(accessControl); return this; } @@ -209,7 +169,7 @@ public WorkflowVersionInner withAccessControl(FlowAccessControlConfiguration acc * @return the sku value. */ public Sku sku() { - return this.sku; + return this.innerProperties() == null ? null : this.innerProperties().sku(); } /** @@ -218,7 +178,7 @@ public Sku sku() { * @return the integrationAccount value. */ public ResourceReference integrationAccount() { - return this.integrationAccount; + return this.innerProperties() == null ? null : this.innerProperties().integrationAccount(); } /** @@ -228,7 +188,10 @@ public ResourceReference integrationAccount() { * @return the WorkflowVersionInner object itself. */ public WorkflowVersionInner withIntegrationAccount(ResourceReference integrationAccount) { - this.integrationAccount = integrationAccount; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowVersionProperties(); + } + this.innerProperties().withIntegrationAccount(integrationAccount); return this; } @@ -238,7 +201,7 @@ public WorkflowVersionInner withIntegrationAccount(ResourceReference integration * @return the definition value. */ public Object definition() { - return this.definition; + return this.innerProperties() == null ? null : this.innerProperties().definition(); } /** @@ -248,7 +211,10 @@ public Object definition() { * @return the WorkflowVersionInner object itself. */ public WorkflowVersionInner withDefinition(Object definition) { - this.definition = definition; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowVersionProperties(); + } + this.innerProperties().withDefinition(definition); return this; } @@ -258,7 +224,7 @@ public WorkflowVersionInner withDefinition(Object definition) { * @return the parameters value. */ public Map parameters() { - return this.parameters; + return this.innerProperties() == null ? null : this.innerProperties().parameters(); } /** @@ -268,21 +234,10 @@ public Map parameters() { * @return the WorkflowVersionInner object itself. */ public WorkflowVersionInner withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** {@inheritDoc} */ - @Override - public WorkflowVersionInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public WorkflowVersionInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowVersionProperties(); + } + this.innerProperties().withParameters(parameters); return this; } @@ -292,27 +247,8 @@ public WorkflowVersionInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (endpointsConfiguration() != null) { - endpointsConfiguration().validate(); - } - if (accessControl() != null) { - accessControl().validate(); - } - if (sku() != null) { - sku().validate(); - } - if (integrationAccount() != null) { - integrationAccount().validate(); - } - if (parameters() != null) { - parameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); + if (innerProperties() != null) { + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionProperties.java new file mode 100644 index 000000000000..2d30236ca592 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionProperties.java @@ -0,0 +1,299 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.logic.models.FlowAccessControlConfiguration; +import com.azure.resourcemanager.logic.models.FlowEndpointsConfiguration; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.Sku; +import com.azure.resourcemanager.logic.models.WorkflowParameter; +import com.azure.resourcemanager.logic.models.WorkflowProvisioningState; +import com.azure.resourcemanager.logic.models.WorkflowState; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** The workflow version properties. */ +@Fluent +public final class WorkflowVersionProperties { + /* + * The provisioning state. + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowProvisioningState provisioningState; + + /* + * Gets the created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * Gets the changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The state. + */ + @JsonProperty(value = "state") + private WorkflowState state; + + /* + * Gets the version. + */ + @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY) + private String version; + + /* + * Gets the access endpoint. + */ + @JsonProperty(value = "accessEndpoint", access = JsonProperty.Access.WRITE_ONLY) + private String accessEndpoint; + + /* + * The endpoints configuration. + */ + @JsonProperty(value = "endpointsConfiguration") + private FlowEndpointsConfiguration endpointsConfiguration; + + /* + * The access control configuration. + */ + @JsonProperty(value = "accessControl") + private FlowAccessControlConfiguration accessControl; + + /* + * The sku. + */ + @JsonProperty(value = "sku", access = JsonProperty.Access.WRITE_ONLY) + private Sku sku; + + /* + * The integration account. + */ + @JsonProperty(value = "integrationAccount") + private ResourceReference integrationAccount; + + /* + * The definition. + */ + @JsonProperty(value = "definition") + private Object definition; + + /* + * The parameters. + */ + @JsonProperty(value = "parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map parameters; + + /** + * Get the provisioningState property: The provisioning state. + * + * @return the provisioningState value. + */ + public WorkflowProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the createdTime property: Gets the created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: Gets the changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the state property: The state. + * + * @return the state value. + */ + public WorkflowState state() { + return this.state; + } + + /** + * Set the state property: The state. + * + * @param state the state value to set. + * @return the WorkflowVersionProperties object itself. + */ + public WorkflowVersionProperties withState(WorkflowState state) { + this.state = state; + return this; + } + + /** + * Get the version property: Gets the version. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * Get the accessEndpoint property: Gets the access endpoint. + * + * @return the accessEndpoint value. + */ + public String accessEndpoint() { + return this.accessEndpoint; + } + + /** + * Get the endpointsConfiguration property: The endpoints configuration. + * + * @return the endpointsConfiguration value. + */ + public FlowEndpointsConfiguration endpointsConfiguration() { + return this.endpointsConfiguration; + } + + /** + * Set the endpointsConfiguration property: The endpoints configuration. + * + * @param endpointsConfiguration the endpointsConfiguration value to set. + * @return the WorkflowVersionProperties object itself. + */ + public WorkflowVersionProperties withEndpointsConfiguration(FlowEndpointsConfiguration endpointsConfiguration) { + this.endpointsConfiguration = endpointsConfiguration; + return this; + } + + /** + * Get the accessControl property: The access control configuration. + * + * @return the accessControl value. + */ + public FlowAccessControlConfiguration accessControl() { + return this.accessControl; + } + + /** + * Set the accessControl property: The access control configuration. + * + * @param accessControl the accessControl value to set. + * @return the WorkflowVersionProperties object itself. + */ + public WorkflowVersionProperties withAccessControl(FlowAccessControlConfiguration accessControl) { + this.accessControl = accessControl; + return this; + } + + /** + * Get the sku property: The sku. + * + * @return the sku value. + */ + public Sku sku() { + return this.sku; + } + + /** + * Get the integrationAccount property: The integration account. + * + * @return the integrationAccount value. + */ + public ResourceReference integrationAccount() { + return this.integrationAccount; + } + + /** + * Set the integrationAccount property: The integration account. + * + * @param integrationAccount the integrationAccount value to set. + * @return the WorkflowVersionProperties object itself. + */ + public WorkflowVersionProperties withIntegrationAccount(ResourceReference integrationAccount) { + this.integrationAccount = integrationAccount; + return this; + } + + /** + * Get the definition property: The definition. + * + * @return the definition value. + */ + public Object definition() { + return this.definition; + } + + /** + * Set the definition property: The definition. + * + * @param definition the definition value to set. + * @return the WorkflowVersionProperties object itself. + */ + public WorkflowVersionProperties withDefinition(Object definition) { + this.definition = definition; + return this; + } + + /** + * Get the parameters property: The parameters. + * + * @return the parameters value. + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set the parameters property: The parameters. + * + * @param parameters the parameters value to set. + * @return the WorkflowVersionProperties object itself. + */ + public WorkflowVersionProperties withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (endpointsConfiguration() != null) { + endpointsConfiguration().validate(); + } + if (accessControl() != null) { + accessControl().validate(); + } + if (sku() != null) { + sku().validate(); + } + if (integrationAccount() != null) { + integrationAccount().validate(); + } + if (parameters() != null) { + parameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsClientImpl.java index dc9e4e42ff9b..13db76aafaf9 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsClientImpl.java @@ -29,7 +29,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.IntegrationAccountAgreementsClient; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountAgreementInner; import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerCallbackUrlInner; @@ -39,8 +38,6 @@ /** An instance of this class provides access to all the operations defined in IntegrationAccountAgreementsClient. */ public final class IntegrationAccountAgreementsClientImpl implements IntegrationAccountAgreementsClient { - private final ClientLogger logger = new ClientLogger(IntegrationAccountAgreementsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationAccountAgreementsService service; @@ -171,7 +168,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -235,7 +233,8 @@ private Mono> listSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -295,7 +294,7 @@ private Mono> listSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -313,7 +312,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -336,7 +335,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -354,7 +353,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -375,7 +374,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -392,7 +391,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -448,7 +447,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -500,7 +499,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -543,7 +542,7 @@ public IntegrationAccountAgreementInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -561,7 +560,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account agreement. + * @return the integration account agreement along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -627,7 +626,7 @@ private Mono> createOrUpdateWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account agreement. + * @return the integration account agreement along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -690,7 +689,7 @@ private Mono> createOrUpdateWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account agreement. + * @return the integration account agreement on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -741,7 +740,7 @@ public IntegrationAccountAgreementInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account agreement. + * @return the integration account agreement along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -764,7 +763,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -820,7 +819,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -872,7 +871,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String integrationAccountName, String agreementName) { @@ -905,7 +904,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -923,7 +922,7 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -991,7 +990,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -1056,7 +1055,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listContentCallbackUrlAsync( @@ -1110,7 +1109,7 @@ public WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listContentCallbackUrlWithResponse( @@ -1131,7 +1130,8 @@ public Response listContentCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration account agreements. + * @return the list of integration account agreements along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1167,7 +1167,8 @@ private Mono> listNextSinglePage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration account agreements. + * @return the list of integration account agreements along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsImpl.java index 5083a50fb839..4a1fcc759034 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.logic.models.IntegrationAccountAgreement; import com.azure.resourcemanager.logic.models.IntegrationAccountAgreements; import com.azure.resourcemanager.logic.models.WorkflowTriggerCallbackUrl; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationAccountAgreementsImpl implements IntegrationAccountAgreements { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountAgreementsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountAgreementsImpl.class); private final IntegrationAccountAgreementsClient innerClient; @@ -123,7 +122,7 @@ public Response listContentCallbackUrlWithResponse( public IntegrationAccountAgreement getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -131,7 +130,7 @@ public IntegrationAccountAgreement getById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -140,7 +139,7 @@ public IntegrationAccountAgreement getById(String id) { } String agreementName = Utils.getValueFromIdByName(id, "agreements"); if (agreementName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'agreements'.", id))); @@ -151,7 +150,7 @@ public IntegrationAccountAgreement getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -159,7 +158,7 @@ public Response getByIdWithResponse(String id, Cont } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -168,7 +167,7 @@ public Response getByIdWithResponse(String id, Cont } String agreementName = Utils.getValueFromIdByName(id, "agreements"); if (agreementName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'agreements'.", id))); @@ -179,7 +178,7 @@ public Response getByIdWithResponse(String id, Cont public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -187,7 +186,7 @@ public void deleteById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -196,18 +195,18 @@ public void deleteById(String id) { } String agreementName = Utils.getValueFromIdByName(id, "agreements"); if (agreementName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'agreements'.", id))); } - this.deleteWithResponse(resourceGroupName, integrationAccountName, agreementName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, agreementName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -215,7 +214,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -224,7 +223,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String agreementName = Utils.getValueFromIdByName(id, "agreements"); if (agreementName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'agreements'.", id))); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesClientImpl.java index 69b38b57f6f3..487639296103 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesClientImpl.java @@ -29,7 +29,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.IntegrationAccountAssembliesClient; import com.azure.resourcemanager.logic.fluent.models.AssemblyDefinitionInner; import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerCallbackUrlInner; @@ -38,8 +37,6 @@ /** An instance of this class provides access to all the operations defined in IntegrationAccountAssembliesClient. */ public final class IntegrationAccountAssembliesClientImpl implements IntegrationAccountAssembliesClient { - private final ClientLogger logger = new ClientLogger(IntegrationAccountAssembliesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationAccountAssembliesService service; @@ -156,7 +153,8 @@ Mono> listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -211,7 +209,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -262,7 +261,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String integrationAccountName) { @@ -278,7 +277,7 @@ private PagedFlux listAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -294,7 +293,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String integrationAccountName) { @@ -310,7 +309,7 @@ public PagedIterable list(String resourceGroupName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -327,7 +326,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -384,7 +384,8 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -437,7 +438,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -480,7 +481,7 @@ public AssemblyDefinitionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -498,7 +499,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the assembly definition. + * @return the assembly definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -566,7 +567,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the assembly definition. + * @return the assembly definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -631,7 +632,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the assembly definition. + * @return the assembly definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -684,7 +685,7 @@ public AssemblyDefinitionInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the assembly definition. + * @return the assembly definition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -707,7 +708,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -764,7 +765,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -817,7 +818,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -851,7 +852,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -869,7 +870,8 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url for an integration account assembly. + * @return the content callback url for an integration account assembly along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -926,7 +928,8 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url for an integration account assembly. + * @return the content callback url for an integration account assembly along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -979,7 +982,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url for an integration account assembly. + * @return the content callback url for an integration account assembly on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listContentCallbackUrlAsync( @@ -1022,7 +1025,7 @@ public WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url for an integration account assembly. + * @return the content callback url for an integration account assembly along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listContentCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesImpl.java index f76ba53b6d13..d134ba895359 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesImpl.java @@ -15,10 +15,9 @@ import com.azure.resourcemanager.logic.models.AssemblyDefinition; import com.azure.resourcemanager.logic.models.IntegrationAccountAssemblies; import com.azure.resourcemanager.logic.models.WorkflowTriggerCallbackUrl; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationAccountAssembliesImpl implements IntegrationAccountAssemblies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountAssembliesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountAssembliesImpl.class); private final IntegrationAccountAssembliesClient innerClient; @@ -116,7 +115,7 @@ public Response listContentCallbackUrlWithResponse( public AssemblyDefinition getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -124,7 +123,7 @@ public AssemblyDefinition getById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -133,7 +132,7 @@ public AssemblyDefinition getById(String id) { } String assemblyArtifactName = Utils.getValueFromIdByName(id, "assemblies"); if (assemblyArtifactName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'assemblies'.", id))); @@ -146,7 +145,7 @@ public AssemblyDefinition getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -154,7 +153,7 @@ public Response getByIdWithResponse(String id, Context conte } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -163,7 +162,7 @@ public Response getByIdWithResponse(String id, Context conte } String assemblyArtifactName = Utils.getValueFromIdByName(id, "assemblies"); if (assemblyArtifactName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'assemblies'.", id))); @@ -174,7 +173,7 @@ public Response getByIdWithResponse(String id, Context conte public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -182,7 +181,7 @@ public void deleteById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -191,20 +190,18 @@ public void deleteById(String id) { } String assemblyArtifactName = Utils.getValueFromIdByName(id, "assemblies"); if (assemblyArtifactName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'assemblies'.", id))); } - this - .deleteWithResponse(resourceGroupName, integrationAccountName, assemblyArtifactName, Context.NONE) - .getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, assemblyArtifactName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -212,7 +209,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -221,7 +218,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String assemblyArtifactName = Utils.getValueFromIdByName(id, "assemblies"); if (assemblyArtifactName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'assemblies'.", id))); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsClientImpl.java index 6f6ffb2bde25..13d6e246e7b6 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsClientImpl.java @@ -28,7 +28,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.IntegrationAccountBatchConfigurationsClient; import com.azure.resourcemanager.logic.fluent.models.BatchConfigurationInner; import com.azure.resourcemanager.logic.models.BatchConfigurationCollection; @@ -40,8 +39,6 @@ */ public final class IntegrationAccountBatchConfigurationsClientImpl implements IntegrationAccountBatchConfigurationsClient { - private final ClientLogger logger = new ClientLogger(IntegrationAccountBatchConfigurationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationAccountBatchConfigurationsService service; @@ -143,7 +140,8 @@ Mono> delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -198,7 +196,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -249,7 +248,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String integrationAccountName) { @@ -265,7 +264,7 @@ private PagedFlux listAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -281,7 +280,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String integrationAccountName) { @@ -297,7 +296,7 @@ public PagedIterable list(String resourceGroupName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -314,7 +313,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -372,7 +372,8 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -426,7 +427,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -469,7 +470,7 @@ public BatchConfigurationInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -487,7 +488,8 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the batch configuration resource definition. + * @return the batch configuration resource definition along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -556,7 +558,8 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the batch configuration resource definition. + * @return the batch configuration resource definition along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -622,7 +625,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the batch configuration resource definition. + * @return the batch configuration resource definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -676,7 +679,7 @@ public BatchConfigurationInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the batch configuration resource definition. + * @return the batch configuration resource definition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -699,7 +702,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -757,7 +760,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -811,7 +814,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -845,7 +848,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsImpl.java index 058e26bf1d29..06f2d56dbede 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.logic.fluent.models.BatchConfigurationInner; import com.azure.resourcemanager.logic.models.BatchConfiguration; import com.azure.resourcemanager.logic.models.IntegrationAccountBatchConfigurations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationAccountBatchConfigurationsImpl implements IntegrationAccountBatchConfigurations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountBatchConfigurationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountBatchConfigurationsImpl.class); private final IntegrationAccountBatchConfigurationsClient innerClient; @@ -84,7 +83,7 @@ public Response deleteWithResponse( public BatchConfiguration getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -92,7 +91,7 @@ public BatchConfiguration getById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -101,7 +100,7 @@ public BatchConfiguration getById(String id) { } String batchConfigurationName = Utils.getValueFromIdByName(id, "batchConfigurations"); if (batchConfigurationName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -116,7 +115,7 @@ public BatchConfiguration getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -124,7 +123,7 @@ public Response getByIdWithResponse(String id, Context conte } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -133,7 +132,7 @@ public Response getByIdWithResponse(String id, Context conte } String batchConfigurationName = Utils.getValueFromIdByName(id, "batchConfigurations"); if (batchConfigurationName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -146,7 +145,7 @@ public Response getByIdWithResponse(String id, Context conte public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -154,7 +153,7 @@ public void deleteById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -163,22 +162,20 @@ public void deleteById(String id) { } String batchConfigurationName = Utils.getValueFromIdByName(id, "batchConfigurations"); if (batchConfigurationName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String .format( "The resource ID '%s' is not valid. Missing path segment 'batchConfigurations'.", id))); } - this - .deleteWithResponse(resourceGroupName, integrationAccountName, batchConfigurationName, Context.NONE) - .getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, batchConfigurationName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -186,7 +183,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -195,7 +192,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String batchConfigurationName = Utils.getValueFromIdByName(id, "batchConfigurations"); if (batchConfigurationName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesClientImpl.java index 2e68df667493..30bb748b31e1 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesClientImpl.java @@ -28,7 +28,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.IntegrationAccountCertificatesClient; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountCertificateInner; import com.azure.resourcemanager.logic.models.IntegrationAccountCertificateListResult; @@ -36,8 +35,6 @@ /** An instance of this class provides access to all the operations defined in IntegrationAccountCertificatesClient. */ public final class IntegrationAccountCertificatesClientImpl implements IntegrationAccountCertificatesClient { - private final ClientLogger logger = new ClientLogger(IntegrationAccountCertificatesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationAccountCertificatesService service; @@ -151,7 +148,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -213,7 +211,8 @@ private Mono> listSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -271,7 +270,7 @@ private Mono> listSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -289,7 +288,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -310,7 +309,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -328,7 +327,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -347,7 +346,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -364,7 +363,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -421,7 +420,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -474,7 +473,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -517,7 +516,7 @@ public IntegrationAccountCertificateInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -535,7 +534,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account certificate. + * @return the integration account certificate along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -602,7 +601,7 @@ private Mono> createOrUpdateWithRes * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account certificate. + * @return the integration account certificate along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -666,7 +665,7 @@ private Mono> createOrUpdateWithRes * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account certificate. + * @return the integration account certificate on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -717,7 +716,7 @@ public IntegrationAccountCertificateInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account certificate. + * @return the integration account certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -740,7 +739,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -797,7 +796,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -850,7 +849,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String integrationAccountName, String certificateName) { @@ -883,7 +882,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -898,7 +897,8 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration account certificates. + * @return the list of integration account certificates along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -934,7 +934,8 @@ private Mono> listNextSinglePa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration account certificates. + * @return the list of integration account certificates along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesImpl.java index d7cff32f8e7d..a38a9d81ebc8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountCertificateInner; import com.azure.resourcemanager.logic.models.IntegrationAccountCertificate; import com.azure.resourcemanager.logic.models.IntegrationAccountCertificates; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationAccountCertificatesImpl implements IntegrationAccountCertificates { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountCertificatesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountCertificatesImpl.class); private final IntegrationAccountCertificatesClient innerClient; @@ -81,7 +80,7 @@ public Response deleteWithResponse( public IntegrationAccountCertificate getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -89,7 +88,7 @@ public IntegrationAccountCertificate getById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -98,7 +97,7 @@ public IntegrationAccountCertificate getById(String id) { } String certificateName = Utils.getValueFromIdByName(id, "certificates"); if (certificateName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id))); @@ -111,7 +110,7 @@ public IntegrationAccountCertificate getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -119,7 +118,7 @@ public Response getByIdWithResponse(String id, Co } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -128,7 +127,7 @@ public Response getByIdWithResponse(String id, Co } String certificateName = Utils.getValueFromIdByName(id, "certificates"); if (certificateName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id))); @@ -139,7 +138,7 @@ public Response getByIdWithResponse(String id, Co public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -147,7 +146,7 @@ public void deleteById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -156,18 +155,18 @@ public void deleteById(String id) { } String certificateName = Utils.getValueFromIdByName(id, "certificates"); if (certificateName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id))); } - this.deleteWithResponse(resourceGroupName, integrationAccountName, certificateName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, certificateName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -175,7 +174,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -184,7 +183,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String certificateName = Utils.getValueFromIdByName(id, "certificates"); if (certificateName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id))); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountImpl.java index da3035dd010e..910d10be707d 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountImpl.java @@ -9,15 +9,14 @@ import com.azure.core.management.Region; import com.azure.core.util.Context; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountInner; -import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentInner; import com.azure.resourcemanager.logic.models.CallbackUrl; import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; import com.azure.resourcemanager.logic.models.IntegrationAccount; import com.azure.resourcemanager.logic.models.IntegrationAccountSku; -import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironment; import com.azure.resourcemanager.logic.models.KeyVaultKey; import com.azure.resourcemanager.logic.models.ListKeyVaultKeysDefinition; import com.azure.resourcemanager.logic.models.RegenerateActionParameter; +import com.azure.resourcemanager.logic.models.ResourceReference; import com.azure.resourcemanager.logic.models.TrackingEventsDefinition; import com.azure.resourcemanager.logic.models.WorkflowState; import java.util.Collections; @@ -58,13 +57,8 @@ public IntegrationAccountSku sku() { return this.innerModel().sku(); } - public IntegrationServiceEnvironment integrationServiceEnvironment() { - IntegrationServiceEnvironmentInner inner = this.innerModel().integrationServiceEnvironment(); - if (inner != null) { - return new IntegrationServiceEnvironmentImpl(inner, this.manager()); - } else { - return null; - } + public ResourceReference integrationServiceEnvironment() { + return this.innerModel().integrationServiceEnvironment(); } public WorkflowState state() { @@ -243,8 +237,7 @@ public IntegrationAccountImpl withSku(IntegrationAccountSku sku) { return this; } - public IntegrationAccountImpl withIntegrationServiceEnvironment( - IntegrationServiceEnvironmentInner integrationServiceEnvironment) { + public IntegrationAccountImpl withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment) { this.innerModel().withIntegrationServiceEnvironment(integrationServiceEnvironment); return this; } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsClientImpl.java index c4d59d79ba88..62fe111c9a18 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsClientImpl.java @@ -29,7 +29,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.IntegrationAccountMapsClient; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountMapInner; import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerCallbackUrlInner; @@ -39,8 +38,6 @@ /** An instance of this class provides access to all the operations defined in IntegrationAccountMapsClient. */ public final class IntegrationAccountMapsClientImpl implements IntegrationAccountMapsClient { - private final ClientLogger logger = new ClientLogger(IntegrationAccountMapsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationAccountMapsService service; @@ -170,7 +167,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -234,7 +232,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -294,7 +293,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -312,7 +311,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String integrationAccountName) { @@ -334,7 +333,7 @@ private PagedFlux listAsync(String resourceGroupName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -352,7 +351,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String integrationAccountName) { @@ -372,7 +371,7 @@ public PagedIterable list(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -389,7 +388,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -445,7 +444,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -497,7 +496,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -539,7 +538,7 @@ public IntegrationAccountMapInner get(String resourceGroupName, String integrati * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -548,7 +547,8 @@ public Response getWithResponse( } /** - * Creates or updates an integration account map. + * Creates or updates an integration account map. If the map is larger than 4 MB, you need to store the map in an + * Azure blob and use the blob's Shared Access Signature (SAS) URL as the 'contentLink' property value. * * @param resourceGroupName The resource group name. * @param integrationAccountName The integration account name. @@ -557,7 +557,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account map. + * @return the integration account map along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -610,7 +610,8 @@ private Mono> createOrUpdateWithResponseAsy } /** - * Creates or updates an integration account map. + * Creates or updates an integration account map. If the map is larger than 4 MB, you need to store the map in an + * Azure blob and use the blob's Shared Access Signature (SAS) URL as the 'contentLink' property value. * * @param resourceGroupName The resource group name. * @param integrationAccountName The integration account name. @@ -620,7 +621,7 @@ private Mono> createOrUpdateWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account map. + * @return the integration account map along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -674,7 +675,8 @@ private Mono> createOrUpdateWithResponseAsy } /** - * Creates or updates an integration account map. + * Creates or updates an integration account map. If the map is larger than 4 MB, you need to store the map in an + * Azure blob and use the blob's Shared Access Signature (SAS) URL as the 'contentLink' property value. * * @param resourceGroupName The resource group name. * @param integrationAccountName The integration account name. @@ -683,7 +685,7 @@ private Mono> createOrUpdateWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account map. + * @return the integration account map on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -700,7 +702,8 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates an integration account map. + * Creates or updates an integration account map. If the map is larger than 4 MB, you need to store the map in an + * Azure blob and use the blob's Shared Access Signature (SAS) URL as the 'contentLink' property value. * * @param resourceGroupName The resource group name. * @param integrationAccountName The integration account name. @@ -718,7 +721,8 @@ public IntegrationAccountMapInner createOrUpdate( } /** - * Creates or updates an integration account map. + * Creates or updates an integration account map. If the map is larger than 4 MB, you need to store the map in an + * Azure blob and use the blob's Shared Access Signature (SAS) URL as the 'contentLink' property value. * * @param resourceGroupName The resource group name. * @param integrationAccountName The integration account name. @@ -728,7 +732,7 @@ public IntegrationAccountMapInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account map. + * @return the integration account map along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -750,7 +754,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -806,7 +810,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -858,7 +862,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String integrationAccountName, String mapName) { @@ -891,7 +895,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -909,7 +913,7 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -977,7 +981,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -1042,7 +1046,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listContentCallbackUrlAsync( @@ -1095,7 +1099,7 @@ public WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listContentCallbackUrlWithResponse( @@ -1116,7 +1120,8 @@ public Response listContentCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration account maps. + * @return the list of integration account maps along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1152,7 +1157,8 @@ private Mono> listNextSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration account maps. + * @return the list of integration account maps along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsImpl.java index 45e5d3d5797f..8b2e98b5cc57 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.logic.models.IntegrationAccountMap; import com.azure.resourcemanager.logic.models.IntegrationAccountMaps; import com.azure.resourcemanager.logic.models.WorkflowTriggerCallbackUrl; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationAccountMapsImpl implements IntegrationAccountMaps { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountMapsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountMapsImpl.class); private final IntegrationAccountMapsClient innerClient; @@ -118,7 +117,7 @@ public Response listContentCallbackUrlWithResponse( public IntegrationAccountMap getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -126,7 +125,7 @@ public IntegrationAccountMap getById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -135,7 +134,7 @@ public IntegrationAccountMap getById(String id) { } String mapName = Utils.getValueFromIdByName(id, "maps"); if (mapName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'maps'.", id))); @@ -146,7 +145,7 @@ public IntegrationAccountMap getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -154,7 +153,7 @@ public Response getByIdWithResponse(String id, Context co } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -163,7 +162,7 @@ public Response getByIdWithResponse(String id, Context co } String mapName = Utils.getValueFromIdByName(id, "maps"); if (mapName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'maps'.", id))); @@ -174,7 +173,7 @@ public Response getByIdWithResponse(String id, Context co public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -182,7 +181,7 @@ public void deleteById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -191,18 +190,18 @@ public void deleteById(String id) { } String mapName = Utils.getValueFromIdByName(id, "maps"); if (mapName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'maps'.", id))); } - this.deleteWithResponse(resourceGroupName, integrationAccountName, mapName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, mapName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -210,7 +209,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -219,7 +218,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String mapName = Utils.getValueFromIdByName(id, "maps"); if (mapName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'maps'.", id))); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersClientImpl.java index 032dffca4eff..57b771316b2c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersClientImpl.java @@ -29,7 +29,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.IntegrationAccountPartnersClient; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountPartnerInner; import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerCallbackUrlInner; @@ -39,8 +38,6 @@ /** An instance of this class provides access to all the operations defined in IntegrationAccountPartnersClient. */ public final class IntegrationAccountPartnersClientImpl implements IntegrationAccountPartnersClient { - private final ClientLogger logger = new ClientLogger(IntegrationAccountPartnersClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationAccountPartnersService service; @@ -171,7 +168,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -235,7 +233,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -295,7 +294,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -313,7 +312,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -336,7 +335,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -354,7 +353,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String integrationAccountName) { @@ -374,7 +373,7 @@ public PagedIterable list(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -391,7 +390,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -447,7 +446,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -499,7 +498,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -542,7 +541,7 @@ public IntegrationAccountPartnerInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -560,7 +559,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account partner. + * @return the integration account partner along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -626,7 +625,7 @@ private Mono> createOrUpdateWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account partner. + * @return the integration account partner along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -689,7 +688,7 @@ private Mono> createOrUpdateWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account partner. + * @return the integration account partner on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -740,7 +739,7 @@ public IntegrationAccountPartnerInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account partner. + * @return the integration account partner along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -762,7 +761,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -818,7 +817,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -870,7 +869,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String integrationAccountName, String partnerName) { @@ -903,7 +902,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -921,7 +920,7 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -989,7 +988,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -1054,7 +1053,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listContentCallbackUrlAsync( @@ -1108,7 +1107,7 @@ public WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listContentCallbackUrlWithResponse( @@ -1129,7 +1128,8 @@ public Response listContentCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration account partners. + * @return the list of integration account partners along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1165,7 +1165,8 @@ private Mono> listNextSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration account partners. + * @return the list of integration account partners along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersImpl.java index 2b4f9a740e29..cc478e3e6f94 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.logic.models.IntegrationAccountPartner; import com.azure.resourcemanager.logic.models.IntegrationAccountPartners; import com.azure.resourcemanager.logic.models.WorkflowTriggerCallbackUrl; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationAccountPartnersImpl implements IntegrationAccountPartners { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountPartnersImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountPartnersImpl.class); private final IntegrationAccountPartnersClient innerClient; @@ -119,7 +118,7 @@ public Response listContentCallbackUrlWithResponse( public IntegrationAccountPartner getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -127,7 +126,7 @@ public IntegrationAccountPartner getById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -136,7 +135,7 @@ public IntegrationAccountPartner getById(String id) { } String partnerName = Utils.getValueFromIdByName(id, "partners"); if (partnerName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'partners'.", id))); @@ -147,7 +146,7 @@ public IntegrationAccountPartner getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -155,7 +154,7 @@ public Response getByIdWithResponse(String id, Contex } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -164,7 +163,7 @@ public Response getByIdWithResponse(String id, Contex } String partnerName = Utils.getValueFromIdByName(id, "partners"); if (partnerName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'partners'.", id))); @@ -175,7 +174,7 @@ public Response getByIdWithResponse(String id, Contex public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -183,7 +182,7 @@ public void deleteById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -192,18 +191,18 @@ public void deleteById(String id) { } String partnerName = Utils.getValueFromIdByName(id, "partners"); if (partnerName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'partners'.", id))); } - this.deleteWithResponse(resourceGroupName, integrationAccountName, partnerName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, partnerName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -211,7 +210,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -220,7 +219,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String partnerName = Utils.getValueFromIdByName(id, "partners"); if (partnerName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'partners'.", id))); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasClientImpl.java index 12e0358d2e5f..5f6ecee22ce0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasClientImpl.java @@ -29,7 +29,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.IntegrationAccountSchemasClient; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountSchemaInner; import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerCallbackUrlInner; @@ -39,8 +38,6 @@ /** An instance of this class provides access to all the operations defined in IntegrationAccountSchemasClient. */ public final class IntegrationAccountSchemasClientImpl implements IntegrationAccountSchemasClient { - private final ClientLogger logger = new ClientLogger(IntegrationAccountSchemasClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationAccountSchemasService service; @@ -171,7 +168,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -235,7 +233,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -295,7 +294,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -313,7 +312,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -336,7 +335,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -354,7 +353,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String integrationAccountName) { @@ -374,7 +373,7 @@ public PagedIterable list(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -391,7 +390,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -447,7 +446,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -499,7 +498,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -542,7 +541,7 @@ public IntegrationAccountSchemaInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -560,7 +559,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account schema. + * @return the integration account schema along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -626,7 +625,7 @@ private Mono> createOrUpdateWithResponse * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account schema. + * @return the integration account schema along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -689,7 +688,7 @@ private Mono> createOrUpdateWithResponse * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account schema. + * @return the integration account schema on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -740,7 +739,7 @@ public IntegrationAccountSchemaInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account schema. + * @return the integration account schema along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -762,7 +761,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -818,7 +817,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -870,7 +869,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String integrationAccountName, String schemaName) { @@ -903,7 +902,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -921,7 +920,7 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -989,7 +988,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -1054,7 +1053,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listContentCallbackUrlAsync( @@ -1108,7 +1107,7 @@ public WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listContentCallbackUrlWithResponse( @@ -1129,7 +1128,8 @@ public Response listContentCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration account schemas. + * @return the list of integration account schemas along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1165,7 +1165,8 @@ private Mono> listNextSinglePageAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration account schemas. + * @return the list of integration account schemas along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasImpl.java index 0a493dafcbd2..9c610b3042bf 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.logic.models.IntegrationAccountSchema; import com.azure.resourcemanager.logic.models.IntegrationAccountSchemas; import com.azure.resourcemanager.logic.models.WorkflowTriggerCallbackUrl; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationAccountSchemasImpl implements IntegrationAccountSchemas { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountSchemasImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountSchemasImpl.class); private final IntegrationAccountSchemasClient innerClient; @@ -119,7 +118,7 @@ public Response listContentCallbackUrlWithResponse( public IntegrationAccountSchema getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -127,7 +126,7 @@ public IntegrationAccountSchema getById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -136,7 +135,7 @@ public IntegrationAccountSchema getById(String id) { } String schemaName = Utils.getValueFromIdByName(id, "schemas"); if (schemaName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'schemas'.", id))); @@ -147,7 +146,7 @@ public IntegrationAccountSchema getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -155,7 +154,7 @@ public Response getByIdWithResponse(String id, Context } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -164,7 +163,7 @@ public Response getByIdWithResponse(String id, Context } String schemaName = Utils.getValueFromIdByName(id, "schemas"); if (schemaName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'schemas'.", id))); @@ -175,7 +174,7 @@ public Response getByIdWithResponse(String id, Context public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -183,7 +182,7 @@ public void deleteById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -192,18 +191,18 @@ public void deleteById(String id) { } String schemaName = Utils.getValueFromIdByName(id, "schemas"); if (schemaName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'schemas'.", id))); } - this.deleteWithResponse(resourceGroupName, integrationAccountName, schemaName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, schemaName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -211,7 +210,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -220,7 +219,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String schemaName = Utils.getValueFromIdByName(id, "schemas"); if (schemaName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'schemas'.", id))); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsClientImpl.java index fd5855e60a2f..a06ffa9abcdd 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsClientImpl.java @@ -28,7 +28,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.IntegrationAccountSessionsClient; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountSessionInner; import com.azure.resourcemanager.logic.models.IntegrationAccountSessionListResult; @@ -36,8 +35,6 @@ /** An instance of this class provides access to all the operations defined in IntegrationAccountSessionsClient. */ public final class IntegrationAccountSessionsClientImpl implements IntegrationAccountSessionsClient { - private final ClientLogger logger = new ClientLogger(IntegrationAccountSessionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationAccountSessionsService service; @@ -151,7 +148,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -215,7 +213,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -275,7 +274,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -293,7 +292,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -316,7 +315,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -334,7 +333,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String integrationAccountName) { @@ -354,7 +353,7 @@ public PagedIterable list(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -371,7 +370,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -427,7 +426,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -479,7 +478,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -522,7 +521,7 @@ public IntegrationAccountSessionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -540,7 +539,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account session. + * @return the integration account session along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -606,7 +605,7 @@ private Mono> createOrUpdateWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account session. + * @return the integration account session along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -669,7 +668,7 @@ private Mono> createOrUpdateWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account session. + * @return the integration account session on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -720,7 +719,7 @@ public IntegrationAccountSessionInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account session. + * @return the integration account session along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -742,7 +741,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -798,7 +797,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -850,7 +849,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String integrationAccountName, String sessionName) { @@ -883,7 +882,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -898,7 +897,8 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration account sessions. + * @return the list of integration account sessions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -934,7 +934,8 @@ private Mono> listNextSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration account sessions. + * @return the list of integration account sessions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsImpl.java index c5ef47a9e568..902ac4cc952a 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountSessionInner; import com.azure.resourcemanager.logic.models.IntegrationAccountSession; import com.azure.resourcemanager.logic.models.IntegrationAccountSessions; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationAccountSessionsImpl implements IntegrationAccountSessions { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountSessionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountSessionsImpl.class); private final IntegrationAccountSessionsClient innerClient; @@ -78,7 +77,7 @@ public Response deleteWithResponse( public IntegrationAccountSession getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -86,7 +85,7 @@ public IntegrationAccountSession getById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -95,7 +94,7 @@ public IntegrationAccountSession getById(String id) { } String sessionName = Utils.getValueFromIdByName(id, "sessions"); if (sessionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sessions'.", id))); @@ -106,7 +105,7 @@ public IntegrationAccountSession getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -114,7 +113,7 @@ public Response getByIdWithResponse(String id, Contex } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -123,7 +122,7 @@ public Response getByIdWithResponse(String id, Contex } String sessionName = Utils.getValueFromIdByName(id, "sessions"); if (sessionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sessions'.", id))); @@ -134,7 +133,7 @@ public Response getByIdWithResponse(String id, Contex public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -142,7 +141,7 @@ public void deleteById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -151,18 +150,18 @@ public void deleteById(String id) { } String sessionName = Utils.getValueFromIdByName(id, "sessions"); if (sessionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sessions'.", id))); } - this.deleteWithResponse(resourceGroupName, integrationAccountName, sessionName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, sessionName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -170,7 +169,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -179,7 +178,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String sessionName = Utils.getValueFromIdByName(id, "sessions"); if (sessionName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sessions'.", id))); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsClientImpl.java index 12b3b6cba152..43125db91880 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.IntegrationAccountsClient; import com.azure.resourcemanager.logic.fluent.models.CallbackUrlInner; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountInner; @@ -45,8 +44,6 @@ /** An instance of this class provides access to all the operations defined in IntegrationAccountsClient. */ public final class IntegrationAccountsClientImpl implements IntegrationAccountsClient { - private final ClientLogger logger = new ClientLogger(IntegrationAccountsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationAccountsService service; @@ -252,7 +249,8 @@ Mono> listByResourceGroupNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Integer top) { @@ -300,7 +298,8 @@ private Mono> listSinglePageAsync(Integer * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Integer top, Context context) { @@ -344,7 +343,7 @@ private Mono> listSinglePageAsync(Integer * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Integer top) { @@ -357,7 +356,7 @@ private PagedFlux listAsync(Integer top) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -374,7 +373,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Integer top, Context context) { @@ -388,7 +387,7 @@ private PagedFlux listAsync(Integer top, Context contex * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -404,7 +403,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Integer top, Context context) { @@ -419,7 +418,8 @@ public PagedIterable list(Integer top, Context context) * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -474,7 +474,8 @@ private Mono> listByResourceGroupSinglePa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -525,7 +526,7 @@ private Mono> listByResourceGroupSinglePa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top) { @@ -541,7 +542,7 @@ private PagedFlux listByResourceGroupAsync(String resou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -560,7 +561,7 @@ private PagedFlux listByResourceGroupAsync(String resou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync( @@ -577,7 +578,7 @@ private PagedFlux listByResourceGroupAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -594,7 +595,7 @@ public PagedIterable listByResourceGroup(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup( @@ -610,7 +611,7 @@ public PagedIterable listByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -661,7 +662,7 @@ private Mono> getByResourceGroupWithResponseAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -708,7 +709,7 @@ private Mono> getByResourceGroupWithResponseAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync( @@ -748,7 +749,7 @@ public IntegrationAccountInner getByResourceGroup(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse( @@ -765,7 +766,7 @@ public Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -824,7 +825,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -882,7 +883,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -925,7 +926,7 @@ public IntegrationAccountInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -946,7 +947,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -1005,7 +1006,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -1063,7 +1064,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1106,7 +1107,7 @@ public IntegrationAccountInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse( @@ -1125,7 +1126,7 @@ public Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync(String resourceGroupName, String integrationAccountName) { @@ -1175,7 +1176,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -1222,7 +1223,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String integrationAccountName) { @@ -1253,7 +1254,7 @@ public void delete(String resourceGroupName, String integrationAccountName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String integrationAccountName, Context context) { @@ -1269,7 +1270,8 @@ public Response deleteWithResponse(String resourceGroupName, String integr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account callback URL. + * @return the integration account callback URL along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -1327,7 +1329,8 @@ private Mono> listCallbackUrlWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account callback URL. + * @return the integration account callback URL along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -1381,7 +1384,7 @@ private Mono> listCallbackUrlWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account callback URL. + * @return the integration account callback URL on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listCallbackUrlAsync( @@ -1424,7 +1427,7 @@ public CallbackUrlInner listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account callback URL. + * @return the integration account callback URL along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listCallbackUrlWithResponse( @@ -1441,7 +1444,8 @@ public Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listKeyVaultKeysSinglePageAsync( @@ -1504,7 +1508,8 @@ private Mono> listKeyVaultKeysSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listKeyVaultKeysSinglePageAsync( @@ -1566,7 +1571,7 @@ private Mono> listKeyVaultKeysSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listKeyVaultKeysAsync( @@ -1585,7 +1590,7 @@ private PagedFlux listKeyVaultKeysAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listKeyVaultKeysAsync( @@ -1607,7 +1612,7 @@ private PagedFlux listKeyVaultKeysAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listKeyVaultKeys( @@ -1625,7 +1630,7 @@ public PagedIterable listKeyVaultKeys( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listKeyVaultKeys( @@ -1646,7 +1651,7 @@ public PagedIterable listKeyVaultKeys( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> logTrackingEventsWithResponseAsync( @@ -1705,7 +1710,7 @@ private Mono> logTrackingEventsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> logTrackingEventsWithResponseAsync( @@ -1763,7 +1768,7 @@ private Mono> logTrackingEventsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono logTrackingEventsAsync( @@ -1798,7 +1803,7 @@ public void logTrackingEvents( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response logTrackingEventsWithResponse( @@ -1819,7 +1824,7 @@ public Response logTrackingEventsWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> regenerateAccessKeyWithResponseAsync( @@ -1878,7 +1883,7 @@ private Mono> regenerateAccessKeyWithResponseA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> regenerateAccessKeyWithResponseAsync( @@ -1936,7 +1941,7 @@ private Mono> regenerateAccessKeyWithResponseA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono regenerateAccessKeyAsync( @@ -1979,7 +1984,7 @@ public IntegrationAccountInner regenerateAccessKey( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response regenerateAccessKeyWithResponse( @@ -1999,7 +2004,8 @@ public Response regenerateAccessKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration accounts. + * @return the list of integration accounts along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -2036,7 +2042,8 @@ private Mono> listBySubscriptionNextSingl * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration accounts. + * @return the list of integration accounts along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync( @@ -2072,7 +2079,8 @@ private Mono> listBySubscriptionNextSingl * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration accounts. + * @return the list of integration accounts along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -2109,7 +2117,8 @@ private Mono> listByResourceGroupNextSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration accounts. + * @return the list of integration accounts along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsImpl.java index 49e81fb521a1..96435cf619d7 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsImpl.java @@ -21,10 +21,9 @@ import com.azure.resourcemanager.logic.models.ListKeyVaultKeysDefinition; import com.azure.resourcemanager.logic.models.RegenerateActionParameter; import com.azure.resourcemanager.logic.models.TrackingEventsDefinition; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationAccountsImpl implements IntegrationAccounts { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountsImpl.class); private final IntegrationAccountsClient innerClient; @@ -186,7 +185,7 @@ public Response regenerateAccessKeyWithResponse( public IntegrationAccount getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -194,7 +193,7 @@ public IntegrationAccount getById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -207,7 +206,7 @@ public IntegrationAccount getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -215,7 +214,7 @@ public Response getByIdWithResponse(String id, Context conte } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -228,7 +227,7 @@ public Response getByIdWithResponse(String id, Context conte public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -236,20 +235,20 @@ public void deleteById(String id) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String .format( "The resource ID '%s' is not valid. Missing path segment 'integrationAccounts'.", id))); } - this.deleteWithResponse(resourceGroupName, integrationAccountName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -257,7 +256,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String integrationAccountName = Utils.getValueFromIdByName(id, "integrationAccounts"); if (integrationAccountName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentImpl.java index 6631ab985581..00d267634b35 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentImpl.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironment; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentProperties; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSku; +import com.azure.resourcemanager.logic.models.ManagedServiceIdentity; import java.util.Collections; import java.util.Map; @@ -55,6 +56,10 @@ public IntegrationServiceEnvironmentSku sku() { return this.innerModel().sku(); } + public ManagedServiceIdentity identity() { + return this.innerModel().identity(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -189,4 +194,9 @@ public IntegrationServiceEnvironmentImpl withSku(IntegrationServiceEnvironmentSk this.innerModel().withSku(sku); return this; } + + public IntegrationServiceEnvironmentImpl withIdentity(ManagedServiceIdentity identity) { + this.innerModel().withIdentity(identity); + return this; + } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiImpl.java new file mode 100644 index 000000000000..336f3959dba9 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiImpl.java @@ -0,0 +1,261 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.implementation; + +import com.azure.core.management.Region; +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner; +import com.azure.resourcemanager.logic.models.ApiResourceBackendService; +import com.azure.resourcemanager.logic.models.ApiResourceDefinitions; +import com.azure.resourcemanager.logic.models.ApiResourceGeneralInformation; +import com.azure.resourcemanager.logic.models.ApiResourceMetadata; +import com.azure.resourcemanager.logic.models.ApiResourcePolicies; +import com.azure.resourcemanager.logic.models.ApiTier; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApi; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApiDeploymentParameters; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowProvisioningState; +import java.util.Collections; +import java.util.List; +import java.util.Map; + +public final class IntegrationServiceEnvironmentManagedApiImpl + implements IntegrationServiceEnvironmentManagedApi, + IntegrationServiceEnvironmentManagedApi.Definition, + IntegrationServiceEnvironmentManagedApi.Update { + private IntegrationServiceEnvironmentManagedApiInner innerObject; + + private final com.azure.resourcemanager.logic.LogicManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters() { + return this.innerModel().deploymentParameters(); + } + + public String namePropertiesName() { + return this.innerModel().namePropertiesName(); + } + + public Map connectionParameters() { + Map inner = this.innerModel().connectionParameters(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public ApiResourceMetadata metadata() { + return this.innerModel().metadata(); + } + + public List runtimeUrls() { + List inner = this.innerModel().runtimeUrls(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public ApiResourceGeneralInformation generalInformation() { + return this.innerModel().generalInformation(); + } + + public List capabilities() { + List inner = this.innerModel().capabilities(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public ApiResourceBackendService backendService() { + return this.innerModel().backendService(); + } + + public ApiResourcePolicies policies() { + return this.innerModel().policies(); + } + + public String apiDefinitionUrl() { + return this.innerModel().apiDefinitionUrl(); + } + + public ApiResourceDefinitions apiDefinitions() { + return this.innerModel().apiDefinitions(); + } + + public ResourceReference integrationServiceEnvironment() { + return this.innerModel().integrationServiceEnvironment(); + } + + public WorkflowProvisioningState provisioningState() { + return this.innerModel().provisioningState(); + } + + public ApiTier category() { + return this.innerModel().category(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public IntegrationServiceEnvironmentManagedApiInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.logic.LogicManager manager() { + return this.serviceManager; + } + + private String resourceGroup; + + private String integrationServiceEnvironmentName; + + private String apiName; + + public IntegrationServiceEnvironmentManagedApiImpl withExistingIntegrationServiceEnvironment( + String resourceGroup, String integrationServiceEnvironmentName) { + this.resourceGroup = resourceGroup; + this.integrationServiceEnvironmentName = integrationServiceEnvironmentName; + return this; + } + + public IntegrationServiceEnvironmentManagedApi create() { + this.innerObject = + serviceManager + .serviceClient() + .getIntegrationServiceEnvironmentManagedApis() + .put(resourceGroup, integrationServiceEnvironmentName, apiName, this.innerModel(), Context.NONE); + return this; + } + + public IntegrationServiceEnvironmentManagedApi create(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getIntegrationServiceEnvironmentManagedApis() + .put(resourceGroup, integrationServiceEnvironmentName, apiName, this.innerModel(), context); + return this; + } + + IntegrationServiceEnvironmentManagedApiImpl( + String name, com.azure.resourcemanager.logic.LogicManager serviceManager) { + this.innerObject = new IntegrationServiceEnvironmentManagedApiInner(); + this.serviceManager = serviceManager; + this.apiName = name; + } + + public IntegrationServiceEnvironmentManagedApiImpl update() { + return this; + } + + public IntegrationServiceEnvironmentManagedApi apply() { + this.innerObject = + serviceManager + .serviceClient() + .getIntegrationServiceEnvironmentManagedApis() + .put(resourceGroup, integrationServiceEnvironmentName, apiName, this.innerModel(), Context.NONE); + return this; + } + + public IntegrationServiceEnvironmentManagedApi apply(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getIntegrationServiceEnvironmentManagedApis() + .put(resourceGroup, integrationServiceEnvironmentName, apiName, this.innerModel(), context); + return this; + } + + IntegrationServiceEnvironmentManagedApiImpl( + IntegrationServiceEnvironmentManagedApiInner innerObject, + com.azure.resourcemanager.logic.LogicManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroup = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.integrationServiceEnvironmentName = + Utils.getValueFromIdByName(innerObject.id(), "integrationServiceEnvironments"); + this.apiName = Utils.getValueFromIdByName(innerObject.id(), "managedApis"); + } + + public IntegrationServiceEnvironmentManagedApi refresh() { + this.innerObject = + serviceManager + .serviceClient() + .getIntegrationServiceEnvironmentManagedApis() + .getWithResponse(resourceGroup, integrationServiceEnvironmentName, apiName, Context.NONE) + .getValue(); + return this; + } + + public IntegrationServiceEnvironmentManagedApi refresh(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getIntegrationServiceEnvironmentManagedApis() + .getWithResponse(resourceGroup, integrationServiceEnvironmentName, apiName, context) + .getValue(); + return this; + } + + public IntegrationServiceEnvironmentManagedApiImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public IntegrationServiceEnvironmentManagedApiImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public IntegrationServiceEnvironmentManagedApiImpl withTags(Map tags) { + this.innerModel().withTags(tags); + return this; + } + + public IntegrationServiceEnvironmentManagedApiImpl withDeploymentParameters( + IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters) { + this.innerModel().withDeploymentParameters(deploymentParameters); + return this; + } + + public IntegrationServiceEnvironmentManagedApiImpl withIntegrationServiceEnvironment( + ResourceReference integrationServiceEnvironment) { + this.innerModel().withIntegrationServiceEnvironment(integrationServiceEnvironment); + return this; + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiOperationsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiOperationsClientImpl.java index 72ec76bb3191..4c593822b350 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiOperationsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiOperationsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.IntegrationServiceEnvironmentManagedApiOperationsClient; import com.azure.resourcemanager.logic.fluent.models.ApiOperationInner; import com.azure.resourcemanager.logic.models.ApiOperationListResult; @@ -37,9 +36,6 @@ */ public final class IntegrationServiceEnvironmentManagedApiOperationsClientImpl implements IntegrationServiceEnvironmentManagedApiOperationsClient { - private final ClientLogger logger = - new ClientLogger(IntegrationServiceEnvironmentManagedApiOperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationServiceEnvironmentManagedApiOperationsService service; @@ -106,7 +102,7 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -171,7 +167,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -232,7 +228,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -252,7 +248,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -271,7 +267,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -289,7 +285,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -304,7 +300,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 managed API operations. + * @return the list of managed API operations along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -340,7 +337,8 @@ private Mono> listNextSinglePageAsync(String ne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 managed API operations. + * @return the list of managed API operations along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiOperationsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiOperationsImpl.java index e32019f1433c..75a7d78571e8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiOperationsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiOperationsImpl.java @@ -11,12 +11,11 @@ import com.azure.resourcemanager.logic.fluent.models.ApiOperationInner; import com.azure.resourcemanager.logic.models.ApiOperation; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApiOperations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationServiceEnvironmentManagedApiOperationsImpl implements IntegrationServiceEnvironmentManagedApiOperations { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentManagedApiOperationsImpl.class); + private static final ClientLogger LOGGER = + new ClientLogger(IntegrationServiceEnvironmentManagedApiOperationsImpl.class); private final IntegrationServiceEnvironmentManagedApiOperationsClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisClientImpl.java index 50f45253fc68..e589781b83a4 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisClientImpl.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.logic.implementation; +import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; @@ -28,12 +29,11 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.logic.fluent.IntegrationServiceEnvironmentManagedApisClient; -import com.azure.resourcemanager.logic.fluent.models.ManagedApiInner; -import com.azure.resourcemanager.logic.models.ManagedApiListResult; +import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApiListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -44,8 +44,6 @@ */ public final class IntegrationServiceEnvironmentManagedApisClientImpl implements IntegrationServiceEnvironmentManagedApisClient { - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentManagedApisClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationServiceEnvironmentManagedApisService service; @@ -80,7 +78,7 @@ private interface IntegrationServiceEnvironmentManagedApisService { + "/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( + Mono> list( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroup") String resourceGroup, @@ -95,7 +93,7 @@ Mono> list( + "/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( + Mono> get( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroup") String resourceGroup, @@ -118,6 +116,8 @@ Mono>> put( @PathParam("integrationServiceEnvironmentName") String integrationServiceEnvironmentName, @PathParam("apiName") String apiName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, @HeaderParam("Accept") String accept, Context context); @@ -141,7 +141,7 @@ Mono>> delete( @Get("{nextLink}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( + Mono> listNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, @@ -156,10 +156,11 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( + private Mono> listSinglePageAsync( String resourceGroup, String integrationServiceEnvironmentName) { if (this.client.getEndpoint() == null) { return Mono @@ -195,7 +196,7 @@ private Mono> listSinglePageAsync( this.client.getApiVersion(), accept, context)) - .>map( + .>map( res -> new PagedResponseBase<>( res.getRequest(), @@ -216,10 +217,11 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( + private Mono> listSinglePageAsync( String resourceGroup, String integrationServiceEnvironmentName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -272,10 +274,11 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroup, String integrationServiceEnvironmentName) { + private PagedFlux listAsync( + String resourceGroup, String integrationServiceEnvironmentName) { return new PagedFlux<>( () -> listSinglePageAsync(resourceGroup, integrationServiceEnvironmentName), nextLink -> listNextSinglePageAsync(nextLink)); @@ -290,10 +293,10 @@ private PagedFlux listAsync(String resourceGroup, String integr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( + private PagedFlux listAsync( String resourceGroup, String integrationServiceEnvironmentName, Context context) { return new PagedFlux<>( () -> listSinglePageAsync(resourceGroup, integrationServiceEnvironmentName, context), @@ -308,10 +311,11 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName) { + public PagedIterable list( + String resourceGroup, String integrationServiceEnvironmentName) { return new PagedIterable<>(listAsync(resourceGroup, integrationServiceEnvironmentName)); } @@ -324,10 +328,10 @@ public PagedIterable list(String resourceGroup, String integrat * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( + public PagedIterable list( String resourceGroup, String integrationServiceEnvironmentName, Context context) { return new PagedIterable<>(listAsync(resourceGroup, integrationServiceEnvironmentName, context)); } @@ -341,10 +345,11 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Api. + * @return the integration service environment managed Api along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( + private Mono> getWithResponseAsync( String resourceGroup, String integrationServiceEnvironmentName, String apiName) { if (this.client.getEndpoint() == null) { return Mono @@ -397,10 +402,11 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Api. + * @return the integration service environment managed Api along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( + private Mono> getWithResponseAsync( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -449,14 +455,14 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Api. + * @return the integration service environment managed Api on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( + private Mono getAsync( String resourceGroup, String integrationServiceEnvironmentName, String apiName) { return getWithResponseAsync(resourceGroup, integrationServiceEnvironmentName, apiName) .flatMap( - (Response res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -477,7 +483,8 @@ private Mono getAsync( * @return the integration service environment managed Api. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedApiInner get(String resourceGroup, String integrationServiceEnvironmentName, String apiName) { + public IntegrationServiceEnvironmentManagedApiInner get( + String resourceGroup, String integrationServiceEnvironmentName, String apiName) { return getAsync(resourceGroup, integrationServiceEnvironmentName, apiName).block(); } @@ -491,10 +498,10 @@ public ManagedApiInner get(String resourceGroup, String integrationServiceEnviro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Api. + * @return the integration service environment managed Api along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public Response getWithResponse( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { return getWithResponseAsync(resourceGroup, integrationServiceEnvironmentName, apiName, context).block(); } @@ -505,14 +512,19 @@ public Response getWithResponse( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> putWithResponseAsync( - String resourceGroup, String integrationServiceEnvironmentName, String apiName) { + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -537,6 +549,14 @@ private Mono>> putWithResponseAsync( if (apiName == null) { return Mono.error(new IllegalArgumentException("Parameter apiName is required and cannot be null.")); } + if (integrationServiceEnvironmentManagedApi == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter integrationServiceEnvironmentManagedApi is required and cannot be null.")); + } else { + integrationServiceEnvironmentManagedApi.validate(); + } final String accept = "application/json"; return FluxUtil .withContext( @@ -549,6 +569,7 @@ private Mono>> putWithResponseAsync( integrationServiceEnvironmentName, apiName, this.client.getApiVersion(), + integrationServiceEnvironmentManagedApi, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -560,15 +581,21 @@ private Mono>> putWithResponseAsync( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> putWithResponseAsync( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, + Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -593,6 +620,14 @@ private Mono>> putWithResponseAsync( if (apiName == null) { return Mono.error(new IllegalArgumentException("Parameter apiName is required and cannot be null.")); } + if (integrationServiceEnvironmentManagedApi == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter integrationServiceEnvironmentManagedApi is required and cannot be null.")); + } else { + integrationServiceEnvironmentManagedApi.validate(); + } final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -603,6 +638,7 @@ private Mono>> putWithResponseAsync( integrationServiceEnvironmentName, apiName, this.client.getApiVersion(), + integrationServiceEnvironmentManagedApi, accept, context); } @@ -613,20 +649,31 @@ private Mono>> putWithResponseAsync( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the {@link PollerFlux} for polling of the integration service environment managed api. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PollerFlux, ManagedApiInner> beginPutAsync( - String resourceGroup, String integrationServiceEnvironmentName, String apiName) { + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux< + PollResult, IntegrationServiceEnvironmentManagedApiInner> + beginPutAsync( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi) { Mono>> mono = - putWithResponseAsync(resourceGroup, integrationServiceEnvironmentName, apiName); + putWithResponseAsync( + resourceGroup, integrationServiceEnvironmentName, apiName, integrationServiceEnvironmentManagedApi); return this .client - .getLroResult( - mono, this.client.getHttpPipeline(), ManagedApiInner.class, ManagedApiInner.class, Context.NONE); + .getLroResult( + mono, + this.client.getHttpPipeline(), + IntegrationServiceEnvironmentManagedApiInner.class, + IntegrationServiceEnvironmentManagedApiInner.class, + this.client.getContext()); } /** @@ -635,22 +682,38 @@ private PollerFlux, ManagedApiInner> beginPutAsync( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the {@link PollerFlux} for polling of the integration service environment managed api. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PollerFlux, ManagedApiInner> beginPutAsync( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux< + PollResult, IntegrationServiceEnvironmentManagedApiInner> + beginPutAsync( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, + Context context) { context = this.client.mergeContext(context); Mono>> mono = - putWithResponseAsync(resourceGroup, integrationServiceEnvironmentName, apiName, context); + putWithResponseAsync( + resourceGroup, + integrationServiceEnvironmentName, + apiName, + integrationServiceEnvironmentManagedApi, + context); return this .client - .getLroResult( - mono, this.client.getHttpPipeline(), ManagedApiInner.class, ManagedApiInner.class, context); + .getLroResult( + mono, + this.client.getHttpPipeline(), + IntegrationServiceEnvironmentManagedApiInner.class, + IntegrationServiceEnvironmentManagedApiInner.class, + context); } /** @@ -659,15 +722,23 @@ private PollerFlux, ManagedApiInner> beginPutAsync( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the {@link SyncPoller} for polling of the integration service environment managed api. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SyncPoller, ManagedApiInner> beginPut( - String resourceGroup, String integrationServiceEnvironmentName, String apiName) { - return beginPutAsync(resourceGroup, integrationServiceEnvironmentName, apiName).getSyncPoller(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller< + PollResult, IntegrationServiceEnvironmentManagedApiInner> + beginPut( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi) { + return beginPutAsync( + resourceGroup, integrationServiceEnvironmentName, apiName, integrationServiceEnvironmentManagedApi) + .getSyncPoller(); } /** @@ -676,16 +747,29 @@ public SyncPoller, ManagedApiInner> beginPut( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the {@link SyncPoller} for polling of the integration service environment managed api. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SyncPoller, ManagedApiInner> beginPut( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { - return beginPutAsync(resourceGroup, integrationServiceEnvironmentName, apiName, context).getSyncPoller(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller< + PollResult, IntegrationServiceEnvironmentManagedApiInner> + beginPut( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, + Context context) { + return beginPutAsync( + resourceGroup, + integrationServiceEnvironmentName, + apiName, + integrationServiceEnvironmentManagedApi, + context) + .getSyncPoller(); } /** @@ -694,15 +778,20 @@ public SyncPoller, ManagedApiInner> beginPut( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono putAsync( - String resourceGroup, String integrationServiceEnvironmentName, String apiName) { - return beginPutAsync(resourceGroup, integrationServiceEnvironmentName, apiName) + private Mono putAsync( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi) { + return beginPutAsync( + resourceGroup, integrationServiceEnvironmentName, apiName, integrationServiceEnvironmentManagedApi) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -713,16 +802,26 @@ private Mono putAsync( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono putAsync( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { - return beginPutAsync(resourceGroup, integrationServiceEnvironmentName, apiName, context) + private Mono putAsync( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, + Context context) { + return beginPutAsync( + resourceGroup, + integrationServiceEnvironmentName, + apiName, + integrationServiceEnvironmentManagedApi, + context) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -733,14 +832,21 @@ private Mono putAsync( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedApiInner put(String resourceGroup, String integrationServiceEnvironmentName, String apiName) { - return putAsync(resourceGroup, integrationServiceEnvironmentName, apiName).block(); + public IntegrationServiceEnvironmentManagedApiInner put( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi) { + return putAsync( + resourceGroup, integrationServiceEnvironmentName, apiName, integrationServiceEnvironmentManagedApi) + .block(); } /** @@ -749,16 +855,27 @@ public ManagedApiInner put(String resourceGroup, String integrationServiceEnviro * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedApiInner put( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { - return putAsync(resourceGroup, integrationServiceEnvironmentName, apiName, context).block(); + public IntegrationServiceEnvironmentManagedApiInner put( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, + Context context) { + return putAsync( + resourceGroup, + integrationServiceEnvironmentName, + apiName, + integrationServiceEnvironmentManagedApi, + context) + .block(); } /** @@ -770,7 +887,7 @@ public ManagedApiInner put( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -826,7 +943,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -878,16 +995,17 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroup, String integrationServiceEnvironmentName, String apiName) { Mono>> mono = deleteWithResponseAsync(resourceGroup, integrationServiceEnvironmentName, apiName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -900,9 +1018,9 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { context = this.client.mergeContext(context); @@ -922,9 +1040,9 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroup, String integrationServiceEnvironmentName, String apiName) { return beginDeleteAsync(resourceGroup, integrationServiceEnvironmentName, apiName).getSyncPoller(); @@ -940,9 +1058,9 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { return beginDeleteAsync(resourceGroup, integrationServiceEnvironmentName, apiName, context).getSyncPoller(); @@ -957,7 +1075,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroup, String integrationServiceEnvironmentName, String apiName) { @@ -976,7 +1094,7 @@ private Mono deleteAsync(String resourceGroup, String integrationServiceEn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -1025,10 +1143,11 @@ public void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 managed APIs. + * @return the list of integration service environment managed APIs along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1041,7 +1160,7 @@ private Mono> listNextSinglePageAsync(String next final String accept = "application/json"; return FluxUtil .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( + .>map( res -> new PagedResponseBase<>( res.getRequest(), @@ -1061,10 +1180,12 @@ private Mono> listNextSinglePageAsync(String next * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 managed APIs. + * @return the list of integration service environment managed APIs along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listNextSinglePageAsync( + String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisImpl.java index 378c0fa53e66..fa365ba8ac67 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisImpl.java @@ -10,14 +10,12 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.IntegrationServiceEnvironmentManagedApisClient; -import com.azure.resourcemanager.logic.fluent.models.ManagedApiInner; +import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApi; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApis; -import com.azure.resourcemanager.logic.models.ManagedApi; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationServiceEnvironmentManagedApisImpl implements IntegrationServiceEnvironmentManagedApis { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentManagedApisImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationServiceEnvironmentManagedApisImpl.class); private final IntegrationServiceEnvironmentManagedApisClient innerClient; @@ -30,70 +28,173 @@ public IntegrationServiceEnvironmentManagedApisImpl( this.serviceManager = serviceManager; } - public PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName) { - PagedIterable inner = + public PagedIterable list( + String resourceGroup, String integrationServiceEnvironmentName) { + PagedIterable inner = this.serviceClient().list(resourceGroup, integrationServiceEnvironmentName); - return Utils.mapPage(inner, inner1 -> new ManagedApiImpl(inner1, this.manager())); + return Utils.mapPage(inner, inner1 -> new IntegrationServiceEnvironmentManagedApiImpl(inner1, this.manager())); } - public PagedIterable list( + public PagedIterable list( String resourceGroup, String integrationServiceEnvironmentName, Context context) { - PagedIterable inner = + PagedIterable inner = this.serviceClient().list(resourceGroup, integrationServiceEnvironmentName, context); - return Utils.mapPage(inner, inner1 -> new ManagedApiImpl(inner1, this.manager())); + return Utils.mapPage(inner, inner1 -> new IntegrationServiceEnvironmentManagedApiImpl(inner1, this.manager())); } - public ManagedApi get(String resourceGroup, String integrationServiceEnvironmentName, String apiName) { - ManagedApiInner inner = this.serviceClient().get(resourceGroup, integrationServiceEnvironmentName, apiName); + public IntegrationServiceEnvironmentManagedApi get( + String resourceGroup, String integrationServiceEnvironmentName, String apiName) { + IntegrationServiceEnvironmentManagedApiInner inner = + this.serviceClient().get(resourceGroup, integrationServiceEnvironmentName, apiName); if (inner != null) { - return new ManagedApiImpl(inner, this.manager()); + return new IntegrationServiceEnvironmentManagedApiImpl(inner, this.manager()); } else { return null; } } - public Response getWithResponse( + public Response getWithResponse( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { - Response inner = + Response inner = this.serviceClient().getWithResponse(resourceGroup, integrationServiceEnvironmentName, apiName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ManagedApiImpl(inner.getValue(), this.manager())); + new IntegrationServiceEnvironmentManagedApiImpl(inner.getValue(), this.manager())); } else { return null; } } - public ManagedApi put(String resourceGroup, String integrationServiceEnvironmentName, String apiName) { - ManagedApiInner inner = this.serviceClient().put(resourceGroup, integrationServiceEnvironmentName, apiName); - if (inner != null) { - return new ManagedApiImpl(inner, this.manager()); - } else { - return null; - } + public void delete(String resourceGroup, String integrationServiceEnvironmentName, String apiName) { + this.serviceClient().delete(resourceGroup, integrationServiceEnvironmentName, apiName); } - public ManagedApi put( + public void delete( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { - ManagedApiInner inner = - this.serviceClient().put(resourceGroup, integrationServiceEnvironmentName, apiName, context); - if (inner != null) { - return new ManagedApiImpl(inner, this.manager()); - } else { - return null; + this.serviceClient().delete(resourceGroup, integrationServiceEnvironmentName, apiName, context); + } + + public IntegrationServiceEnvironmentManagedApi getById(String id) { + String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroup == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String integrationServiceEnvironmentName = Utils.getValueFromIdByName(id, "integrationServiceEnvironments"); + if (integrationServiceEnvironmentName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format( + "The resource ID '%s' is not valid. Missing path segment" + + " 'integrationServiceEnvironments'.", + id))); + } + String apiName = Utils.getValueFromIdByName(id, "managedApis"); + if (apiName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'managedApis'.", id))); + } + return this.getWithResponse(resourceGroup, integrationServiceEnvironmentName, apiName, Context.NONE).getValue(); } - public void delete(String resourceGroup, String integrationServiceEnvironmentName, String apiName) { - this.serviceClient().delete(resourceGroup, integrationServiceEnvironmentName, apiName); + public Response getByIdWithResponse(String id, Context context) { + String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroup == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String integrationServiceEnvironmentName = Utils.getValueFromIdByName(id, "integrationServiceEnvironments"); + if (integrationServiceEnvironmentName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format( + "The resource ID '%s' is not valid. Missing path segment" + + " 'integrationServiceEnvironments'.", + id))); + } + String apiName = Utils.getValueFromIdByName(id, "managedApis"); + if (apiName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'managedApis'.", id))); + } + return this.getWithResponse(resourceGroup, integrationServiceEnvironmentName, apiName, context); } - public void delete( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { - this.serviceClient().delete(resourceGroup, integrationServiceEnvironmentName, apiName, context); + public void deleteById(String id) { + String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroup == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String integrationServiceEnvironmentName = Utils.getValueFromIdByName(id, "integrationServiceEnvironments"); + if (integrationServiceEnvironmentName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format( + "The resource ID '%s' is not valid. Missing path segment" + + " 'integrationServiceEnvironments'.", + id))); + } + String apiName = Utils.getValueFromIdByName(id, "managedApis"); + if (apiName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'managedApis'.", id))); + } + this.delete(resourceGroup, integrationServiceEnvironmentName, apiName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroup == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String integrationServiceEnvironmentName = Utils.getValueFromIdByName(id, "integrationServiceEnvironments"); + if (integrationServiceEnvironmentName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String + .format( + "The resource ID '%s' is not valid. Missing path segment" + + " 'integrationServiceEnvironments'.", + id))); + } + String apiName = Utils.getValueFromIdByName(id, "managedApis"); + if (apiName == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'managedApis'.", id))); + } + this.delete(resourceGroup, integrationServiceEnvironmentName, apiName, context); } private IntegrationServiceEnvironmentManagedApisClient serviceClient() { @@ -103,4 +204,8 @@ private IntegrationServiceEnvironmentManagedApisClient serviceClient() { private com.azure.resourcemanager.logic.LogicManager manager() { return this.serviceManager; } + + public IntegrationServiceEnvironmentManagedApiImpl define(String name) { + return new IntegrationServiceEnvironmentManagedApiImpl(name, this.manager()); + } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentNetworkHealthsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentNetworkHealthsClientImpl.java index 1141e7bf51a9..607f640ca88d 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentNetworkHealthsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentNetworkHealthsClientImpl.java @@ -21,7 +21,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.IntegrationServiceEnvironmentNetworkHealthsClient; import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentSubnetNetworkHealthInner; import java.util.Map; @@ -33,8 +32,6 @@ */ public final class IntegrationServiceEnvironmentNetworkHealthsClientImpl implements IntegrationServiceEnvironmentNetworkHealthsClient { - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentNetworkHealthsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationServiceEnvironmentNetworkHealthsService service; @@ -87,7 +84,8 @@ Mono * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment network health. + * @return the integration service environment network health along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> getWithResponseAsync( @@ -138,7 +136,8 @@ private Mono>> getWithResponseAsync( @@ -185,7 +184,7 @@ private Mono> getAsync( @@ -226,7 +225,7 @@ public Map get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment network health. + * @return the integration service environment network health along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response> getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentNetworkHealthsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentNetworkHealthsImpl.java index b76d00f586be..343f1a0eecfe 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentNetworkHealthsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentNetworkHealthsImpl.java @@ -12,15 +12,13 @@ import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentSubnetNetworkHealthInner; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentNetworkHealths; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSubnetNetworkHealth; -import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.Collections; import java.util.Map; import java.util.stream.Collectors; public final class IntegrationServiceEnvironmentNetworkHealthsImpl implements IntegrationServiceEnvironmentNetworkHealths { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentNetworkHealthsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationServiceEnvironmentNetworkHealthsImpl.class); private final IntegrationServiceEnvironmentNetworkHealthsClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentSkusClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentSkusClientImpl.java index 336afc160139..ecb7708b741a 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentSkusClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentSkusClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.IntegrationServiceEnvironmentSkusClient; import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentSkuDefinitionInner; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSkuList; @@ -35,8 +34,6 @@ * An instance of this class provides access to all the operations defined in IntegrationServiceEnvironmentSkusClient. */ public final class IntegrationServiceEnvironmentSkusClientImpl implements IntegrationServiceEnvironmentSkusClient { - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentSkusClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationServiceEnvironmentSkusService service; @@ -99,7 +96,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -159,7 +157,8 @@ private Mono> lis * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -215,7 +214,7 @@ private Mono> lis * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -234,7 +233,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -252,7 +251,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -269,7 +268,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -284,7 +283,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration service environment skus. + * @return the list of integration service environment skus along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( @@ -321,7 +321,8 @@ private Mono> lis * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration service environment skus. + * @return the list of integration service environment skus along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentSkusImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentSkusImpl.java index 1a383140fe2f..4792887c4a46 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentSkusImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentSkusImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentSkuDefinitionInner; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSkuDefinition; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSkus; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationServiceEnvironmentSkusImpl implements IntegrationServiceEnvironmentSkus { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentSkusImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationServiceEnvironmentSkusImpl.class); private final IntegrationServiceEnvironmentSkusClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsClientImpl.java index 783a6c32cf03..b747c6fcf03f 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsClientImpl.java @@ -31,7 +31,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.logic.fluent.IntegrationServiceEnvironmentsClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in IntegrationServiceEnvironmentsClient. */ public final class IntegrationServiceEnvironmentsClientImpl implements IntegrationServiceEnvironmentsClient { - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final IntegrationServiceEnvironmentsService service; @@ -205,7 +202,8 @@ Mono> listByResourceGroupNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Integer top) { @@ -253,7 +251,8 @@ private Mono> listSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Integer top, Context context) { @@ -297,7 +296,7 @@ private Mono> listSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Integer top) { @@ -310,7 +309,7 @@ private PagedFlux listAsync(Integer top) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -327,7 +326,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Integer top, Context context) { @@ -341,7 +340,8 @@ private PagedFlux listAsync(Integer top, Con * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -357,7 +357,8 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Integer top, Context context) { @@ -372,7 +373,8 @@ public PagedIterable list(Integer top, Conte * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -426,7 +428,8 @@ private Mono> listByResourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -476,7 +479,8 @@ private Mono> listByResourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroup, Integer top) { @@ -492,7 +496,8 @@ private PagedFlux listByResourceGroupAsync(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroup) { @@ -511,7 +516,8 @@ private PagedFlux listByResourceGroupAsync(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync( @@ -528,7 +534,8 @@ private PagedFlux listByResourceGroupAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroup) { @@ -545,7 +552,8 @@ public PagedIterable listByResourceGroup(Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup( @@ -561,7 +569,7 @@ public PagedIterable listByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -612,7 +620,7 @@ private Mono> getByResourceGroupWit * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -659,7 +667,7 @@ private Mono> getByResourceGroupWit * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync( @@ -700,7 +708,7 @@ public IntegrationServiceEnvironmentInner getByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse( @@ -717,7 +725,7 @@ public Response getByResourceGroupWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -780,7 +788,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -840,9 +848,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link PollerFlux} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationServiceEnvironmentInner> beginCreateOrUpdateAsync( String resourceGroup, @@ -858,7 +866,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getHttpPipeline(), IntegrationServiceEnvironmentInner.class, IntegrationServiceEnvironmentInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -871,9 +879,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link PollerFlux} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationServiceEnvironmentInner> beginCreateOrUpdateAsync( String resourceGroup, @@ -903,9 +911,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationServiceEnvironmentInner> beginCreateOrUpdate( String resourceGroup, @@ -925,9 +933,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationServiceEnvironmentInner> beginCreateOrUpdate( String resourceGroup, @@ -948,7 +956,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -970,7 +978,7 @@ private Mono createOrUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -1036,7 +1044,7 @@ public IntegrationServiceEnvironmentInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1099,7 +1107,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1159,9 +1167,9 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link PollerFlux} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationServiceEnvironmentInner> beginUpdateAsync( String resourceGroup, @@ -1176,7 +1184,7 @@ private Mono>> updateWithResponseAsync( this.client.getHttpPipeline(), IntegrationServiceEnvironmentInner.class, IntegrationServiceEnvironmentInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -1189,9 +1197,9 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link PollerFlux} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationServiceEnvironmentInner> beginUpdateAsync( String resourceGroup, @@ -1221,9 +1229,9 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationServiceEnvironmentInner> beginUpdate( String resourceGroup, String integrationServiceEnvironmentName, @@ -1242,9 +1250,9 @@ public SyncPoller, IntegrationSer * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationServiceEnvironmentInner> beginUpdate( String resourceGroup, String integrationServiceEnvironmentName, @@ -1264,7 +1272,7 @@ public SyncPoller, IntegrationSer * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1286,7 +1294,7 @@ private Mono updateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1349,7 +1357,7 @@ public IntegrationServiceEnvironmentInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -1400,7 +1408,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -1447,7 +1455,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroup, String integrationServiceEnvironmentName) { @@ -1478,7 +1486,7 @@ public void delete(String resourceGroup, String integrationServiceEnvironmentNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -1494,7 +1502,7 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> restartWithResponseAsync( @@ -1545,7 +1553,7 @@ private Mono> restartWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> restartWithResponseAsync( @@ -1592,7 +1600,7 @@ private Mono> restartWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono restartAsync(String resourceGroup, String integrationServiceEnvironmentName) { @@ -1623,7 +1631,7 @@ public void restart(String resourceGroup, String integrationServiceEnvironmentNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response restartWithResponse( @@ -1638,7 +1646,8 @@ public Response restartWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration service environments. + * @return the list of integration service environments along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync( @@ -1676,7 +1685,8 @@ private Mono> listBySubscripti * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration service environments. + * @return the list of integration service environments along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync( @@ -1712,7 +1722,8 @@ private Mono> listBySubscripti * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration service environments. + * @return the list of integration service environments along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync( @@ -1750,7 +1761,8 @@ private Mono> listByResourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 integration service environments. + * @return the list of integration service environments along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsImpl.java index f02f251d46dc..79e626604ac3 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentInner; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironment; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironments; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationServiceEnvironmentsImpl implements IntegrationServiceEnvironments { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(IntegrationServiceEnvironmentsImpl.class); private final IntegrationServiceEnvironmentsClient innerClient; @@ -100,7 +99,7 @@ public Response restartWithResponse( public IntegrationServiceEnvironment getById(String id) { String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroup == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -108,7 +107,7 @@ public IntegrationServiceEnvironment getById(String id) { } String integrationServiceEnvironmentName = Utils.getValueFromIdByName(id, "integrationServiceEnvironments"); if (integrationServiceEnvironmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -125,7 +124,7 @@ public IntegrationServiceEnvironment getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroup == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -133,7 +132,7 @@ public Response getByIdWithResponse(String id, Co } String integrationServiceEnvironmentName = Utils.getValueFromIdByName(id, "integrationServiceEnvironments"); if (integrationServiceEnvironmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -148,7 +147,7 @@ public Response getByIdWithResponse(String id, Co public void deleteById(String id) { String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroup == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -156,7 +155,7 @@ public void deleteById(String id) { } String integrationServiceEnvironmentName = Utils.getValueFromIdByName(id, "integrationServiceEnvironments"); if (integrationServiceEnvironmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -165,13 +164,13 @@ public void deleteById(String id) { + " 'integrationServiceEnvironments'.", id))); } - this.deleteWithResponse(resourceGroup, integrationServiceEnvironmentName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroup, integrationServiceEnvironmentName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroup == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -179,7 +178,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String integrationServiceEnvironmentName = Utils.getValueFromIdByName(id, "integrationServiceEnvironments"); if (integrationServiceEnvironmentName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/LogicManagementClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/LogicManagementClientImpl.java index 5f10b1b1fd4d..e6ffee91252d 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/LogicManagementClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/LogicManagementClientImpl.java @@ -62,8 +62,6 @@ /** Initializes a new instance of the LogicManagementClientImpl type. */ @ServiceClient(builder = LogicManagementClientBuilder.class) public final class LogicManagementClientImpl implements LogicManagementClient { - private final ClientLogger logger = new ClientLogger(LogicManagementClientImpl.class); - /** The subscription id. */ private final String subscriptionId; @@ -600,7 +598,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse, managementError = null; } } catch (IOException | RuntimeException ioe) { - logger.logThrowableAsWarning(ioe); + LOGGER.logThrowableAsWarning(ioe); } } } else { @@ -659,4 +657,6 @@ public Mono getBodyAsString(Charset charset) { return Mono.just(new String(responseBody, charset)); } } + + private static final ClientLogger LOGGER = new ClientLogger(LogicManagementClientImpl.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/ManagedApiImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/ManagedApiImpl.java deleted file mode 100644 index 09c7de28bb6e..000000000000 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/ManagedApiImpl.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.logic.implementation; - -import com.azure.resourcemanager.logic.fluent.models.ManagedApiInner; -import com.azure.resourcemanager.logic.models.ApiResourceProperties; -import com.azure.resourcemanager.logic.models.ManagedApi; -import java.util.Collections; -import java.util.Map; - -public final class ManagedApiImpl implements ManagedApi { - private ManagedApiInner innerObject; - - private final com.azure.resourcemanager.logic.LogicManager serviceManager; - - ManagedApiImpl(ManagedApiInner innerObject, com.azure.resourcemanager.logic.LogicManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public ApiResourceProperties properties() { - return this.innerModel().properties(); - } - - public ManagedApiInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.logic.LogicManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/OperationsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/OperationsClientImpl.java index a3872d4f4061..c265cf711dd7 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/OperationsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/OperationsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.OperationsClient; import com.azure.resourcemanager.logic.fluent.models.OperationInner; import com.azure.resourcemanager.logic.models.OperationListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in OperationsClient. */ public final class OperationsClientImpl implements OperationsClient { - private final ClientLogger logger = new ClientLogger(OperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final OperationsService service; @@ -85,7 +82,8 @@ Mono> listNext( * * @throws ManagementException 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 the request to list Logic operations. + * @return result of the request to list Logic operations along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -118,7 +116,8 @@ private Mono> listSinglePageAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 the request to list Logic operations. + * @return result of the request to list Logic operations along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -148,7 +147,7 @@ private Mono> listSinglePageAsync(Context context) * * @throws ManagementException 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 the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -162,7 +161,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -175,7 +174,7 @@ private PagedFlux listAsync(Context context) { * * @throws ManagementException 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 the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -189,7 +188,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -203,7 +202,8 @@ public PagedIterable list(Context context) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 the request to list Logic operations. + * @return result of the request to list Logic operations along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -239,7 +239,8 @@ private Mono> listNextSinglePageAsync(String nextL * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 the request to list Logic operations. + * @return result of the request to list Logic operations along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/OperationsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/OperationsImpl.java index 5392dda89546..4cf4e288a62d 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/OperationsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/OperationsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.logic.fluent.models.OperationInner; import com.azure.resourcemanager.logic.models.Operation; import com.azure.resourcemanager.logic.models.Operations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class OperationsImpl implements Operations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class); private final OperationsClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowImpl.java index 780de9eec95c..96c35cec1192 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowImpl.java @@ -12,6 +12,7 @@ import com.azure.resourcemanager.logic.models.FlowEndpointsConfiguration; import com.azure.resourcemanager.logic.models.GenerateUpgradedDefinitionParameters; import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.ManagedServiceIdentity; import com.azure.resourcemanager.logic.models.RegenerateActionParameter; import com.azure.resourcemanager.logic.models.ResourceReference; import com.azure.resourcemanager.logic.models.Sku; @@ -55,6 +56,10 @@ public Map tags() { } } + public ManagedServiceIdentity identity() { + return this.innerModel().identity(); + } + public WorkflowProvisioningState provisioningState() { return this.innerModel().provisioningState(); } @@ -303,6 +308,11 @@ public WorkflowImpl withTags(Map tags) { return this; } + public WorkflowImpl withIdentity(ManagedServiceIdentity identity) { + this.innerModel().withIdentity(identity); + return this; + } + public WorkflowImpl withState(WorkflowState state) { this.innerModel().withState(state); return this; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionDefinitionImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionDefinitionImpl.java index b2dfe5b630b6..b1cac3732996 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionDefinitionImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionDefinitionImpl.java @@ -53,28 +53,13 @@ public Map tags() { } } - public OffsetDateTime startTime() { - return this.innerModel().startTime(); - } - - public OffsetDateTime endTime() { - return this.innerModel().endTime(); - } - - public RunActionCorrelation correlation() { - return this.innerModel().correlation(); - } - - public WorkflowStatus status() { - return this.innerModel().status(); - } - - public String code() { - return this.innerModel().code(); - } - - public Object error() { - return this.innerModel().error(); + public List repetitionIndexes() { + List inner = this.innerModel().repetitionIndexes(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } } public String trackingId() { @@ -114,13 +99,28 @@ public Integer iterationCount() { return this.innerModel().iterationCount(); } - public List repetitionIndexes() { - List inner = this.innerModel().repetitionIndexes(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } + public OffsetDateTime startTime() { + return this.innerModel().startTime(); + } + + public OffsetDateTime endTime() { + return this.innerModel().endTime(); + } + + public RunActionCorrelation correlation() { + return this.innerModel().correlation(); + } + + public WorkflowStatus status() { + return this.innerModel().status(); + } + + public String code() { + return this.innerModel().code(); + } + + public Object error() { + return this.innerModel().error(); } public WorkflowRunActionRepetitionDefinitionInner innerModel() { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsClientImpl.java index 884030b2673c..dded57f40030 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsClientImpl.java @@ -26,7 +26,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.WorkflowRunActionRepetitionsClient; import com.azure.resourcemanager.logic.fluent.models.WorkflowRunActionRepetitionDefinitionInner; import com.azure.resourcemanager.logic.models.ExpressionRoot; @@ -36,8 +35,6 @@ /** An instance of this class provides access to all the operations defined in WorkflowRunActionRepetitionsClient. */ public final class WorkflowRunActionRepetitionsClientImpl implements WorkflowRunActionRepetitionsClient { - private final ClientLogger logger = new ClientLogger(WorkflowRunActionRepetitionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkflowRunActionRepetitionsService service; @@ -129,7 +126,8 @@ Mono> listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -192,7 +190,8 @@ private Mono> listSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -251,7 +250,7 @@ private Mono> listSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -270,7 +269,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -289,7 +288,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -308,7 +307,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -327,7 +326,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action repetition. + * @return a workflow run action repetition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -391,7 +390,7 @@ private Mono> getWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action repetition. + * @return a workflow run action repetition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -456,7 +455,7 @@ private Mono> getWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action repetition. + * @return a workflow run action repetition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -503,7 +502,7 @@ public WorkflowRunActionRepetitionDefinitionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action repetition. + * @return a workflow run action repetition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -528,7 +527,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listExpressionTracesSinglePageAsync( @@ -596,7 +595,7 @@ private Mono> listExpressionTracesSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listExpressionTracesSinglePageAsync( @@ -665,7 +664,7 @@ private Mono> listExpressionTracesSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listExpressionTracesAsync( @@ -688,7 +687,7 @@ private PagedFlux listExpressionTracesAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listExpressionTracesAsync( @@ -715,7 +714,7 @@ private PagedFlux listExpressionTracesAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listExpressionTraces( @@ -736,7 +735,7 @@ public PagedIterable listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listExpressionTraces( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsImpl.java index ef2b66c0a67a..cf3a4749d5c5 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.logic.models.ExpressionRoot; import com.azure.resourcemanager.logic.models.WorkflowRunActionRepetitionDefinition; import com.azure.resourcemanager.logic.models.WorkflowRunActionRepetitions; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkflowRunActionRepetitionsImpl implements WorkflowRunActionRepetitions { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunActionRepetitionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkflowRunActionRepetitionsImpl.class); private final WorkflowRunActionRepetitionsClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsRequestHistoriesClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsRequestHistoriesClientImpl.java index 5123485185ce..477951891759 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsRequestHistoriesClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsRequestHistoriesClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.WorkflowRunActionRepetitionsRequestHistoriesClient; import com.azure.resourcemanager.logic.fluent.models.RequestHistoryInner; import com.azure.resourcemanager.logic.models.RequestHistoryListResult; @@ -37,8 +36,6 @@ */ public final class WorkflowRunActionRepetitionsRequestHistoriesClientImpl implements WorkflowRunActionRepetitionsRequestHistoriesClient { - private final ClientLogger logger = new ClientLogger(WorkflowRunActionRepetitionsRequestHistoriesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkflowRunActionRepetitionsRequestHistoriesService service; @@ -127,7 +124,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -200,7 +198,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -274,7 +273,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -296,7 +295,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -322,7 +321,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -342,7 +341,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -368,7 +367,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run repetition request history. + * @return a workflow run repetition request history along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -443,7 +443,8 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run repetition request history. + * @return a workflow run repetition request history along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -515,7 +516,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run repetition request history. + * @return a workflow run repetition request history on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -576,7 +577,7 @@ public RequestHistoryInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run repetition request history. + * @return a workflow run repetition request history along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -599,7 +600,8 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -635,7 +637,8 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsRequestHistoriesImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsRequestHistoriesImpl.java index ff8aa0692b5e..bb4dfa8166cb 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsRequestHistoriesImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsRequestHistoriesImpl.java @@ -13,12 +13,10 @@ import com.azure.resourcemanager.logic.fluent.models.RequestHistoryInner; import com.azure.resourcemanager.logic.models.RequestHistory; import com.azure.resourcemanager.logic.models.WorkflowRunActionRepetitionsRequestHistories; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkflowRunActionRepetitionsRequestHistoriesImpl implements WorkflowRunActionRepetitionsRequestHistories { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(WorkflowRunActionRepetitionsRequestHistoriesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkflowRunActionRepetitionsRequestHistoriesImpl.class); private final WorkflowRunActionRepetitionsRequestHistoriesClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRequestHistoriesClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRequestHistoriesClientImpl.java index 31c044ff133c..2d2a254aa0aa 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRequestHistoriesClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRequestHistoriesClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.WorkflowRunActionRequestHistoriesClient; import com.azure.resourcemanager.logic.fluent.models.RequestHistoryInner; import com.azure.resourcemanager.logic.models.RequestHistoryListResult; @@ -35,8 +34,6 @@ * An instance of this class provides access to all the operations defined in WorkflowRunActionRequestHistoriesClient. */ public final class WorkflowRunActionRequestHistoriesClientImpl implements WorkflowRunActionRequestHistoriesClient { - private final ClientLogger logger = new ClientLogger(WorkflowRunActionRequestHistoriesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkflowRunActionRequestHistoriesService service; @@ -121,7 +118,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -189,7 +187,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -253,7 +252,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -274,7 +273,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -294,7 +293,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -313,7 +312,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -332,7 +331,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run request history. + * @return a workflow run request history along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -397,7 +396,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run request history. + * @return a workflow run request history along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -463,7 +462,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run request history. + * @return a workflow run request history on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -510,7 +509,7 @@ public RequestHistoryInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run request history. + * @return a workflow run request history along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -531,7 +530,8 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -567,7 +567,8 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRequestHistoriesImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRequestHistoriesImpl.java index e373f4ccafaf..854d4a1d0e57 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRequestHistoriesImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRequestHistoriesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.logic.fluent.models.RequestHistoryInner; import com.azure.resourcemanager.logic.models.RequestHistory; import com.azure.resourcemanager.logic.models.WorkflowRunActionRequestHistories; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkflowRunActionRequestHistoriesImpl implements WorkflowRunActionRequestHistories { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunActionRequestHistoriesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkflowRunActionRequestHistoriesImpl.class); private final WorkflowRunActionRequestHistoriesClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionScopeRepetitionsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionScopeRepetitionsClientImpl.java index 4aee6e77d659..52e8a290dde0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionScopeRepetitionsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionScopeRepetitionsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.WorkflowRunActionScopeRepetitionsClient; import com.azure.resourcemanager.logic.fluent.models.WorkflowRunActionRepetitionDefinitionInner; import com.azure.resourcemanager.logic.models.WorkflowRunActionRepetitionDefinitionCollection; @@ -35,8 +34,6 @@ * An instance of this class provides access to all the operations defined in WorkflowRunActionScopeRepetitionsClient. */ public final class WorkflowRunActionScopeRepetitionsClientImpl implements WorkflowRunActionScopeRepetitionsClient { - private final ClientLogger logger = new ClientLogger(WorkflowRunActionScopeRepetitionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkflowRunActionScopeRepetitionsService service; @@ -111,7 +108,8 @@ Mono> get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -174,7 +172,8 @@ private Mono> listSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -233,7 +232,7 @@ private Mono> listSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -252,7 +251,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -271,7 +270,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -290,7 +289,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -309,7 +308,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action scoped repetition. + * @return a workflow run action scoped repetition along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -373,7 +373,8 @@ private Mono> getWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action scoped repetition. + * @return a workflow run action scoped repetition along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -438,7 +439,7 @@ private Mono> getWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action scoped repetition. + * @return a workflow run action scoped repetition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -485,7 +486,7 @@ public WorkflowRunActionRepetitionDefinitionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action scoped repetition. + * @return a workflow run action scoped repetition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionScopeRepetitionsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionScopeRepetitionsImpl.java index 14c8774685e8..012b8fc05f02 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionScopeRepetitionsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionScopeRepetitionsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.logic.fluent.models.WorkflowRunActionRepetitionDefinitionInner; import com.azure.resourcemanager.logic.models.WorkflowRunActionRepetitionDefinition; import com.azure.resourcemanager.logic.models.WorkflowRunActionScopeRepetitions; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkflowRunActionScopeRepetitionsImpl implements WorkflowRunActionScopeRepetitions { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunActionScopeRepetitionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkflowRunActionScopeRepetitionsImpl.class); private final WorkflowRunActionScopeRepetitionsClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionsClientImpl.java index b210c160751c..9d12c1508843 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionsClientImpl.java @@ -26,7 +26,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.WorkflowRunActionsClient; import com.azure.resourcemanager.logic.fluent.models.WorkflowRunActionInner; import com.azure.resourcemanager.logic.models.ExpressionRoot; @@ -36,8 +35,6 @@ /** An instance of this class provides access to all the operations defined in WorkflowRunActionsClient. */ public final class WorkflowRunActionsClientImpl implements WorkflowRunActionsClient { - private final ClientLogger logger = new ClientLogger(WorkflowRunActionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkflowRunActionsService service; @@ -136,7 +133,7 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -203,7 +200,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -266,7 +263,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -285,7 +282,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workflowName, String runName) { @@ -308,7 +305,7 @@ private PagedFlux listAsync(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -327,7 +324,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workflowName, String runName) { @@ -348,7 +345,7 @@ public PagedIterable list(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -366,7 +363,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action. + * @return a workflow run action along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -425,7 +422,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action. + * @return a workflow run action along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -480,7 +477,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action. + * @return a workflow run action on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -525,7 +522,7 @@ public WorkflowRunActionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action. + * @return a workflow run action along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -543,7 +540,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listExpressionTracesSinglePageAsync( @@ -606,7 +603,7 @@ private Mono> listExpressionTracesSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listExpressionTracesSinglePageAsync( @@ -665,7 +662,7 @@ private Mono> listExpressionTracesSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listExpressionTracesAsync( @@ -685,7 +682,7 @@ private PagedFlux listExpressionTracesAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listExpressionTracesAsync( @@ -704,7 +701,7 @@ private PagedFlux listExpressionTracesAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listExpressionTraces( @@ -723,7 +720,7 @@ public PagedIterable listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listExpressionTraces( @@ -739,7 +736,8 @@ public PagedIterable listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow run actions. + * @return the list of workflow run actions along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -775,7 +773,8 @@ private Mono> listNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow run actions. + * @return the list of workflow run actions along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionsImpl.java index 736946b3e751..378c30749fff 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionsImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.logic.models.ExpressionRoot; import com.azure.resourcemanager.logic.models.WorkflowRunAction; import com.azure.resourcemanager.logic.models.WorkflowRunActions; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkflowRunActionsImpl implements WorkflowRunActions { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunActionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkflowRunActionsImpl.class); private final WorkflowRunActionsClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunOperationsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunOperationsClientImpl.java index 55a93ccd3429..7f009e4dcb3a 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunOperationsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunOperationsClientImpl.java @@ -21,15 +21,12 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.WorkflowRunOperationsClient; import com.azure.resourcemanager.logic.fluent.models.WorkflowRunInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in WorkflowRunOperationsClient. */ public final class WorkflowRunOperationsClientImpl implements WorkflowRunOperationsClient { - private final ClientLogger logger = new ClientLogger(WorkflowRunOperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkflowRunOperationsService service; @@ -83,7 +80,7 @@ Mono> get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an operation for a run. + * @return an operation for a run along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -142,7 +139,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an operation for a run. + * @return an operation for a run along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -197,7 +194,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an operation for a run. + * @return an operation for a run on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -241,7 +238,7 @@ public WorkflowRunInner get(String resourceGroupName, String workflowName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an operation for a run. + * @return an operation for a run along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunOperationsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunOperationsImpl.java index 1355d2c3fbfb..f5a05cb21bb9 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunOperationsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunOperationsImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.logic.fluent.models.WorkflowRunInner; import com.azure.resourcemanager.logic.models.WorkflowRun; import com.azure.resourcemanager.logic.models.WorkflowRunOperations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkflowRunOperationsImpl implements WorkflowRunOperations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunOperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkflowRunOperationsImpl.class); private final WorkflowRunOperationsClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunsClientImpl.java index df0150b681f8..e0e6d3a5c58d 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunsClientImpl.java @@ -26,7 +26,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.WorkflowRunsClient; import com.azure.resourcemanager.logic.fluent.models.WorkflowRunInner; import com.azure.resourcemanager.logic.models.WorkflowRunListResult; @@ -34,8 +33,6 @@ /** An instance of this class provides access to all the operations defined in WorkflowRunsClient. */ public final class WorkflowRunsClientImpl implements WorkflowRunsClient { - private final ClientLogger logger = new ClientLogger(WorkflowRunsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkflowRunsService service; @@ -131,7 +128,7 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -194,7 +191,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -253,7 +250,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -271,7 +268,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workflowName) { @@ -294,7 +291,7 @@ private PagedFlux listAsync(String resourceGroupName, String w * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -312,7 +309,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workflowName) { @@ -333,7 +330,7 @@ public PagedIterable list(String resourceGroupName, String wor * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -350,7 +347,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run. + * @return a workflow run along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -404,7 +401,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run. + * @return a workflow run along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -454,7 +451,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run. + * @return a workflow run on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workflowName, String runName) { @@ -495,7 +492,7 @@ public WorkflowRunInner get(String resourceGroupName, String workflowName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run. + * @return a workflow run along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -512,7 +509,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> cancelWithResponseAsync( @@ -566,7 +563,7 @@ private Mono> cancelWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> cancelWithResponseAsync( @@ -616,7 +613,7 @@ private Mono> cancelWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono cancelAsync(String resourceGroupName, String workflowName, String runName) { @@ -649,7 +646,7 @@ public void cancel(String resourceGroupName, String workflowName, String runName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response cancelWithResponse( @@ -664,7 +661,7 @@ public Response cancelWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow runs. + * @return the list of workflow runs along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -700,7 +697,7 @@ private Mono> listNextSinglePageAsync(String nex * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow runs. + * @return the list of workflow runs along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunsImpl.java index 2bc05d43a807..43c81838dde5 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.logic.fluent.models.WorkflowRunInner; import com.azure.resourcemanager.logic.models.WorkflowRun; import com.azure.resourcemanager.logic.models.WorkflowRuns; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkflowRunsImpl implements WorkflowRuns { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkflowRunsImpl.class); private final WorkflowRunsClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggerHistoriesClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggerHistoriesClientImpl.java index 6102118292e5..1da12e56462a 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggerHistoriesClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggerHistoriesClientImpl.java @@ -26,7 +26,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.WorkflowTriggerHistoriesClient; import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerHistoryInner; import com.azure.resourcemanager.logic.models.WorkflowTriggerHistoryListResult; @@ -34,8 +33,6 @@ /** An instance of this class provides access to all the operations defined in WorkflowTriggerHistoriesClient. */ public final class WorkflowTriggerHistoriesClientImpl implements WorkflowTriggerHistoriesClient { - private final ClientLogger logger = new ClientLogger(WorkflowTriggerHistoriesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkflowTriggerHistoriesService service; @@ -136,7 +133,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -204,7 +202,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -273,7 +272,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -292,7 +291,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -317,7 +316,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -341,7 +340,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -364,7 +363,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -388,7 +387,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger history. + * @return a workflow trigger history along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -448,7 +447,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger history. + * @return a workflow trigger history along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -504,7 +503,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger history. + * @return a workflow trigger history on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -551,7 +550,7 @@ public WorkflowTriggerHistoryInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger history. + * @return a workflow trigger history along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -570,7 +569,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> resubmitWithResponseAsync( @@ -630,7 +629,7 @@ private Mono> resubmitWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> resubmitWithResponseAsync( @@ -686,7 +685,7 @@ private Mono> resubmitWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono resubmitAsync( @@ -724,7 +723,7 @@ public void resubmit(String resourceGroupName, String workflowName, String trigg * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response resubmitWithResponse( @@ -739,7 +738,8 @@ public Response resubmitWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow trigger histories. + * @return the list of workflow trigger histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -775,7 +775,8 @@ private Mono> listNextSinglePageAsync * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow trigger histories. + * @return the list of workflow trigger histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggerHistoriesImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggerHistoriesImpl.java index cb667acd5983..7c5d16a9f9c5 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggerHistoriesImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggerHistoriesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerHistoryInner; import com.azure.resourcemanager.logic.models.WorkflowTriggerHistories; import com.azure.resourcemanager.logic.models.WorkflowTriggerHistory; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkflowTriggerHistoriesImpl implements WorkflowTriggerHistories { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggerHistoriesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkflowTriggerHistoriesImpl.class); private final WorkflowTriggerHistoriesClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggersClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggersClientImpl.java index 0aa5d9033d59..9c8024fe64c8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggersClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggersClientImpl.java @@ -27,7 +27,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.WorkflowTriggersClient; import com.azure.resourcemanager.logic.fluent.models.JsonSchemaInner; import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerCallbackUrlInner; @@ -38,8 +37,6 @@ /** An instance of this class provides access to all the operations defined in WorkflowTriggersClient. */ public final class WorkflowTriggersClientImpl implements WorkflowTriggersClient { - private final ClientLogger logger = new ClientLogger(WorkflowTriggersClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkflowTriggersService service; @@ -199,7 +196,7 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -261,7 +258,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -319,7 +316,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -337,7 +334,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workflowName) { @@ -359,7 +356,7 @@ private PagedFlux listAsync(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -377,7 +374,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workflowName) { @@ -397,7 +394,7 @@ public PagedIterable list(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -414,7 +411,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger. + * @return a workflow trigger along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -468,7 +465,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger. + * @return a workflow trigger along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -518,7 +515,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger. + * @return a workflow trigger on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workflowName, String triggerName) { @@ -559,7 +556,7 @@ public WorkflowTriggerInner get(String resourceGroupName, String workflowName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger. + * @return a workflow trigger along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -576,7 +573,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> resetWithResponseAsync( @@ -630,7 +627,7 @@ private Mono> resetWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> resetWithResponseAsync( @@ -680,7 +677,7 @@ private Mono> resetWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono resetAsync(String resourceGroupName, String workflowName, String triggerName) { @@ -713,7 +710,7 @@ public void reset(String resourceGroupName, String workflowName, String triggerN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response resetWithResponse( @@ -730,7 +727,7 @@ public Response resetWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> runWithResponseAsync( @@ -784,7 +781,7 @@ private Mono> runWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> runWithResponseAsync( @@ -834,7 +831,7 @@ private Mono> runWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono runAsync(String resourceGroupName, String workflowName, String triggerName) { @@ -867,7 +864,7 @@ public void run(String resourceGroupName, String workflowName, String triggerNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response runWithResponse( @@ -884,7 +881,7 @@ public Response runWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the trigger schema as JSON. + * @return the trigger schema as JSON along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getSchemaJsonWithResponseAsync( @@ -938,7 +935,7 @@ private Mono> getSchemaJsonWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the trigger schema as JSON. + * @return the trigger schema as JSON along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getSchemaJsonWithResponseAsync( @@ -988,7 +985,7 @@ private Mono> getSchemaJsonWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the trigger schema as JSON. + * @return the trigger schema as JSON on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getSchemaJsonAsync( @@ -1030,7 +1027,7 @@ public JsonSchemaInner getSchemaJson(String resourceGroupName, String workflowNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the trigger schema as JSON. + * @return the trigger schema as JSON along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getSchemaJsonWithResponse( @@ -1048,7 +1045,7 @@ public Response getSchemaJsonWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> setStateWithResponseAsync( @@ -1109,7 +1106,7 @@ private Mono> setStateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> setStateWithResponseAsync( @@ -1170,7 +1167,7 @@ private Mono> setStateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono setStateAsync( @@ -1207,7 +1204,7 @@ public void setState( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response setStateWithResponse( @@ -1228,7 +1225,8 @@ public Response setStateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback URL for a workflow trigger. + * @return the callback URL for a workflow trigger along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -1282,7 +1280,8 @@ private Mono> listCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback URL for a workflow trigger. + * @return the callback URL for a workflow trigger along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -1332,7 +1331,7 @@ private Mono> listCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback URL for a workflow trigger. + * @return the callback URL for a workflow trigger on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listCallbackUrlAsync( @@ -1375,7 +1374,7 @@ public WorkflowTriggerCallbackUrlInner listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback URL for a workflow trigger. + * @return the callback URL for a workflow trigger along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listCallbackUrlWithResponse( @@ -1390,7 +1389,7 @@ public Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow triggers. + * @return the list of workflow triggers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1426,7 +1425,7 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow triggers. + * @return the list of workflow triggers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggersImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggersImpl.java index 33812bf4e06a..b66756ff5ac0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggersImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggersImpl.java @@ -18,10 +18,9 @@ import com.azure.resourcemanager.logic.models.WorkflowTrigger; import com.azure.resourcemanager.logic.models.WorkflowTriggerCallbackUrl; import com.azure.resourcemanager.logic.models.WorkflowTriggers; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkflowTriggersImpl implements WorkflowTriggers { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggersImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkflowTriggersImpl.class); private final WorkflowTriggersClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionTriggersClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionTriggersClientImpl.java index 4639f772cd8f..793619d69aef 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionTriggersClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionTriggersClientImpl.java @@ -22,7 +22,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.WorkflowVersionTriggersClient; import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerCallbackUrlInner; import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; @@ -30,8 +29,6 @@ /** An instance of this class provides access to all the operations defined in WorkflowVersionTriggersClient. */ public final class WorkflowVersionTriggersClientImpl implements WorkflowVersionTriggersClient { - private final ClientLogger logger = new ClientLogger(WorkflowVersionTriggersClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkflowVersionTriggersService service; @@ -87,7 +84,8 @@ Mono> listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback url for a trigger of a workflow version. + * @return the callback url for a trigger of a workflow version along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -155,7 +153,8 @@ private Mono> listCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback url for a trigger of a workflow version. + * @return the callback url for a trigger of a workflow version along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -220,7 +219,7 @@ private Mono> listCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback url for a trigger of a workflow version. + * @return the callback url for a trigger of a workflow version on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listCallbackUrlAsync( @@ -250,7 +249,7 @@ private Mono listCallbackUrlAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback url for a trigger of a workflow version. + * @return the callback url for a trigger of a workflow version on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listCallbackUrlAsync( @@ -298,7 +297,7 @@ public WorkflowTriggerCallbackUrlInner listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback url for a trigger of a workflow version. + * @return the callback url for a trigger of a workflow version along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionTriggersImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionTriggersImpl.java index dd7c0ec8dc39..88660bc57ecc 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionTriggersImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionTriggersImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; import com.azure.resourcemanager.logic.models.WorkflowTriggerCallbackUrl; import com.azure.resourcemanager.logic.models.WorkflowVersionTriggers; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkflowVersionTriggersImpl implements WorkflowVersionTriggers { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowVersionTriggersImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkflowVersionTriggersImpl.class); private final WorkflowVersionTriggersClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionsClientImpl.java index 601ccd53d7a7..6180fe48e9ac 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.WorkflowVersionsClient; import com.azure.resourcemanager.logic.fluent.models.WorkflowVersionInner; import com.azure.resourcemanager.logic.models.WorkflowVersionListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in WorkflowVersionsClient. */ public final class WorkflowVersionsClientImpl implements WorkflowVersionsClient { - private final ClientLogger logger = new ClientLogger(WorkflowVersionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkflowVersionsService service; @@ -111,7 +108,7 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -171,7 +168,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -227,7 +224,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workflowName, Integer top) { @@ -244,7 +241,7 @@ private PagedFlux listAsync(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workflowName) { @@ -264,7 +261,7 @@ private PagedFlux listAsync(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -282,7 +279,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workflowName) { @@ -300,7 +297,7 @@ public PagedIterable list(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -317,7 +314,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow version. + * @return a workflow version along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -371,7 +368,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow version. + * @return a workflow version along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -421,7 +418,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow version. + * @return a workflow version on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workflowName, String versionId) { @@ -462,7 +459,7 @@ public WorkflowVersionInner get(String resourceGroupName, String workflowName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow version. + * @return a workflow version along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -477,7 +474,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow versions. + * @return the list of workflow versions along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -513,7 +510,7 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflow versions. + * @return the list of workflow versions along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionsImpl.java index 1bc139ba89a8..bf77e90384d2 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.logic.fluent.models.WorkflowVersionInner; import com.azure.resourcemanager.logic.models.WorkflowVersion; import com.azure.resourcemanager.logic.models.WorkflowVersions; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkflowVersionsImpl implements WorkflowVersions { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowVersionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkflowVersionsImpl.class); private final WorkflowVersionsClient innerClient; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsClientImpl.java index 8c95f8c980b6..77bfd167ed7c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsClientImpl.java @@ -31,7 +31,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.logic.fluent.WorkflowsClient; @@ -48,8 +47,6 @@ /** An instance of this class provides access to all the operations defined in WorkflowsClient. */ public final class WorkflowsClientImpl implements WorkflowsClient { - private final ClientLogger logger = new ClientLogger(WorkflowsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final WorkflowsService service; @@ -334,7 +331,8 @@ Mono> listByResourceGroupNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Integer top, String filter) { @@ -385,7 +383,8 @@ private Mono> listSinglePageAsync(Integer top, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Integer top, String filter, Context context) { @@ -432,7 +431,7 @@ private Mono> listSinglePageAsync(Integer top, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Integer top, String filter) { @@ -445,7 +444,7 @@ private PagedFlux listAsync(Integer top, String filter) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -465,7 +464,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Integer top, String filter, Context context) { @@ -479,7 +478,7 @@ private PagedFlux listAsync(Integer top, String filter, Context c * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -498,7 +497,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Integer top, String filter, Context context) { @@ -515,7 +514,8 @@ public PagedIterable list(Integer top, String filter, Context con * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -573,7 +573,8 @@ private Mono> listByResourceGroupSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -627,7 +628,7 @@ private Mono> listByResourceGroupSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top, String filter) { @@ -643,7 +644,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -665,7 +666,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync( @@ -682,7 +683,7 @@ private PagedFlux listByResourceGroupAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -702,7 +703,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup( @@ -718,7 +719,7 @@ public PagedIterable listByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -767,7 +768,7 @@ private Mono> getByResourceGroupWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -812,7 +813,7 @@ private Mono> getByResourceGroupWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String workflowName) { @@ -851,7 +852,7 @@ public WorkflowInner getByResourceGroup(String resourceGroupName, String workflo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse( @@ -868,7 +869,7 @@ public Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -924,7 +925,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -976,7 +977,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -1018,7 +1019,7 @@ public WorkflowInner createOrUpdate(String resourceGroupName, String workflowNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -1034,7 +1035,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, String workflowName) { @@ -1082,7 +1083,7 @@ private Mono> updateWithResponseAsync(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -1127,7 +1128,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String workflowName) { @@ -1166,7 +1167,7 @@ public WorkflowInner update(String resourceGroupName, String workflowName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse(String resourceGroupName, String workflowName, Context context) { @@ -1181,7 +1182,7 @@ public Response updateWithResponse(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync(String resourceGroupName, String workflowName) { @@ -1229,7 +1230,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -1274,7 +1275,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String workflowName) { @@ -1304,7 +1305,7 @@ public void delete(String resourceGroupName, String workflowName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String workflowName, Context context) { @@ -1319,7 +1320,7 @@ public Response deleteWithResponse(String resourceGroupName, String workfl * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> disableWithResponseAsync(String resourceGroupName, String workflowName) { @@ -1367,7 +1368,7 @@ private Mono> disableWithResponseAsync(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> disableWithResponseAsync( @@ -1412,7 +1413,7 @@ private Mono> disableWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono disableAsync(String resourceGroupName, String workflowName) { @@ -1442,7 +1443,7 @@ public void disable(String resourceGroupName, String workflowName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response disableWithResponse(String resourceGroupName, String workflowName, Context context) { @@ -1457,7 +1458,7 @@ public Response disableWithResponse(String resourceGroupName, String workf * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> enableWithResponseAsync(String resourceGroupName, String workflowName) { @@ -1505,7 +1506,7 @@ private Mono> enableWithResponseAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> enableWithResponseAsync( @@ -1550,7 +1551,7 @@ private Mono> enableWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono enableAsync(String resourceGroupName, String workflowName) { @@ -1580,7 +1581,7 @@ public void enable(String resourceGroupName, String workflowName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response enableWithResponse(String resourceGroupName, String workflowName, Context context) { @@ -1596,7 +1597,7 @@ public Response enableWithResponse(String resourceGroupName, String workfl * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> generateUpgradedDefinitionWithResponseAsync( @@ -1652,7 +1653,7 @@ private Mono> generateUpgradedDefinitionWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> generateUpgradedDefinitionWithResponseAsync( @@ -1707,7 +1708,7 @@ private Mono> generateUpgradedDefinitionWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return any object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono generateUpgradedDefinitionAsync( @@ -1750,7 +1751,7 @@ public Object generateUpgradedDefinition( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return any object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response generateUpgradedDefinitionWithResponse( @@ -1771,7 +1772,7 @@ public Response generateUpgradedDefinitionWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow callback Url. + * @return the workflow callback Url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -1828,7 +1829,7 @@ private Mono> listCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow callback Url. + * @return the workflow callback Url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -1881,7 +1882,7 @@ private Mono> listCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow callback Url. + * @return the workflow callback Url on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listCallbackUrlAsync( @@ -1924,7 +1925,7 @@ public WorkflowTriggerCallbackUrlInner listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow callback Url. + * @return the workflow callback Url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listCallbackUrlWithResponse( @@ -1940,7 +1941,8 @@ public Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an OpenAPI definition for the workflow. + * @return an OpenAPI definition for the workflow along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSwaggerWithResponseAsync(String resourceGroupName, String workflowName) { @@ -1988,7 +1990,8 @@ private Mono> listSwaggerWithResponseAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an OpenAPI definition for the workflow. + * @return an OpenAPI definition for the workflow along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSwaggerWithResponseAsync( @@ -2033,7 +2036,7 @@ private Mono> listSwaggerWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an OpenAPI definition for the workflow. + * @return an OpenAPI definition for the workflow on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listSwaggerAsync(String resourceGroupName, String workflowName) { @@ -2072,7 +2075,7 @@ public Object listSwagger(String resourceGroupName, String workflowName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an OpenAPI definition for the workflow. + * @return an OpenAPI definition for the workflow along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listSwaggerWithResponse(String resourceGroupName, String workflowName, Context context) { @@ -2088,7 +2091,7 @@ public Response listSwaggerWithResponse(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> moveWithResponseAsync( @@ -2144,7 +2147,7 @@ private Mono>> moveWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> moveWithResponseAsync( @@ -2196,15 +2199,16 @@ private Mono>> moveWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginMoveAsync( String resourceGroupName, String workflowName, WorkflowReference move) { Mono>> mono = moveWithResponseAsync(resourceGroupName, workflowName, move); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -2217,9 +2221,9 @@ private PollerFlux, Void> beginMoveAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginMoveAsync( String resourceGroupName, String workflowName, WorkflowReference move, Context context) { context = this.client.mergeContext(context); @@ -2238,9 +2242,9 @@ private PollerFlux, Void> beginMoveAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginMove( String resourceGroupName, String workflowName, WorkflowReference move) { return beginMoveAsync(resourceGroupName, workflowName, move).getSyncPoller(); @@ -2256,9 +2260,9 @@ public SyncPoller, Void> beginMove( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginMove( String resourceGroupName, String workflowName, WorkflowReference move, Context context) { return beginMoveAsync(resourceGroupName, workflowName, move, context).getSyncPoller(); @@ -2273,7 +2277,7 @@ public SyncPoller, Void> beginMove( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono moveAsync(String resourceGroupName, String workflowName, WorkflowReference move) { @@ -2292,7 +2296,7 @@ private Mono moveAsync(String resourceGroupName, String workflowName, Work * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono moveAsync( @@ -2342,7 +2346,7 @@ public void move(String resourceGroupName, String workflowName, WorkflowReferenc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> regenerateAccessKeyWithResponseAsync( @@ -2398,7 +2402,7 @@ private Mono> regenerateAccessKeyWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> regenerateAccessKeyWithResponseAsync( @@ -2450,7 +2454,7 @@ private Mono> regenerateAccessKeyWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono regenerateAccessKeyAsync( @@ -2484,7 +2488,7 @@ public void regenerateAccessKey(String resourceGroupName, String workflowName, R * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response regenerateAccessKeyWithResponse( @@ -2501,7 +2505,7 @@ public Response regenerateAccessKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> validateByResourceGroupWithResponseAsync( @@ -2557,7 +2561,7 @@ private Mono> validateByResourceGroupWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> validateByResourceGroupWithResponseAsync( @@ -2609,7 +2613,7 @@ private Mono> validateByResourceGroupWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono validateByResourceGroupAsync( @@ -2643,7 +2647,7 @@ public void validateByResourceGroup(String resourceGroupName, String workflowNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response validateByResourceGroupWithResponse( @@ -2661,7 +2665,7 @@ public Response validateByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> validateByLocationWithResponseAsync( @@ -2722,7 +2726,7 @@ private Mono> validateByLocationWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> validateByLocationWithResponseAsync( @@ -2779,7 +2783,7 @@ private Mono> validateByLocationWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono validateByLocationAsync( @@ -2816,7 +2820,7 @@ public void validateByLocation( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response validateByLocationWithResponse( @@ -2832,7 +2836,7 @@ public Response validateByLocationWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflows. + * @return the list of workflows along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -2869,7 +2873,7 @@ private Mono> listBySubscriptionNextSinglePageAsync * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflows. + * @return the list of workflows along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, Context context) { @@ -2904,7 +2908,7 @@ private Mono> listBySubscriptionNextSinglePageAsync * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflows. + * @return the list of workflows along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -2941,7 +2945,7 @@ private Mono> listByResourceGroupNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException 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 workflows. + * @return the list of workflows along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsImpl.java index af3929ac3a2a..9dda4ca5f472 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsImpl.java @@ -19,10 +19,9 @@ import com.azure.resourcemanager.logic.models.WorkflowReference; import com.azure.resourcemanager.logic.models.WorkflowTriggerCallbackUrl; import com.azure.resourcemanager.logic.models.Workflows; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class WorkflowsImpl implements Workflows { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(WorkflowsImpl.class); private final WorkflowsClient innerClient; @@ -218,7 +217,7 @@ public Response validateByLocationWithResponse( public Workflow getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -226,7 +225,7 @@ public Workflow getById(String id) { } String workflowName = Utils.getValueFromIdByName(id, "workflows"); if (workflowName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workflows'.", id))); @@ -237,7 +236,7 @@ public Workflow getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -245,7 +244,7 @@ public Response getByIdWithResponse(String id, Context context) { } String workflowName = Utils.getValueFromIdByName(id, "workflows"); if (workflowName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workflows'.", id))); @@ -256,7 +255,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -264,18 +263,18 @@ public void deleteById(String id) { } String workflowName = Utils.getValueFromIdByName(id, "workflows"); if (workflowName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workflows'.", id))); } - this.deleteWithResponse(resourceGroupName, workflowName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, workflowName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -283,7 +282,7 @@ public Response deleteByIdWithResponse(String id, Context context) { } String workflowName = Utils.getValueFromIdByName(id, "workflows"); if (workflowName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workflows'.", id))); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2AcknowledgementConnectionSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2AcknowledgementConnectionSettings.java index 0e65dca161e1..acce55d0a0ca 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2AcknowledgementConnectionSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2AcknowledgementConnectionSettings.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The AS2 agreement acknowledgement connection settings. */ @Fluent public final class AS2AcknowledgementConnectionSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AS2AcknowledgementConnectionSettings.class); - /* * Indicates whether to ignore mismatch in certificate name. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2AgreementContent.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2AgreementContent.java index ead7813433eb..78dd6ae92f0f 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2AgreementContent.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2AgreementContent.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The integration account AS2 agreement content. */ @Fluent public final class AS2AgreementContent { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AS2AgreementContent.class); - /* * The AS2 one-way receive agreement. */ @@ -73,7 +70,7 @@ public AS2AgreementContent withSendAgreement(AS2OneWayAgreement sendAgreement) { */ public void validate() { if (receiveAgreement() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property receiveAgreement in model AS2AgreementContent")); @@ -81,7 +78,7 @@ public void validate() { receiveAgreement().validate(); } if (sendAgreement() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property sendAgreement in model AS2AgreementContent")); @@ -89,4 +86,6 @@ public void validate() { sendAgreement().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(AS2AgreementContent.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2EnvelopeSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2EnvelopeSettings.java index 5f56df70e436..3edba955dee4 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2EnvelopeSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2EnvelopeSettings.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The AS2 agreement envelope settings. */ @Fluent public final class AS2EnvelopeSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AS2EnvelopeSettings.class); - /* * The message content type. */ @@ -155,16 +152,18 @@ public AS2EnvelopeSettings withAutogenerateFileName(boolean autogenerateFileName */ public void validate() { if (messageContentType() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property messageContentType in model AS2EnvelopeSettings")); } if (fileNameTemplate() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property fileNameTemplate in model AS2EnvelopeSettings")); } } + + private static final ClientLogger LOGGER = new ClientLogger(AS2EnvelopeSettings.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2ErrorSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2ErrorSettings.java index 53af3d50875a..32d443549bed 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2ErrorSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2ErrorSettings.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The AS2 agreement error settings. */ @Fluent public final class AS2ErrorSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AS2ErrorSettings.class); - /* * The value indicating whether to suspend duplicate message. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2MdnSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2MdnSettings.java index 2b33bcf0913b..d73af65fbd94 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2MdnSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2MdnSettings.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The AS2 agreement mdn settings. */ @Fluent public final class AS2MdnSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AS2MdnSettings.class); - /* * The value indicating whether to send or request a MDN. */ @@ -255,10 +252,12 @@ public AS2MdnSettings withMicHashingAlgorithm(HashingAlgorithm micHashingAlgorit */ public void validate() { if (micHashingAlgorithm() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property micHashingAlgorithm in model AS2MdnSettings")); } } + + private static final ClientLogger LOGGER = new ClientLogger(AS2MdnSettings.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2MessageConnectionSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2MessageConnectionSettings.java index 9169398bfb7e..2a6a046ce1a0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2MessageConnectionSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2MessageConnectionSettings.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The AS2 agreement message connection settings. */ @Fluent public final class AS2MessageConnectionSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AS2MessageConnectionSettings.class); - /* * The value indicating whether to ignore mismatch in certificate name. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2OneWayAgreement.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2OneWayAgreement.java index 9f554df56bd2..f165991bd4e2 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2OneWayAgreement.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2OneWayAgreement.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The integration account AS2 one-way agreement. */ @Fluent public final class AS2OneWayAgreement { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AS2OneWayAgreement.class); - /* * The sender business identity */ @@ -99,7 +96,7 @@ public AS2OneWayAgreement withProtocolSettings(AS2ProtocolSettings protocolSetti */ public void validate() { if (senderBusinessIdentity() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property senderBusinessIdentity in model AS2OneWayAgreement")); @@ -107,7 +104,7 @@ public void validate() { senderBusinessIdentity().validate(); } if (receiverBusinessIdentity() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property receiverBusinessIdentity in model AS2OneWayAgreement")); @@ -115,7 +112,7 @@ public void validate() { receiverBusinessIdentity().validate(); } if (protocolSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property protocolSettings in model AS2OneWayAgreement")); @@ -123,4 +120,6 @@ public void validate() { protocolSettings().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(AS2OneWayAgreement.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2ProtocolSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2ProtocolSettings.java index 0fd85c4406a4..96020a48c565 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2ProtocolSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2ProtocolSettings.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The AS2 agreement protocol settings. */ @Fluent public final class AS2ProtocolSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AS2ProtocolSettings.class); - /* * The message connection settings. */ @@ -204,7 +201,7 @@ public AS2ProtocolSettings withErrorSettings(AS2ErrorSettings errorSettings) { */ public void validate() { if (messageConnectionSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property messageConnectionSettings in model AS2ProtocolSettings")); @@ -212,7 +209,7 @@ public void validate() { messageConnectionSettings().validate(); } if (acknowledgementConnectionSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property acknowledgementConnectionSettings in model AS2ProtocolSettings")); @@ -220,14 +217,14 @@ public void validate() { acknowledgementConnectionSettings().validate(); } if (mdnSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property mdnSettings in model AS2ProtocolSettings")); } else { mdnSettings().validate(); } if (securitySettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property securitySettings in model AS2ProtocolSettings")); @@ -235,7 +232,7 @@ public void validate() { securitySettings().validate(); } if (validationSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property validationSettings in model AS2ProtocolSettings")); @@ -243,7 +240,7 @@ public void validate() { validationSettings().validate(); } if (envelopeSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property envelopeSettings in model AS2ProtocolSettings")); @@ -251,7 +248,7 @@ public void validate() { envelopeSettings().validate(); } if (errorSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property errorSettings in model AS2ProtocolSettings")); @@ -259,4 +256,6 @@ public void validate() { errorSettings().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(AS2ProtocolSettings.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2SecuritySettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2SecuritySettings.java index 31a71a1632aa..d0431c4ef250 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2SecuritySettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2SecuritySettings.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The AS2 agreement security settings. */ @Fluent public final class AS2SecuritySettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AS2SecuritySettings.class); - /* * The value indicating whether to send or request a MDN. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2ValidationSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2ValidationSettings.java index 836ec8a51e21..eea22b907881 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2ValidationSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AS2ValidationSettings.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The AS2 agreement validation settings. */ @Fluent public final class AS2ValidationSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AS2ValidationSettings.class); - /* * The value indicating whether to override incoming message properties * with those in agreement. @@ -292,10 +289,12 @@ public AS2ValidationSettings withSigningAlgorithm(SigningAlgorithm signingAlgori */ public void validate() { if (encryptionAlgorithm() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property encryptionAlgorithm in model AS2ValidationSettings")); } } + + private static final ClientLogger LOGGER = new ClientLogger(AS2ValidationSettings.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AgreementContent.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AgreementContent.java index 6b68480db863..5d097d1aac08 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AgreementContent.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AgreementContent.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The integration account agreement content. */ @Fluent public final class AgreementContent { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AgreementContent.class); - /* * The AS2 agreement content. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiDeploymentParameterMetadata.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiDeploymentParameterMetadata.java index 0ed69ecd5e01..864a221a6d52 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiDeploymentParameterMetadata.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiDeploymentParameterMetadata.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The API deployment parameter metadata. */ @Fluent public final class ApiDeploymentParameterMetadata { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiDeploymentParameterMetadata.class); - /* * The type. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiDeploymentParameterMetadataSet.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiDeploymentParameterMetadataSet.java index f06ae5b98116..78794e516baf 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiDeploymentParameterMetadataSet.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiDeploymentParameterMetadataSet.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The API deployment parameters metadata. */ @Fluent public final class ApiDeploymentParameterMetadataSet { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiDeploymentParameterMetadataSet.class); - /* * The package content link parameter. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationAnnotation.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationAnnotation.java index 24318a6a41e7..87d691e9cb33 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationAnnotation.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationAnnotation.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Api Operation Annotation. */ @Fluent public final class ApiOperationAnnotation { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiOperationAnnotation.class); - /* * The status annotation. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationListResult.java index a85187e8a482..a5ca33a931a4 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.ApiOperationInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of managed API operations. */ @Fluent public final class ApiOperationListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiOperationListResult.class); - /* * The api operation definitions for an API. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationPropertiesDefinition.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationPropertiesDefinition.java index 2092e2800fc4..19adb0ea868a 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationPropertiesDefinition.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationPropertiesDefinition.java @@ -5,16 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The api operations properties. */ @Fluent public final class ApiOperationPropertiesDefinition { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiOperationPropertiesDefinition.class); - /* * The summary of the api operation. */ @@ -73,6 +70,7 @@ public final class ApiOperationPropertiesDefinition { * The operation responses definition schemas. */ @JsonProperty(value = "responsesDefinition") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map responsesDefinition; /* diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiReference.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiReference.java index faea6d5c6be7..ea1ca6c8140c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiReference.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiReference.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Api reference. */ @Fluent public final class ApiReference extends ResourceReference { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiReference.class); - /* * The display name of the api. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceBackendService.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceBackendService.java index b56a0925dc4b..2f18f5e15c4c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceBackendService.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceBackendService.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The API backend service. */ @Fluent public final class ApiResourceBackendService { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiResourceBackendService.class); - /* * The service URL. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceDefinitions.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceDefinitions.java index df9595c8797a..95f1ba1965fa 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceDefinitions.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceDefinitions.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Api resource definition. */ @Fluent public final class ApiResourceDefinitions { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiResourceDefinitions.class); - /* * The original swagger url. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceGeneralInformation.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceGeneralInformation.java index ec903dc9b9d9..d134638fd7d3 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceGeneralInformation.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceGeneralInformation.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The API general information. */ @Fluent public final class ApiResourceGeneralInformation { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiResourceGeneralInformation.class); - /* * The icon url. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceMetadata.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceMetadata.java index 453d757b220b..1119e1b2ea90 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceMetadata.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceMetadata.java @@ -5,16 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The api resource metadata. */ @Fluent public final class ApiResourceMetadata { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiResourceMetadata.class); - /* * The source. */ @@ -37,6 +34,7 @@ public final class ApiResourceMetadata { * The tags. */ @JsonProperty(value = "tags") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; /* diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourcePolicies.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourcePolicies.java index 4fcbd48a7087..396c4a8ee7e4 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourcePolicies.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourcePolicies.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The API resource policies. */ @Fluent public final class ApiResourcePolicies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiResourcePolicies.class); - /* * The API level only policies XML as embedded content. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceProperties.java index 1ce23b2f6090..25a02b415f23 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceProperties.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceProperties.java @@ -5,75 +5,73 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; /** The API resource properties. */ @Fluent -public final class ApiResourceProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiResourceProperties.class); - +public class ApiResourceProperties { /* * The name */ - @JsonProperty(value = "name") + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* * The connection parameters. */ - @JsonProperty(value = "connectionParameters") + @JsonProperty(value = "connectionParameters", access = JsonProperty.Access.WRITE_ONLY) + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map connectionParameters; /* * The metadata. */ - @JsonProperty(value = "metadata") + @JsonProperty(value = "metadata", access = JsonProperty.Access.WRITE_ONLY) private ApiResourceMetadata metadata; /* * The runtime urls. */ - @JsonProperty(value = "runtimeUrls") + @JsonProperty(value = "runtimeUrls", access = JsonProperty.Access.WRITE_ONLY) private List runtimeUrls; /* * The api general information. */ - @JsonProperty(value = "generalInformation") + @JsonProperty(value = "generalInformation", access = JsonProperty.Access.WRITE_ONLY) private ApiResourceGeneralInformation generalInformation; /* * The capabilities. */ - @JsonProperty(value = "capabilities") + @JsonProperty(value = "capabilities", access = JsonProperty.Access.WRITE_ONLY) private List capabilities; /* * The backend service. */ - @JsonProperty(value = "backendService") + @JsonProperty(value = "backendService", access = JsonProperty.Access.WRITE_ONLY) private ApiResourceBackendService backendService; /* * The policies for the API. */ - @JsonProperty(value = "policies") + @JsonProperty(value = "policies", access = JsonProperty.Access.WRITE_ONLY) private ApiResourcePolicies policies; /* * The API definition. */ - @JsonProperty(value = "apiDefinitionUrl") + @JsonProperty(value = "apiDefinitionUrl", access = JsonProperty.Access.WRITE_ONLY) private String apiDefinitionUrl; /* * The api definitions. */ - @JsonProperty(value = "apiDefinitions") + @JsonProperty(value = "apiDefinitions", access = JsonProperty.Access.WRITE_ONLY) private ApiResourceDefinitions apiDefinitions; /* @@ -85,13 +83,13 @@ public final class ApiResourceProperties { /* * The provisioning state. */ - @JsonProperty(value = "provisioningState") + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private WorkflowProvisioningState provisioningState; /* * The category. */ - @JsonProperty(value = "category") + @JsonProperty(value = "category", access = JsonProperty.Access.WRITE_ONLY) private ApiTier category; /** @@ -103,17 +101,6 @@ public String name() { return this.name; } - /** - * Set the name property: The name. - * - * @param name the name value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withName(String name) { - this.name = name; - return this; - } - /** * Get the connectionParameters property: The connection parameters. * @@ -123,17 +110,6 @@ public Map connectionParameters() { return this.connectionParameters; } - /** - * Set the connectionParameters property: The connection parameters. - * - * @param connectionParameters the connectionParameters value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withConnectionParameters(Map connectionParameters) { - this.connectionParameters = connectionParameters; - return this; - } - /** * Get the metadata property: The metadata. * @@ -143,17 +119,6 @@ public ApiResourceMetadata metadata() { return this.metadata; } - /** - * Set the metadata property: The metadata. - * - * @param metadata the metadata value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withMetadata(ApiResourceMetadata metadata) { - this.metadata = metadata; - return this; - } - /** * Get the runtimeUrls property: The runtime urls. * @@ -163,17 +128,6 @@ public List runtimeUrls() { return this.runtimeUrls; } - /** - * Set the runtimeUrls property: The runtime urls. - * - * @param runtimeUrls the runtimeUrls value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withRuntimeUrls(List runtimeUrls) { - this.runtimeUrls = runtimeUrls; - return this; - } - /** * Get the generalInformation property: The api general information. * @@ -183,17 +137,6 @@ public ApiResourceGeneralInformation generalInformation() { return this.generalInformation; } - /** - * Set the generalInformation property: The api general information. - * - * @param generalInformation the generalInformation value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withGeneralInformation(ApiResourceGeneralInformation generalInformation) { - this.generalInformation = generalInformation; - return this; - } - /** * Get the capabilities property: The capabilities. * @@ -203,17 +146,6 @@ public List capabilities() { return this.capabilities; } - /** - * Set the capabilities property: The capabilities. - * - * @param capabilities the capabilities value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withCapabilities(List capabilities) { - this.capabilities = capabilities; - return this; - } - /** * Get the backendService property: The backend service. * @@ -223,17 +155,6 @@ public ApiResourceBackendService backendService() { return this.backendService; } - /** - * Set the backendService property: The backend service. - * - * @param backendService the backendService value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withBackendService(ApiResourceBackendService backendService) { - this.backendService = backendService; - return this; - } - /** * Get the policies property: The policies for the API. * @@ -243,17 +164,6 @@ public ApiResourcePolicies policies() { return this.policies; } - /** - * Set the policies property: The policies for the API. - * - * @param policies the policies value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withPolicies(ApiResourcePolicies policies) { - this.policies = policies; - return this; - } - /** * Get the apiDefinitionUrl property: The API definition. * @@ -263,17 +173,6 @@ public String apiDefinitionUrl() { return this.apiDefinitionUrl; } - /** - * Set the apiDefinitionUrl property: The API definition. - * - * @param apiDefinitionUrl the apiDefinitionUrl value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withApiDefinitionUrl(String apiDefinitionUrl) { - this.apiDefinitionUrl = apiDefinitionUrl; - return this; - } - /** * Get the apiDefinitions property: The api definitions. * @@ -283,17 +182,6 @@ public ApiResourceDefinitions apiDefinitions() { return this.apiDefinitions; } - /** - * Set the apiDefinitions property: The api definitions. - * - * @param apiDefinitions the apiDefinitions value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withApiDefinitions(ApiResourceDefinitions apiDefinitions) { - this.apiDefinitions = apiDefinitions; - return this; - } - /** * Get the integrationServiceEnvironment property: The integration service environment reference. * @@ -323,17 +211,6 @@ public WorkflowProvisioningState provisioningState() { return this.provisioningState; } - /** - * Set the provisioningState property: The provisioning state. - * - * @param provisioningState the provisioningState value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withProvisioningState(WorkflowProvisioningState provisioningState) { - this.provisioningState = provisioningState; - return this; - } - /** * Get the category property: The category. * @@ -343,17 +220,6 @@ public ApiTier category() { return this.category; } - /** - * Set the category property: The category. - * - * @param category the category value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withCategory(ApiTier category) { - this.category = category; - return this; - } - /** * Validates the instance. * diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactContentPropertiesDefinition.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactContentPropertiesDefinition.java index a58b41779a1b..4c3c0fcfd9e8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactContentPropertiesDefinition.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactContentPropertiesDefinition.java @@ -5,18 +5,14 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The artifact content properties definition. */ @Fluent public class ArtifactContentPropertiesDefinition extends ArtifactProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ArtifactContentPropertiesDefinition.class); - /* - * Any object + * Anything */ @JsonProperty(value = "content") private Object content; @@ -34,7 +30,7 @@ public class ArtifactContentPropertiesDefinition extends ArtifactProperties { private ContentLink contentLink; /** - * Get the content property: Any object. + * Get the content property: Anything. * * @return the content value. */ @@ -43,7 +39,7 @@ public Object content() { } /** - * Set the content property: Any object. + * Set the content property: Anything. * * @param content the content value to set. * @return the ArtifactContentPropertiesDefinition object itself. diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactProperties.java index 24ea3a8fa0c5..b7de0b1a619e 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactProperties.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The artifact properties definition. */ @Fluent public class ArtifactProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ArtifactProperties.class); - /* * The artifact creation time. */ @@ -28,7 +24,7 @@ public class ArtifactProperties { private OffsetDateTime changedTime; /* - * Any object + * Anything */ @JsonProperty(value = "metadata") private Object metadata; @@ -74,7 +70,7 @@ public ArtifactProperties withChangedTime(OffsetDateTime changedTime) { } /** - * Get the metadata property: Any object. + * Get the metadata property: Anything. * * @return the metadata value. */ @@ -83,7 +79,7 @@ public Object metadata() { } /** - * Set the metadata property: Any object. + * Set the metadata property: Anything. * * @param metadata the metadata value to set. * @return the ArtifactProperties object itself. diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyCollection.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyCollection.java index c44d592083c2..cfa949aacb9a 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyCollection.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyCollection.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.AssemblyDefinitionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A collection of assembly definitions. */ @Fluent public final class AssemblyCollection { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AssemblyCollection.class); - /* * The value property. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyDefinition.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyDefinition.java index edcd51a5334c..38d55e9cdfc1 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyDefinition.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyDefinition.java @@ -236,7 +236,7 @@ interface WithProperties { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url for an integration account assembly. + * @return the content callback url for an integration account assembly along with {@link Response}. */ Response listContentCallbackUrlWithResponse(Context context); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyProperties.java index b62e38ad8709..bc03680ae102 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyProperties.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyProperties.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The assembly properties definition. */ @Fluent public final class AssemblyProperties extends ArtifactContentPropertiesDefinition { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AssemblyProperties.class); - /* * The assembly name. */ @@ -170,9 +167,11 @@ public AssemblyProperties withMetadata(Object metadata) { public void validate() { super.validate(); if (assemblyName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property assemblyName in model AssemblyProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(AssemblyProperties.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AzureResourceErrorInfo.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AzureResourceErrorInfo.java index 5baa8f806b16..3a4bf37f06dc 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AzureResourceErrorInfo.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AzureResourceErrorInfo.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The azure resource error info. */ @Fluent public final class AzureResourceErrorInfo extends ErrorInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureResourceErrorInfo.class); - /* * The error message. */ @@ -83,7 +80,7 @@ public AzureResourceErrorInfo withCode(String code) { public void validate() { super.validate(); if (message() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property message in model AzureResourceErrorInfo")); } @@ -91,4 +88,6 @@ public void validate() { details().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(AzureResourceErrorInfo.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/B2BPartnerContent.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/B2BPartnerContent.java index 02136e7b5155..5ea144baba54 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/B2BPartnerContent.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/B2BPartnerContent.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The B2B partner content. */ @Fluent public final class B2BPartnerContent { - @JsonIgnore private final ClientLogger logger = new ClientLogger(B2BPartnerContent.class); - /* * The list of partner business identities. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BatchConfigurationCollection.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BatchConfigurationCollection.java index fb77440bbb8d..add7ac517ac7 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BatchConfigurationCollection.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BatchConfigurationCollection.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.BatchConfigurationInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A collection of batch configurations. */ @Fluent public final class BatchConfigurationCollection { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BatchConfigurationCollection.class); - /* * The value property. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BatchConfigurationProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BatchConfigurationProperties.java index b0a251880144..770acc678a6d 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BatchConfigurationProperties.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BatchConfigurationProperties.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The batch configuration properties definition. */ @Fluent public final class BatchConfigurationProperties extends ArtifactProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BatchConfigurationProperties.class); - /* * The name of the batch group. */ @@ -97,13 +94,13 @@ public BatchConfigurationProperties withMetadata(Object metadata) { public void validate() { super.validate(); if (batchGroupName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property batchGroupName in model BatchConfigurationProperties")); } if (releaseCriteria() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property releaseCriteria in model BatchConfigurationProperties")); @@ -111,4 +108,6 @@ public void validate() { releaseCriteria().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(BatchConfigurationProperties.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BatchReleaseCriteria.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BatchReleaseCriteria.java index a7f8e7c824f0..af8d7f6a520e 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BatchReleaseCriteria.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BatchReleaseCriteria.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The batch release criteria. */ @Fluent public final class BatchReleaseCriteria { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BatchReleaseCriteria.class); - /* * The message count. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BusinessIdentity.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BusinessIdentity.java index eeeccbe92734..a26eb2a5a757 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BusinessIdentity.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/BusinessIdentity.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The integration account partner's business identity. */ @Fluent public class BusinessIdentity { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BusinessIdentity.class); - /* * The business identity qualifier e.g. as2identity, ZZ, ZZZ, 31, 32 */ @@ -73,14 +70,16 @@ public BusinessIdentity withValue(String value) { */ public void validate() { if (qualifier() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property qualifier in model BusinessIdentity")); } if (value() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property value in model BusinessIdentity")); } } + + private static final ClientLogger LOGGER = new ClientLogger(BusinessIdentity.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ContentHash.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ContentHash.java index 40f8b012bded..c46c5f1f36a6 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ContentHash.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ContentHash.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The content hash. */ @Fluent public final class ContentHash { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ContentHash.class); - /* * The algorithm of the content hash. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ContentLink.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ContentLink.java index bab3116ab323..acbc32d44581 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ContentLink.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ContentLink.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The content link. */ @Fluent public final class ContentLink { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ContentLink.class); - /* * The content link URI. */ @@ -23,25 +19,25 @@ public final class ContentLink { /* * The content version. */ - @JsonProperty(value = "contentVersion") + @JsonProperty(value = "contentVersion", access = JsonProperty.Access.WRITE_ONLY) private String contentVersion; /* * The content size. */ - @JsonProperty(value = "contentSize") + @JsonProperty(value = "contentSize", access = JsonProperty.Access.WRITE_ONLY) private Long contentSize; /* * The content hash. */ - @JsonProperty(value = "contentHash") + @JsonProperty(value = "contentHash", access = JsonProperty.Access.WRITE_ONLY) private ContentHash contentHash; /* * The metadata. */ - @JsonProperty(value = "metadata") + @JsonProperty(value = "metadata", access = JsonProperty.Access.WRITE_ONLY) private Object metadata; /** @@ -73,17 +69,6 @@ public String contentVersion() { return this.contentVersion; } - /** - * Set the contentVersion property: The content version. - * - * @param contentVersion the contentVersion value to set. - * @return the ContentLink object itself. - */ - public ContentLink withContentVersion(String contentVersion) { - this.contentVersion = contentVersion; - return this; - } - /** * Get the contentSize property: The content size. * @@ -93,17 +78,6 @@ public Long contentSize() { return this.contentSize; } - /** - * Set the contentSize property: The content size. - * - * @param contentSize the contentSize value to set. - * @return the ContentLink object itself. - */ - public ContentLink withContentSize(Long contentSize) { - this.contentSize = contentSize; - return this; - } - /** * Get the contentHash property: The content hash. * @@ -113,17 +87,6 @@ public ContentHash contentHash() { return this.contentHash; } - /** - * Set the contentHash property: The content hash. - * - * @param contentHash the contentHash value to set. - * @return the ContentLink object itself. - */ - public ContentLink withContentHash(ContentHash contentHash) { - this.contentHash = contentHash; - return this; - } - /** * Get the metadata property: The metadata. * @@ -133,17 +96,6 @@ public Object metadata() { return this.metadata; } - /** - * Set the metadata property: The metadata. - * - * @param metadata the metadata value to set. - * @return the ContentLink object itself. - */ - public ContentLink withMetadata(Object metadata) { - this.metadata = metadata; - return this; - } - /** * Validates the instance. * diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Correlation.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Correlation.java index 49c118d82f3e..400e70457618 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Correlation.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Correlation.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The correlation property. */ @Fluent public final class Correlation { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Correlation.class); - /* * The client tracking id. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactAcknowledgementSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactAcknowledgementSettings.java index da767042f6a5..892f450d0a22 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactAcknowledgementSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactAcknowledgementSettings.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Edifact agreement acknowledgement settings. */ @Fluent public final class EdifactAcknowledgementSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EdifactAcknowledgementSettings.class); - /* * The value indicating whether technical acknowledgement is needed. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactAgreementContent.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactAgreementContent.java index d0afc82004f9..1360398195ab 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactAgreementContent.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactAgreementContent.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Edifact agreement content. */ @Fluent public final class EdifactAgreementContent { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EdifactAgreementContent.class); - /* * The EDIFACT one-way receive agreement. */ @@ -73,7 +70,7 @@ public EdifactAgreementContent withSendAgreement(EdifactOneWayAgreement sendAgre */ public void validate() { if (receiveAgreement() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property receiveAgreement in model EdifactAgreementContent")); @@ -81,7 +78,7 @@ public void validate() { receiveAgreement().validate(); } if (sendAgreement() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property sendAgreement in model EdifactAgreementContent")); @@ -89,4 +86,6 @@ public void validate() { sendAgreement().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(EdifactAgreementContent.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactDelimiterOverride.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactDelimiterOverride.java index 87a5ea6a3c33..9107fe9b6d85 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactDelimiterOverride.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactDelimiterOverride.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Edifact delimiter override settings. */ @Fluent public final class EdifactDelimiterOverride { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EdifactDelimiterOverride.class); - /* * The message id. */ @@ -333,16 +330,18 @@ public EdifactDelimiterOverride withTargetNamespace(String targetNamespace) { */ public void validate() { if (segmentTerminatorSuffix() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property segmentTerminatorSuffix in model EdifactDelimiterOverride")); } if (decimalPointIndicator() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property decimalPointIndicator in model EdifactDelimiterOverride")); } } + + private static final ClientLogger LOGGER = new ClientLogger(EdifactDelimiterOverride.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactEnvelopeOverride.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactEnvelopeOverride.java index b9269c480acb..6c734e6c9f20 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactEnvelopeOverride.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactEnvelopeOverride.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Edifact envelope override settings. */ @Fluent public final class EdifactEnvelopeOverride { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EdifactEnvelopeOverride.class); - /* * The message id on which this envelope settings has to be applied. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactEnvelopeSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactEnvelopeSettings.java index 89cdce88ea1d..ffd27b1d555c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactEnvelopeSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactEnvelopeSettings.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Edifact agreement envelope settings. */ @Fluent public final class EdifactEnvelopeSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EdifactEnvelopeSettings.class); - /* * The group association assigned code. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactFramingSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactFramingSettings.java index e6e6ad1e871c..ba3f63394cd1 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactFramingSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactFramingSettings.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Edifact agreement framing settings. */ @Fluent public final class EdifactFramingSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EdifactFramingSettings.class); - /* * The service code list directory version. */ @@ -307,22 +304,24 @@ public EdifactFramingSettings withSegmentTerminatorSuffix(SegmentTerminatorSuffi */ public void validate() { if (characterSet() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property characterSet in model EdifactFramingSettings")); } if (decimalPointIndicator() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property decimalPointIndicator in model EdifactFramingSettings")); } if (segmentTerminatorSuffix() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property segmentTerminatorSuffix in model EdifactFramingSettings")); } } + + private static final ClientLogger LOGGER = new ClientLogger(EdifactFramingSettings.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactMessageFilter.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactMessageFilter.java index b8078ab1f400..c4248416ac87 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactMessageFilter.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactMessageFilter.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Edifact message filter for odata query. */ @Fluent public final class EdifactMessageFilter { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EdifactMessageFilter.class); - /* * The message filter type. */ @@ -47,10 +44,12 @@ public EdifactMessageFilter withMessageFilterType(MessageFilterType messageFilte */ public void validate() { if (messageFilterType() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property messageFilterType in model EdifactMessageFilter")); } } + + private static final ClientLogger LOGGER = new ClientLogger(EdifactMessageFilter.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactMessageIdentifier.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactMessageIdentifier.java index dc04d4f9ba23..1af31c8b54c4 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactMessageIdentifier.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactMessageIdentifier.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Edifact message identifier. */ @Fluent public final class EdifactMessageIdentifier { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EdifactMessageIdentifier.class); - /* * The message id on which this envelope settings has to be applied. */ @@ -47,10 +44,12 @@ public EdifactMessageIdentifier withMessageId(String messageId) { */ public void validate() { if (messageId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property messageId in model EdifactMessageIdentifier")); } } + + private static final ClientLogger LOGGER = new ClientLogger(EdifactMessageIdentifier.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactOneWayAgreement.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactOneWayAgreement.java index 7c1c1c8ae4a2..1cd4f9af2c36 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactOneWayAgreement.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactOneWayAgreement.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Edifact one way agreement. */ @Fluent public final class EdifactOneWayAgreement { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EdifactOneWayAgreement.class); - /* * The sender business identity */ @@ -99,7 +96,7 @@ public EdifactOneWayAgreement withProtocolSettings(EdifactProtocolSettings proto */ public void validate() { if (senderBusinessIdentity() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property senderBusinessIdentity in model EdifactOneWayAgreement")); @@ -107,7 +104,7 @@ public void validate() { senderBusinessIdentity().validate(); } if (receiverBusinessIdentity() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property receiverBusinessIdentity in model EdifactOneWayAgreement")); @@ -115,7 +112,7 @@ public void validate() { receiverBusinessIdentity().validate(); } if (protocolSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property protocolSettings in model EdifactOneWayAgreement")); @@ -123,4 +120,6 @@ public void validate() { protocolSettings().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(EdifactOneWayAgreement.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactProcessingSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactProcessingSettings.java index 3394fd162400..447bfc3c8be1 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactProcessingSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactProcessingSettings.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Edifact agreement protocol settings. */ @Fluent public final class EdifactProcessingSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EdifactProcessingSettings.class); - /* * The value indicating whether to mask security information. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactProtocolSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactProtocolSettings.java index bc1d10d57a53..d2b53add2364 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactProtocolSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactProtocolSettings.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The Edifact agreement protocol settings. */ @Fluent public final class EdifactProtocolSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EdifactProtocolSettings.class); - /* * The EDIFACT validation settings. */ @@ -309,7 +306,7 @@ public EdifactProtocolSettings withEdifactDelimiterOverrides( */ public void validate() { if (validationSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property validationSettings in model EdifactProtocolSettings")); @@ -317,7 +314,7 @@ public void validate() { validationSettings().validate(); } if (framingSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property framingSettings in model EdifactProtocolSettings")); @@ -325,7 +322,7 @@ public void validate() { framingSettings().validate(); } if (envelopeSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property envelopeSettings in model EdifactProtocolSettings")); @@ -333,7 +330,7 @@ public void validate() { envelopeSettings().validate(); } if (acknowledgementSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property acknowledgementSettings in model EdifactProtocolSettings")); @@ -341,7 +338,7 @@ public void validate() { acknowledgementSettings().validate(); } if (messageFilter() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property messageFilter in model EdifactProtocolSettings")); @@ -349,7 +346,7 @@ public void validate() { messageFilter().validate(); } if (processingSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property processingSettings in model EdifactProtocolSettings")); @@ -363,7 +360,7 @@ public void validate() { messageFilterList().forEach(e -> e.validate()); } if (schemaReferences() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property schemaReferences in model EdifactProtocolSettings")); @@ -377,4 +374,6 @@ public void validate() { edifactDelimiterOverrides().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(EdifactProtocolSettings.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactSchemaReference.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactSchemaReference.java index 54f193eb95b3..1fa5034dfbc3 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactSchemaReference.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactSchemaReference.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Edifact schema reference. */ @Fluent public final class EdifactSchemaReference { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EdifactSchemaReference.class); - /* * The message id. */ @@ -203,28 +200,30 @@ public EdifactSchemaReference withSchemaName(String schemaName) { */ public void validate() { if (messageId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property messageId in model EdifactSchemaReference")); } if (messageVersion() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property messageVersion in model EdifactSchemaReference")); } if (messageRelease() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property messageRelease in model EdifactSchemaReference")); } if (schemaName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property schemaName in model EdifactSchemaReference")); } } + + private static final ClientLogger LOGGER = new ClientLogger(EdifactSchemaReference.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactValidationOverride.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactValidationOverride.java index 0fed78f7ce47..b1a44f4945a8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactValidationOverride.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactValidationOverride.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Edifact validation override settings. */ @Fluent public final class EdifactValidationOverride { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EdifactValidationOverride.class); - /* * The message id on which the validation settings has to be applied. */ @@ -211,16 +208,18 @@ public EdifactValidationOverride withTrimLeadingAndTrailingSpacesAndZeroes( */ public void validate() { if (messageId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property messageId in model EdifactValidationOverride")); } if (trailingSeparatorPolicy() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property trailingSeparatorPolicy in model EdifactValidationOverride")); } } + + private static final ClientLogger LOGGER = new ClientLogger(EdifactValidationOverride.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactValidationSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactValidationSettings.java index 3359fafb774d..ef355b3fab50 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactValidationSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/EdifactValidationSettings.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The Edifact agreement validation settings. */ @Fluent public final class EdifactValidationSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EdifactValidationSettings.class); - /* * The value indicating whether to validate character set in the message. */ @@ -301,10 +298,12 @@ public EdifactValidationSettings withTrailingSeparatorPolicy(TrailingSeparatorPo */ public void validate() { if (trailingSeparatorPolicy() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property trailingSeparatorPolicy in model EdifactValidationSettings")); } } + + private static final ClientLogger LOGGER = new ClientLogger(EdifactValidationSettings.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ErrorInfo.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ErrorInfo.java index b8ab02492737..f9d1864d9559 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ErrorInfo.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ErrorInfo.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The error info. */ @Fluent public class ErrorInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ErrorInfo.class); - /* * The error code. */ @@ -47,8 +44,10 @@ public ErrorInfo withCode(String code) { */ public void validate() { if (code() == null) { - throw logger + throw LOGGER .logExceptionAsError(new IllegalArgumentException("Missing required property code in model ErrorInfo")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ErrorInfo.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Expression.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Expression.java index e936c2978a82..73068c472035 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Expression.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Expression.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The expression. */ @Fluent public class Expression { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Expression.class); - /* * The text. */ @@ -22,7 +18,7 @@ public class Expression { private String text; /* - * Any object + * Anything */ @JsonProperty(value = "value") private Object value; @@ -60,7 +56,7 @@ public Expression withText(String text) { } /** - * Get the value property: Any object. + * Get the value property: Anything. * * @return the value value. */ @@ -69,7 +65,7 @@ public Object value() { } /** - * Set the value property: Any object. + * Set the value property: Anything. * * @param value the value value to set. * @return the Expression object itself. diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ExpressionRoot.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ExpressionRoot.java index 2629e2fb5bb4..02d1326811c2 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ExpressionRoot.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ExpressionRoot.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The expression root. */ @Fluent public final class ExpressionRoot extends Expression { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExpressionRoot.class); - /* * The path. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ExpressionTraces.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ExpressionTraces.java index 219f3b2426ab..d52cad240474 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ExpressionTraces.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ExpressionTraces.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The expression traces. */ @Fluent public final class ExpressionTraces { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExpressionTraces.class); - /* * The inputs property. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ExtendedErrorInfo.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ExtendedErrorInfo.java index 1701f5ab253d..7098d6b2cc64 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ExtendedErrorInfo.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ExtendedErrorInfo.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The extended error info. */ @Fluent public final class ExtendedErrorInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ExtendedErrorInfo.class); - /* * The error code. */ @@ -126,12 +123,12 @@ public ExtendedErrorInfo withInnerError(Object innerError) { */ public void validate() { if (code() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property code in model ExtendedErrorInfo")); } if (message() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property message in model ExtendedErrorInfo")); } @@ -139,4 +136,6 @@ public void validate() { details().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(ExtendedErrorInfo.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowAccessControlConfiguration.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowAccessControlConfiguration.java index 56800fdf2941..319d1886d3e9 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowAccessControlConfiguration.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowAccessControlConfiguration.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The access control configuration. */ @Fluent public final class FlowAccessControlConfiguration { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FlowAccessControlConfiguration.class); - /* * The access control configuration for invoking workflow triggers. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowAccessControlConfigurationPolicy.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowAccessControlConfigurationPolicy.java index f9f873fd8888..24accdb5ead4 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowAccessControlConfigurationPolicy.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowAccessControlConfigurationPolicy.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The access control configuration policy. */ @Fluent public final class FlowAccessControlConfigurationPolicy { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FlowAccessControlConfigurationPolicy.class); - /* * The allowed caller IP address ranges. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowEndpoints.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowEndpoints.java index 77db77630682..65cf1e5963d2 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowEndpoints.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowEndpoints.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The flow endpoints configuration. */ @Fluent public final class FlowEndpoints { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FlowEndpoints.class); - /* * The outgoing ip address. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowEndpointsConfiguration.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowEndpointsConfiguration.java index d3e043f2171d..aeac927fd4c8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowEndpointsConfiguration.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/FlowEndpointsConfiguration.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The endpoints configuration. */ @Fluent public final class FlowEndpointsConfiguration { - @JsonIgnore private final ClientLogger logger = new ClientLogger(FlowEndpointsConfiguration.class); - /* * The workflow endpoints. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/GenerateUpgradedDefinitionParameters.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/GenerateUpgradedDefinitionParameters.java index a173d92e6875..ee72a4027145 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/GenerateUpgradedDefinitionParameters.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/GenerateUpgradedDefinitionParameters.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The parameters to generate upgraded definition. */ @Fluent public final class GenerateUpgradedDefinitionParameters { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GenerateUpgradedDefinitionParameters.class); - /* * The target schema version. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/GetCallbackUrlParameters.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/GetCallbackUrlParameters.java index 33b385d17620..5821111ca5aa 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/GetCallbackUrlParameters.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/GetCallbackUrlParameters.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The callback url parameters. */ @Fluent public final class GetCallbackUrlParameters { - @JsonIgnore private final ClientLogger logger = new ClientLogger(GetCallbackUrlParameters.class); - /* * The expiry time. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccount.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccount.java index d40bb28b99ba..f8060af3199e 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccount.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccount.java @@ -9,7 +9,6 @@ import com.azure.core.management.Region; import com.azure.core.util.Context; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountInner; -import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentInner; import java.util.Map; /** An immutable client-side representation of IntegrationAccount. */ @@ -61,7 +60,7 @@ public interface IntegrationAccount { * * @return the integrationServiceEnvironment value. */ - IntegrationServiceEnvironment integrationServiceEnvironment(); + ResourceReference integrationServiceEnvironment(); /** * Gets the state property: The workflow state. @@ -183,8 +182,7 @@ interface WithIntegrationServiceEnvironment { * @param integrationServiceEnvironment The integration service environment. * @return the next definition stage. */ - WithCreate withIntegrationServiceEnvironment( - IntegrationServiceEnvironmentInner integrationServiceEnvironment); + WithCreate withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment); } /** The stage of the IntegrationAccount definition allowing to specify state. */ interface WithState { @@ -255,7 +253,7 @@ interface WithIntegrationServiceEnvironment { * @param integrationServiceEnvironment The integration service environment. * @return the next definition stage. */ - Update withIntegrationServiceEnvironment(IntegrationServiceEnvironmentInner integrationServiceEnvironment); + Update withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment); } /** The stage of the IntegrationAccount update allowing to specify state. */ interface WithState { @@ -302,7 +300,7 @@ interface WithState { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account callback URL. + * @return the integration account callback URL along with {@link Response}. */ Response listCallbackUrlWithResponse(GetCallbackUrlParameters parameters, Context context); @@ -313,7 +311,7 @@ interface WithState { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ PagedIterable listKeyVaultKeys(ListKeyVaultKeysDefinition listKeyVaultKeys); @@ -325,7 +323,7 @@ interface WithState { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ PagedIterable listKeyVaultKeys(ListKeyVaultKeysDefinition listKeyVaultKeys, Context context); @@ -347,7 +345,7 @@ interface WithState { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response logTrackingEventsWithResponse(TrackingEventsDefinition logTrackingEvents, Context context); @@ -370,7 +368,7 @@ interface WithState { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ Response regenerateAccessKeyWithResponse( RegenerateActionParameter regenerateAccessKey, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreement.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreement.java index 797cffe75d8f..6942493aef55 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreement.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreement.java @@ -433,7 +433,7 @@ interface WithContent { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( GetCallbackUrlParameters listContentCallbackUrl, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreementListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreementListResult.java index 3b0012255506..fb4242206022 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreementListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreementListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountAgreementInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of integration account agreements. */ @Fluent public final class IntegrationAccountAgreementListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountAgreementListResult.class); - /* * The list of integration account agreements. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreements.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreements.java index e772fb7891b3..70b8923ccb3f 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreements.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreements.java @@ -18,7 +18,7 @@ public interface IntegrationAccountAgreements { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -33,7 +33,7 @@ public interface IntegrationAccountAgreements { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String integrationAccountName, Integer top, String filter, Context context); @@ -61,7 +61,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String agreementName, Context context); @@ -88,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String agreementName, Context context); @@ -122,7 +122,7 @@ WorkflowTriggerCallbackUrl listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( String resourceGroupName, @@ -138,7 +138,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement along with {@link Response}. */ IntegrationAccountAgreement getById(String id); @@ -150,7 +150,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -172,7 +172,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAssemblies.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAssemblies.java index c6f1f0af9e55..507db49b41fd 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAssemblies.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAssemblies.java @@ -18,7 +18,7 @@ public interface IntegrationAccountAssemblies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -31,7 +31,7 @@ public interface IntegrationAccountAssemblies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName, Context context); @@ -58,7 +58,7 @@ public interface IntegrationAccountAssemblies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String assemblyArtifactName, Context context); @@ -85,7 +85,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String assemblyArtifactName, Context context); @@ -114,7 +114,7 @@ WorkflowTriggerCallbackUrl listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url for an integration account assembly. + * @return the content callback url for an integration account assembly along with {@link Response}. */ Response listContentCallbackUrlWithResponse( String resourceGroupName, String integrationAccountName, String assemblyArtifactName, Context context); @@ -126,7 +126,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account along with {@link Response}. */ AssemblyDefinition getById(String id); @@ -138,7 +138,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -160,7 +160,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountBatchConfigurations.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountBatchConfigurations.java index e994fefaa803..bc56d0784dc9 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountBatchConfigurations.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountBatchConfigurations.java @@ -18,7 +18,7 @@ public interface IntegrationAccountBatchConfigurations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -31,7 +31,7 @@ public interface IntegrationAccountBatchConfigurations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName, Context context); @@ -58,7 +58,7 @@ public interface IntegrationAccountBatchConfigurations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String batchConfigurationName, Context context); @@ -85,7 +85,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String batchConfigurationName, Context context); @@ -97,7 +97,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account along with {@link Response}. */ BatchConfiguration getById(String id); @@ -109,7 +109,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -131,7 +131,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountCertificateListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountCertificateListResult.java index 2729e0369c0d..564dda35bb46 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountCertificateListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountCertificateListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountCertificateInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of integration account certificates. */ @Fluent public final class IntegrationAccountCertificateListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountCertificateListResult.class); - /* * The list of integration account certificates. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountCertificates.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountCertificates.java index 3d1941818d58..c5ee6a670fd8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountCertificates.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountCertificates.java @@ -18,7 +18,7 @@ public interface IntegrationAccountCertificates { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -32,7 +32,7 @@ public interface IntegrationAccountCertificates { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String integrationAccountName, Integer top, Context context); @@ -60,7 +60,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String certificateName, Context context); @@ -87,7 +87,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String certificateName, Context context); @@ -99,7 +99,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate along with {@link Response}. */ IntegrationAccountCertificate getById(String id); @@ -111,7 +111,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -133,7 +133,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountListResult.java index 5039a9aa09cc..84569f89901f 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of integration accounts. */ @Fluent public final class IntegrationAccountListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountListResult.class); - /* * The list of integration accounts. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMap.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMap.java index 8ae0e72e5fdf..5eb1f08438d1 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMap.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMap.java @@ -380,7 +380,7 @@ interface WithMetadata { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( GetCallbackUrlParameters listContentCallbackUrl, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMapListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMapListResult.java index 797c8eb5d7ee..c3d172bbaacf 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMapListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMapListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountMapInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of integration account maps. */ @Fluent public final class IntegrationAccountMapListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountMapListResult.class); - /* * The list of integration account maps. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMapPropertiesParametersSchema.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMapPropertiesParametersSchema.java index c4f513357d1c..710b2fc44883 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMapPropertiesParametersSchema.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMapPropertiesParametersSchema.java @@ -5,16 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The parameters schema of integration account map. */ @Fluent public final class IntegrationAccountMapPropertiesParametersSchema { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationAccountMapPropertiesParametersSchema.class); - /* * The reference name. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMaps.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMaps.java index f6444c2a055b..d92966d60605 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMaps.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMaps.java @@ -18,7 +18,7 @@ public interface IntegrationAccountMaps { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -33,7 +33,7 @@ public interface IntegrationAccountMaps { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String integrationAccountName, Integer top, String filter, Context context); @@ -61,7 +61,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String mapName, Context context); @@ -88,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String mapName, Context context); @@ -122,7 +122,7 @@ WorkflowTriggerCallbackUrl listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( String resourceGroupName, @@ -138,7 +138,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map along with {@link Response}. */ IntegrationAccountMap getById(String id); @@ -150,7 +150,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -172,7 +172,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartner.java index 586e53b4f507..2e5e2f1b7e62 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartner.java @@ -313,7 +313,7 @@ interface WithContent { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( GetCallbackUrlParameters listContentCallbackUrl, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartnerListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartnerListResult.java index 3759cfe910d9..912f0a83c6ef 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartnerListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartnerListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountPartnerInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of integration account partners. */ @Fluent public final class IntegrationAccountPartnerListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountPartnerListResult.class); - /* * The list of integration account partners. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartners.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartners.java index 8eb54c06bc7b..bc949120fac7 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartners.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartners.java @@ -18,7 +18,7 @@ public interface IntegrationAccountPartners { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -33,7 +33,7 @@ public interface IntegrationAccountPartners { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String integrationAccountName, Integer top, String filter, Context context); @@ -61,7 +61,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String partnerName, Context context); @@ -88,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String partnerName, Context context); @@ -122,7 +122,7 @@ WorkflowTriggerCallbackUrl listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( String resourceGroupName, @@ -138,7 +138,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner along with {@link Response}. */ IntegrationAccountPartner getById(String id); @@ -150,7 +150,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -172,7 +172,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchema.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchema.java index 9390a676030a..1a512be9778c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchema.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchema.java @@ -438,7 +438,7 @@ interface WithContentType { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( GetCallbackUrlParameters listContentCallbackUrl, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchemaListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchemaListResult.java index db1e3f123e72..3541b2f966f4 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchemaListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchemaListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountSchemaInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of integration account schemas. */ @Fluent public final class IntegrationAccountSchemaListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountSchemaListResult.class); - /* * The list of integration account schemas. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchemas.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchemas.java index 986574748358..6892c27effe9 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchemas.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchemas.java @@ -18,7 +18,7 @@ public interface IntegrationAccountSchemas { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -33,7 +33,7 @@ public interface IntegrationAccountSchemas { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String integrationAccountName, Integer top, String filter, Context context); @@ -61,7 +61,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String schemaName, Context context); @@ -88,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String schemaName, Context context); @@ -122,7 +122,7 @@ WorkflowTriggerCallbackUrl listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( String resourceGroupName, @@ -138,7 +138,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema along with {@link Response}. */ IntegrationAccountSchema getById(String id); @@ -150,7 +150,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -172,7 +172,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSessionListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSessionListResult.java index f6ef7d6b2f48..e832d0f8d1ec 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSessionListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSessionListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountSessionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of integration account sessions. */ @Fluent public final class IntegrationAccountSessionListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountSessionListResult.class); - /* * The list of integration account sessions. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSessions.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSessions.java index f3666e2f5796..7f0f32a47d26 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSessions.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSessions.java @@ -18,7 +18,7 @@ public interface IntegrationAccountSessions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -33,7 +33,7 @@ public interface IntegrationAccountSessions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String integrationAccountName, Integer top, String filter, Context context); @@ -61,7 +61,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String sessionName, Context context); @@ -88,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String sessionName, Context context); @@ -100,7 +100,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session along with {@link Response}. */ IntegrationAccountSession getById(String id); @@ -112,7 +112,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -134,7 +134,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSku.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSku.java index 8a73494a4f5f..fb3c717a7f86 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSku.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSku.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The integration account sku. */ @Fluent public final class IntegrationAccountSku { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountSku.class); - /* * The sku name. */ @@ -47,9 +44,11 @@ public IntegrationAccountSku withName(IntegrationAccountSkuName name) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property name in model IntegrationAccountSku")); } } + + private static final ClientLogger LOGGER = new ClientLogger(IntegrationAccountSku.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccounts.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccounts.java index 1907b5a6f493..b77efb6d03c0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccounts.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccounts.java @@ -15,7 +15,7 @@ public interface IntegrationAccounts { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedIterable}. */ PagedIterable list(); @@ -27,7 +27,7 @@ public interface IntegrationAccounts { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedIterable}. */ PagedIterable list(Integer top, Context context); @@ -38,7 +38,7 @@ public interface IntegrationAccounts { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); @@ -51,7 +51,7 @@ public interface IntegrationAccounts { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Integer top, Context context); @@ -76,7 +76,7 @@ public interface IntegrationAccounts { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account along with {@link Response}. */ Response getByResourceGroupWithResponse( String resourceGroupName, String integrationAccountName, Context context); @@ -101,7 +101,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse(String resourceGroupName, String integrationAccountName, Context context); @@ -129,7 +129,7 @@ CallbackUrl listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account callback URL. + * @return the integration account callback URL along with {@link Response}. */ Response listCallbackUrlWithResponse( String resourceGroupName, String integrationAccountName, GetCallbackUrlParameters parameters, Context context); @@ -143,7 +143,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ PagedIterable listKeyVaultKeys( String resourceGroupName, String integrationAccountName, ListKeyVaultKeysDefinition listKeyVaultKeys); @@ -158,7 +158,7 @@ PagedIterable listKeyVaultKeys( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ PagedIterable listKeyVaultKeys( String resourceGroupName, @@ -189,7 +189,7 @@ void logTrackingEvents( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response logTrackingEventsWithResponse( String resourceGroupName, @@ -221,7 +221,7 @@ IntegrationAccount regenerateAccessKey( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ Response regenerateAccessKeyWithResponse( String resourceGroupName, @@ -236,7 +236,7 @@ Response regenerateAccessKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account along with {@link Response}. */ IntegrationAccount getById(String id); @@ -248,7 +248,7 @@ Response regenerateAccessKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -270,7 +270,7 @@ Response regenerateAccessKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmenEncryptionConfiguration.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmenEncryptionConfiguration.java index 0b984474b6db..1006a66bc560 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmenEncryptionConfiguration.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmenEncryptionConfiguration.java @@ -5,16 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The encryption configuration for the integration service environment. */ @Fluent public final class IntegrationServiceEnvironmenEncryptionConfiguration { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmenEncryptionConfiguration.class); - /* * The encryption key reference. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmenEncryptionKeyReference.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmenEncryptionKeyReference.java index 36da8bef9156..468820070946 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmenEncryptionKeyReference.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmenEncryptionKeyReference.java @@ -5,16 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The encryption key details for the integration service environment. */ @Fluent public final class IntegrationServiceEnvironmenEncryptionKeyReference { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmenEncryptionKeyReference.class); - /* * The key vault reference. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironment.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironment.java index 046c8b2a05c0..9f4dffba50f6 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironment.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironment.java @@ -61,6 +61,13 @@ public interface IntegrationServiceEnvironment { */ IntegrationServiceEnvironmentSku sku(); + /** + * Gets the identity property: Managed service identity properties. + * + * @return the identity value. + */ + ManagedServiceIdentity identity(); + /** * Gets the region of the resource. * @@ -127,7 +134,10 @@ interface WithResourceGroup { * for the resource to be created, but also allows for any other optional properties to be specified. */ interface WithCreate - extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithSku { + extends DefinitionStages.WithTags, + DefinitionStages.WithProperties, + DefinitionStages.WithSku, + DefinitionStages.WithIdentity { /** * Executes the create request. * @@ -173,6 +183,16 @@ interface WithSku { */ WithCreate withSku(IntegrationServiceEnvironmentSku sku); } + /** The stage of the IntegrationServiceEnvironment definition allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: Managed service identity properties.. + * + * @param identity Managed service identity properties. + * @return the next definition stage. + */ + WithCreate withIdentity(ManagedServiceIdentity identity); + } } /** * Begins update for the IntegrationServiceEnvironment resource. @@ -182,7 +202,8 @@ interface WithSku { IntegrationServiceEnvironment.Update update(); /** The template for IntegrationServiceEnvironment update. */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties, UpdateStages.WithSku { + interface Update + extends UpdateStages.WithTags, UpdateStages.WithProperties, UpdateStages.WithSku, UpdateStages.WithIdentity { /** * Executes the update request. * @@ -230,6 +251,16 @@ interface WithSku { */ Update withSku(IntegrationServiceEnvironmentSku sku); } + /** The stage of the IntegrationServiceEnvironment update allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: Managed service identity properties.. + * + * @param identity Managed service identity properties. + * @return the next definition stage. + */ + Update withIdentity(ManagedServiceIdentity identity); + } } /** * Refreshes the resource to sync with Azure. @@ -261,7 +292,7 @@ interface WithSku { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response restartWithResponse(Context context); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentAccessEndpoint.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentAccessEndpoint.java index 78178516ff9a..7d524709c368 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentAccessEndpoint.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentAccessEndpoint.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The integration service environment access endpoint. */ @Fluent public final class IntegrationServiceEnvironmentAccessEndpoint { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentAccessEndpoint.class); - /* * The access endpoint type. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentListResult.java index 0cefb40ffc9c..ce0d1db5e3d3 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of integration service environments. */ @Fluent public final class IntegrationServiceEnvironmentListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentListResult.class); - /* * The value property. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApi.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApi.java new file mode 100644 index 000000000000..6d11db827e83 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApi.java @@ -0,0 +1,351 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.models; + +import com.azure.core.management.Region; +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner; +import java.util.List; +import java.util.Map; + +/** An immutable client-side representation of IntegrationServiceEnvironmentManagedApi. */ +public interface IntegrationServiceEnvironmentManagedApi { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the deploymentParameters property: The integration service environment managed api deployment parameters. + * + * @return the deploymentParameters value. + */ + IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters(); + + /** + * Gets the namePropertiesName property: The name. + * + * @return the namePropertiesName value. + */ + String namePropertiesName(); + + /** + * Gets the connectionParameters property: The connection parameters. + * + * @return the connectionParameters value. + */ + Map connectionParameters(); + + /** + * Gets the metadata property: The metadata. + * + * @return the metadata value. + */ + ApiResourceMetadata metadata(); + + /** + * Gets the runtimeUrls property: The runtime urls. + * + * @return the runtimeUrls value. + */ + List runtimeUrls(); + + /** + * Gets the generalInformation property: The api general information. + * + * @return the generalInformation value. + */ + ApiResourceGeneralInformation generalInformation(); + + /** + * Gets the capabilities property: The capabilities. + * + * @return the capabilities value. + */ + List capabilities(); + + /** + * Gets the backendService property: The backend service. + * + * @return the backendService value. + */ + ApiResourceBackendService backendService(); + + /** + * Gets the policies property: The policies for the API. + * + * @return the policies value. + */ + ApiResourcePolicies policies(); + + /** + * Gets the apiDefinitionUrl property: The API definition. + * + * @return the apiDefinitionUrl value. + */ + String apiDefinitionUrl(); + + /** + * Gets the apiDefinitions property: The api definitions. + * + * @return the apiDefinitions value. + */ + ApiResourceDefinitions apiDefinitions(); + + /** + * Gets the integrationServiceEnvironment property: The integration service environment reference. + * + * @return the integrationServiceEnvironment value. + */ + ResourceReference integrationServiceEnvironment(); + + /** + * Gets the provisioningState property: The provisioning state. + * + * @return the provisioningState value. + */ + WorkflowProvisioningState provisioningState(); + + /** + * Gets the category property: The category. + * + * @return the category value. + */ + ApiTier category(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the inner com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner object. + * + * @return the inner object. + */ + IntegrationServiceEnvironmentManagedApiInner innerModel(); + + /** The entirety of the IntegrationServiceEnvironmentManagedApi definition. */ + interface Definition + extends DefinitionStages.Blank, + DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, + DefinitionStages.WithCreate { + } + /** The IntegrationServiceEnvironmentManagedApi definition stages. */ + interface DefinitionStages { + /** The first stage of the IntegrationServiceEnvironmentManagedApi definition. */ + interface Blank extends WithLocation { + } + /** The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify location. */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithParentResource withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithParentResource withRegion(String location); + } + /** The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify parent resource. */ + interface WithParentResource { + /** + * Specifies resourceGroup, integrationServiceEnvironmentName. + * + * @param resourceGroup The resource group name. + * @param integrationServiceEnvironmentName The integration service environment name. + * @return the next definition stage. + */ + WithCreate withExistingIntegrationServiceEnvironment( + String resourceGroup, String integrationServiceEnvironmentName); + } + /** + * The stage of the IntegrationServiceEnvironmentManagedApi definition which contains all the minimum required + * properties for the resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate + extends DefinitionStages.WithTags, + DefinitionStages.WithDeploymentParameters, + DefinitionStages.WithIntegrationServiceEnvironment { + /** + * Executes the create request. + * + * @return the created resource. + */ + IntegrationServiceEnvironmentManagedApi create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + IntegrationServiceEnvironmentManagedApi create(Context context); + } + /** The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify tags. */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + /** + * The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify deploymentParameters. + */ + interface WithDeploymentParameters { + /** + * Specifies the deploymentParameters property: The integration service environment managed api deployment + * parameters.. + * + * @param deploymentParameters The integration service environment managed api deployment parameters. + * @return the next definition stage. + */ + WithCreate withDeploymentParameters( + IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters); + } + /** + * The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify + * integrationServiceEnvironment. + */ + interface WithIntegrationServiceEnvironment { + /** + * Specifies the integrationServiceEnvironment property: The integration service environment reference.. + * + * @param integrationServiceEnvironment The integration service environment reference. + * @return the next definition stage. + */ + WithCreate withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment); + } + } + /** + * Begins update for the IntegrationServiceEnvironmentManagedApi resource. + * + * @return the stage of resource update. + */ + IntegrationServiceEnvironmentManagedApi.Update update(); + + /** The template for IntegrationServiceEnvironmentManagedApi update. */ + interface Update + extends UpdateStages.WithTags, + UpdateStages.WithDeploymentParameters, + UpdateStages.WithIntegrationServiceEnvironment { + /** + * Executes the update request. + * + * @return the updated resource. + */ + IntegrationServiceEnvironmentManagedApi apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + IntegrationServiceEnvironmentManagedApi apply(Context context); + } + /** The IntegrationServiceEnvironmentManagedApi update stages. */ + interface UpdateStages { + /** The stage of the IntegrationServiceEnvironmentManagedApi update allowing to specify tags. */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + /** The stage of the IntegrationServiceEnvironmentManagedApi update allowing to specify deploymentParameters. */ + interface WithDeploymentParameters { + /** + * Specifies the deploymentParameters property: The integration service environment managed api deployment + * parameters.. + * + * @param deploymentParameters The integration service environment managed api deployment parameters. + * @return the next definition stage. + */ + Update withDeploymentParameters( + IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters); + } + /** + * The stage of the IntegrationServiceEnvironmentManagedApi update allowing to specify + * integrationServiceEnvironment. + */ + interface WithIntegrationServiceEnvironment { + /** + * Specifies the integrationServiceEnvironment property: The integration service environment reference.. + * + * @param integrationServiceEnvironment The integration service environment reference. + * @return the next definition stage. + */ + Update withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment); + } + } + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + IntegrationServiceEnvironmentManagedApi refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + IntegrationServiceEnvironmentManagedApi refresh(Context context); +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiDeploymentParameters.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiDeploymentParameters.java new file mode 100644 index 000000000000..5f9633bc4ba7 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiDeploymentParameters.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The integration service environment managed api deployment parameters. */ +@Fluent +public final class IntegrationServiceEnvironmentManagedApiDeploymentParameters { + /* + * The integration service environment managed api content link for + * deployment. + */ + @JsonProperty(value = "contentLinkDefinition") + private ContentLink contentLinkDefinition; + + /** + * Get the contentLinkDefinition property: The integration service environment managed api content link for + * deployment. + * + * @return the contentLinkDefinition value. + */ + public ContentLink contentLinkDefinition() { + return this.contentLinkDefinition; + } + + /** + * Set the contentLinkDefinition property: The integration service environment managed api content link for + * deployment. + * + * @param contentLinkDefinition the contentLinkDefinition value to set. + * @return the IntegrationServiceEnvironmentManagedApiDeploymentParameters object itself. + */ + public IntegrationServiceEnvironmentManagedApiDeploymentParameters withContentLinkDefinition( + ContentLink contentLinkDefinition) { + this.contentLinkDefinition = contentLinkDefinition; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (contentLinkDefinition() != null) { + contentLinkDefinition().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedApiListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiListResult.java similarity index 58% rename from sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedApiListResult.java rename to sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiListResult.java index e380dbc9130b..45371c5dc557 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedApiListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiListResult.java @@ -5,22 +5,18 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.logic.fluent.models.ManagedApiInner; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The list of managed APIs. */ +/** The list of integration service environment managed APIs. */ @Fluent -public final class ManagedApiListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedApiListResult.class); - +public final class IntegrationServiceEnvironmentManagedApiListResult { /* - * The managed APIs. + * The integration service environment managed APIs. */ @JsonProperty(value = "value") - private List value; + private List value; /* * The URL to get the next set of results. @@ -29,21 +25,22 @@ public final class ManagedApiListResult { private String nextLink; /** - * Get the value property: The managed APIs. + * Get the value property: The integration service environment managed APIs. * * @return the value value. */ - public List value() { + public List value() { return this.value; } /** - * Set the value property: The managed APIs. + * Set the value property: The integration service environment managed APIs. * * @param value the value value to set. - * @return the ManagedApiListResult object itself. + * @return the IntegrationServiceEnvironmentManagedApiListResult object itself. */ - public ManagedApiListResult withValue(List value) { + public IntegrationServiceEnvironmentManagedApiListResult withValue( + List value) { this.value = value; return this; } @@ -61,9 +58,9 @@ public String nextLink() { * Set the nextLink property: The URL to get the next set of results. * * @param nextLink the nextLink value to set. - * @return the ManagedApiListResult object itself. + * @return the IntegrationServiceEnvironmentManagedApiListResult object itself. */ - public ManagedApiListResult withNextLink(String nextLink) { + public IntegrationServiceEnvironmentManagedApiListResult withNextLink(String nextLink) { this.nextLink = nextLink; return this; } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiOperations.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiOperations.java index 2eeb6fd8d27c..2bf2b609c985 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiOperations.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiOperations.java @@ -18,7 +18,7 @@ public interface IntegrationServiceEnvironmentManagedApiOperations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName, String apiName); @@ -32,7 +32,7 @@ public interface IntegrationServiceEnvironmentManagedApiOperations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApis.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApis.java index 02123d8697c4..36b5f118683e 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApis.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApis.java @@ -18,9 +18,10 @@ public interface IntegrationServiceEnvironmentManagedApis { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName); + PagedIterable list( + String resourceGroup, String integrationServiceEnvironmentName); /** * Gets the integration service environment managed Apis. @@ -31,9 +32,10 @@ public interface IntegrationServiceEnvironmentManagedApis { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName, Context context); + PagedIterable list( + String resourceGroup, String integrationServiceEnvironmentName, Context context); /** * Gets the integration service environment managed Api. @@ -46,7 +48,8 @@ public interface IntegrationServiceEnvironmentManagedApis { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the integration service environment managed Api. */ - ManagedApi get(String resourceGroup, String integrationServiceEnvironmentName, String apiName); + IntegrationServiceEnvironmentManagedApi get( + String resourceGroup, String integrationServiceEnvironmentName, String apiName); /** * Gets the integration service environment managed Api. @@ -58,60 +61,85 @@ public interface IntegrationServiceEnvironmentManagedApis { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Api. + * @return the integration service environment managed Api along with {@link Response}. */ - Response getWithResponse( + Response getWithResponse( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); /** - * Puts the integration service environment managed Api. + * Deletes the integration service environment managed Api. * - * @param resourceGroup The resource group name. + * @param resourceGroup The resource group. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. */ - ManagedApi put(String resourceGroup, String integrationServiceEnvironmentName, String apiName); + void delete(String resourceGroup, String integrationServiceEnvironmentName, String apiName); /** - * Puts the integration service environment managed Api. + * Deletes the integration service environment managed Api. * - * @param resourceGroup The resource group name. + * @param resourceGroup The resource group. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. */ - ManagedApi put(String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); + void delete(String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); + + /** + * Gets the integration service environment managed Api. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the integration service environment managed Api along with {@link Response}. + */ + IntegrationServiceEnvironmentManagedApi getById(String id); + + /** + * Gets the integration service environment managed Api. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the integration service environment managed Api along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); /** * Deletes the integration service environment managed Api. * - * @param resourceGroup The resource group. - * @param integrationServiceEnvironmentName The integration service environment name. - * @param apiName The api name. + * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroup, String integrationServiceEnvironmentName, String apiName); + void deleteById(String id); /** * Deletes the integration service environment managed Api. * - * @param resourceGroup The resource group. - * @param integrationServiceEnvironmentName The integration service environment name. - * @param apiName The api name. + * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new IntegrationServiceEnvironmentManagedApi resource. + * + * @param name resource name. + * @return the first stage of the new IntegrationServiceEnvironmentManagedApi definition. + */ + IntegrationServiceEnvironmentManagedApi.DefinitionStages.Blank define(String name); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkDependency.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkDependency.java index fbb74f7200aa..07bd0408dd74 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkDependency.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkDependency.java @@ -5,17 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The azure async operation resource. */ @Fluent public final class IntegrationServiceEnvironmentNetworkDependency { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentNetworkDependency.class); - /* * The network dependency category type. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkDependencyHealth.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkDependencyHealth.java index b86be3f5fb34..d6d8b409ef57 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkDependencyHealth.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkDependencyHealth.java @@ -5,16 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The integration service environment subnet network health. */ @Fluent public final class IntegrationServiceEnvironmentNetworkDependencyHealth { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentNetworkDependencyHealth.class); - /* * The error if any occurred during the operation. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkEndpoint.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkEndpoint.java index 2fdffa68b595..7f7736a93916 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkEndpoint.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkEndpoint.java @@ -5,17 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The network endpoint. */ @Fluent public final class IntegrationServiceEnvironmentNetworkEndpoint { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentNetworkEndpoint.class); - /* * The accessibility state. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkHealths.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkHealths.java index d287a33223a7..70d199235eb0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkHealths.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkHealths.java @@ -32,7 +32,7 @@ Map get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment network health. + * @return the integration service environment network health along with {@link Response}. */ Response> getWithResponse( String resourceGroup, String integrationServiceEnvironmentName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentProperties.java index bb38bb003ae9..b9d56b28ec07 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentProperties.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The integration service environment properties. */ @Fluent public final class IntegrationServiceEnvironmentProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentProperties.class); - /* * The provisioning state. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSku.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSku.java index 4e6533169bb9..387972f52d08 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSku.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSku.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The integration service environment sku. */ @Fluent public final class IntegrationServiceEnvironmentSku { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentSku.class); - /* * The sku name. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkuCapacity.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkuCapacity.java index b45bf2718e06..b6facf9dd6db 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkuCapacity.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkuCapacity.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The integration service environment sku capacity. */ @Fluent public final class IntegrationServiceEnvironmentSkuCapacity { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentSkuCapacity.class); - /* * The minimum capacity. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkuDefinitionSku.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkuDefinitionSku.java index 915d8ad590c3..4b5ada953542 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkuDefinitionSku.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkuDefinitionSku.java @@ -5,16 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The sku. */ @Fluent public final class IntegrationServiceEnvironmentSkuDefinitionSku { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentSkuDefinitionSku.class); - /* * The sku name. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkuList.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkuList.java index 875c655749c0..22b70e50e7e2 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkuList.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkuList.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentSkuDefinitionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of integration service environment skus. */ @Fluent public final class IntegrationServiceEnvironmentSkuList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentSkuList.class); - /* * The list of integration service environment skus. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkus.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkus.java index 7bf0e8565da0..881ecf4031d1 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkus.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkus.java @@ -17,7 +17,7 @@ public interface IntegrationServiceEnvironmentSkus { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroup, String integrationServiceEnvironmentName); @@ -31,7 +31,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroup, String integrationServiceEnvironmentName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironments.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironments.java index a0c0f3bd54b9..acd6b56d5fd8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironments.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironments.java @@ -15,7 +15,8 @@ public interface IntegrationServiceEnvironments { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link + * PagedIterable}. */ PagedIterable list(); @@ -27,7 +28,8 @@ public interface IntegrationServiceEnvironments { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link + * PagedIterable}. */ PagedIterable list(Integer top, Context context); @@ -38,7 +40,8 @@ public interface IntegrationServiceEnvironments { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroup); @@ -51,7 +54,8 @@ public interface IntegrationServiceEnvironments { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedIterable}. */ PagedIterable listByResourceGroup( String resourceGroup, Integer top, Context context); @@ -77,7 +81,7 @@ PagedIterable listByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment along with {@link Response}. */ Response getByResourceGroupWithResponse( String resourceGroup, String integrationServiceEnvironmentName, Context context); @@ -102,7 +106,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse(String resourceGroup, String integrationServiceEnvironmentName, Context context); @@ -126,7 +130,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response restartWithResponse(String resourceGroup, String integrationServiceEnvironmentName, Context context); @@ -137,7 +141,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment along with {@link Response}. */ IntegrationServiceEnvironment getById(String id); @@ -149,7 +153,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -171,7 +175,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IpAddress.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IpAddress.java index 5973da993955..164ed09c2958 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IpAddress.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IpAddress.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The ip address. */ @Fluent public final class IpAddress { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IpAddress.class); - /* * The address. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IpAddressRange.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IpAddressRange.java index 7b267afae97f..9f638026aebb 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IpAddressRange.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IpAddressRange.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The ip address range. */ @Fluent public final class IpAddressRange { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IpAddressRange.class); - /* * The IP address range. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyAttributes.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyAttributes.java index 810e5a7f18a0..8b88b6048e15 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyAttributes.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyAttributes.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The key attributes. */ @Fluent public final class KeyVaultKeyAttributes { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KeyVaultKeyAttributes.class); - /* * Whether the key is enabled or not. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyCollection.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyCollection.java index 5a6e4e051d3f..0d89775a45c3 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyCollection.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyCollection.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.KeyVaultKeyInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Collection of key vault keys. */ @Fluent public final class KeyVaultKeyCollection { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KeyVaultKeyCollection.class); - /* * The key vault keys. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyReference.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyReference.java index e77533581163..f68c68f9c4d8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyReference.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyReference.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The reference to the key vault key. */ @Fluent public final class KeyVaultKeyReference { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KeyVaultKeyReference.class); - /* * The key vault reference. */ @@ -99,16 +96,18 @@ public KeyVaultKeyReference withKeyVersion(String keyVersion) { */ public void validate() { if (keyVault() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property keyVault in model KeyVaultKeyReference")); } else { keyVault().validate(); } if (keyName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property keyName in model KeyVaultKeyReference")); } } + + private static final ClientLogger LOGGER = new ClientLogger(KeyVaultKeyReference.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyReferenceKeyVault.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyReferenceKeyVault.java index 2a783211a296..1d2e2d8d9c35 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyReferenceKeyVault.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultKeyReferenceKeyVault.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The key vault reference. */ @Fluent public final class KeyVaultKeyReferenceKeyVault { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KeyVaultKeyReferenceKeyVault.class); - /* * The resource id. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultReference.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultReference.java index cff916576f89..dc88d9fa9f97 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultReference.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultReference.java @@ -4,15 +4,11 @@ package com.azure.resourcemanager.logic.models; -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.azure.core.annotation.Fluent; /** The key vault reference. */ -@Immutable +@Fluent public final class KeyVaultReference extends ResourceReference { - @JsonIgnore private final ClientLogger logger = new ClientLogger(KeyVaultReference.class); - /** {@inheritDoc} */ @Override public KeyVaultReference withId(String id) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ListKeyVaultKeysDefinition.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ListKeyVaultKeysDefinition.java index e10df3aa04d1..33ee7d571d1e 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ListKeyVaultKeysDefinition.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ListKeyVaultKeysDefinition.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The list key vault keys definition. */ @Fluent public final class ListKeyVaultKeysDefinition { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ListKeyVaultKeysDefinition.class); - /* * The key vault reference. */ @@ -73,7 +70,7 @@ public ListKeyVaultKeysDefinition withSkipToken(String skipToken) { */ public void validate() { if (keyVault() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property keyVault in model ListKeyVaultKeysDefinition")); @@ -81,4 +78,6 @@ public void validate() { keyVault().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(ListKeyVaultKeysDefinition.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedApi.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedApi.java deleted file mode 100644 index b42eecc2db0c..000000000000 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedApi.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.logic.models; - -import com.azure.resourcemanager.logic.fluent.models.ManagedApiInner; -import java.util.Map; - -/** An immutable client-side representation of ManagedApi. */ -public interface ManagedApi { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The api resource properties. - * - * @return the properties value. - */ - ApiResourceProperties properties(); - - /** - * Gets the inner com.azure.resourcemanager.logic.fluent.models.ManagedApiInner object. - * - * @return the inner object. - */ - ManagedApiInner innerModel(); -} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedServiceIdentity.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedServiceIdentity.java new file mode 100644 index 000000000000..f2ff6e2e6ac9 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedServiceIdentity.java @@ -0,0 +1,135 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; +import java.util.UUID; + +/** Managed service identity properties. */ +@Fluent +public class ManagedServiceIdentity { + /* + * Type of managed service identity. The type 'SystemAssigned' includes an + * implicitly created identity. The type 'None' will remove any identities + * from the resource. + */ + @JsonProperty(value = "type", required = true) + private ManagedServiceIdentityType type; + + /* + * Tenant of managed service identity. + */ + @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) + private UUID tenantId; + + /* + * Principal Id of managed service identity. + */ + @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) + private UUID principalId; + + /* + * The list of user assigned identities associated with the resource. The + * user identity dictionary key references will be ARM resource ids in the + * form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} + */ + @JsonProperty(value = "userAssignedIdentities") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map userAssignedIdentities; + + /** + * Get the type property: Type of managed service identity. The type 'SystemAssigned' includes an implicitly created + * identity. The type 'None' will remove any identities from the resource. + * + * @return the type value. + */ + public ManagedServiceIdentityType type() { + return this.type; + } + + /** + * Set the type property: Type of managed service identity. The type 'SystemAssigned' includes an implicitly created + * identity. The type 'None' will remove any identities from the resource. + * + * @param type the type value to set. + * @return the ManagedServiceIdentity object itself. + */ + public ManagedServiceIdentity withType(ManagedServiceIdentityType type) { + this.type = type; + return this; + } + + /** + * Get the tenantId property: Tenant of managed service identity. + * + * @return the tenantId value. + */ + public UUID tenantId() { + return this.tenantId; + } + + /** + * Get the principalId property: Principal Id of managed service identity. + * + * @return the principalId value. + */ + public UUID principalId() { + return this.principalId; + } + + /** + * Get the userAssignedIdentities property: The list of user assigned identities associated with the resource. The + * user identity dictionary key references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + * + * @return the userAssignedIdentities value. + */ + public Map userAssignedIdentities() { + return this.userAssignedIdentities; + } + + /** + * Set the userAssignedIdentities property: The list of user assigned identities associated with the resource. The + * user identity dictionary key references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + * + * @param userAssignedIdentities the userAssignedIdentities value to set. + * @return the ManagedServiceIdentity object itself. + */ + public ManagedServiceIdentity withUserAssignedIdentities(Map userAssignedIdentities) { + this.userAssignedIdentities = userAssignedIdentities; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (type() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property type in model ManagedServiceIdentity")); + } + if (userAssignedIdentities() != null) { + userAssignedIdentities() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ManagedServiceIdentity.class); +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedServiceIdentityType.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedServiceIdentityType.java new file mode 100644 index 000000000000..6934508bdc32 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedServiceIdentityType.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for ManagedServiceIdentityType. */ +public final class ManagedServiceIdentityType extends ExpandableStringEnum { + /** Static value SystemAssigned for ManagedServiceIdentityType. */ + public static final ManagedServiceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); + + /** Static value UserAssigned for ManagedServiceIdentityType. */ + public static final ManagedServiceIdentityType USER_ASSIGNED = fromString("UserAssigned"); + + /** Static value None for ManagedServiceIdentityType. */ + public static final ManagedServiceIdentityType NONE = fromString("None"); + + /** + * Creates or finds a ManagedServiceIdentityType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ManagedServiceIdentityType. + */ + @JsonCreator + public static ManagedServiceIdentityType fromString(String name) { + return fromString(name, ManagedServiceIdentityType.class); + } + + /** @return known ManagedServiceIdentityType values. */ + public static Collection values() { + return values(ManagedServiceIdentityType.class); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/NetworkConfiguration.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/NetworkConfiguration.java index 570719b92067..578c21d7248f 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/NetworkConfiguration.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/NetworkConfiguration.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The network configuration. */ @Fluent public final class NetworkConfiguration { - @JsonIgnore private final ClientLogger logger = new ClientLogger(NetworkConfiguration.class); - /* * Gets the virtual network address space. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicies.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicies.java index 46058d1a36e0..af3d20c5ac8d 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicies.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicies.java @@ -5,20 +5,18 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** AuthenticationPolicy of type Open. */ @Fluent public final class OpenAuthenticationAccessPolicies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OpenAuthenticationAccessPolicies.class); - /* * Open authentication policies. */ @JsonProperty(value = "policies") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map policies; /** diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicy.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicy.java index cce46c6f8dc0..873f8a381966 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicy.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicy.java @@ -5,20 +5,16 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Open authentication access policy defined by user. */ @Fluent public final class OpenAuthenticationAccessPolicy { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OpenAuthenticationAccessPolicy.class); - /* * Type of provider for OAuth. */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "type") private OpenAuthenticationProviderType type; /* @@ -36,6 +32,17 @@ public OpenAuthenticationProviderType type() { return this.type; } + /** + * Set the type property: Type of provider for OAuth. + * + * @param type the type value to set. + * @return the OpenAuthenticationAccessPolicy object itself. + */ + public OpenAuthenticationAccessPolicy withType(OpenAuthenticationProviderType type) { + this.type = type; + return this; + } + /** * Get the claims property: The access policy claims. * diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationPolicyClaim.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationPolicyClaim.java index 9568bc807654..4d00ed5a41ae 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationPolicyClaim.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationPolicyClaim.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Open authentication policy claim. */ @Fluent public final class OpenAuthenticationPolicyClaim { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OpenAuthenticationPolicyClaim.class); - /* * The name of the claim. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationDisplay.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationDisplay.java index 06aac8a9f2e9..0bd4c6e7928b 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationDisplay.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationDisplay.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The object that represents the operation. */ @Fluent public final class OperationDisplay { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationDisplay.class); - /* * Service provider: Microsoft.Logic */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationListResult.java index af2eadc95882..ad6d86673d5c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationListResult.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.OperationInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -17,8 +15,6 @@ */ @Fluent public final class OperationListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationListResult.class); - /* * List of Logic operations supported by the Logic resource provider. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationResult.java index f39f1e42e368..42d8134ca829 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationResult.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -14,8 +12,6 @@ /** The operation result definition. */ @Fluent public class OperationResult extends OperationResultProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationResult.class); - /* * Gets the tracking id. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationResultProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationResultProperties.java index 6f9e1f8981b1..b4e98d6b82bb 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationResultProperties.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationResultProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The run operation result properties. */ @Fluent public class OperationResultProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationResultProperties.class); - /* * The start time of the workflow scope repetition. */ @@ -46,7 +42,7 @@ public class OperationResultProperties { private String code; /* - * Any object + * Anything */ @JsonProperty(value = "error") private Object error; @@ -152,7 +148,7 @@ public OperationResultProperties withCode(String code) { } /** - * Get the error property: Any object. + * Get the error property: Anything. * * @return the error value. */ @@ -161,7 +157,7 @@ public Object error() { } /** - * Set the error property: Any object. + * Set the error property: Anything. * * @param error the error value to set. * @return the OperationResultProperties object itself. diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Operations.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Operations.java index 6d5933b8d8ce..ddad8138fe04 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Operations.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Operations.java @@ -14,7 +14,7 @@ public interface Operations { * * @throws com.azure.core.management.exception.ManagementException 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 the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedIterable}. */ PagedIterable list(); @@ -25,7 +25,7 @@ public interface Operations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedIterable}. */ PagedIterable list(Context context); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/PartnerContent.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/PartnerContent.java index 04d687ad3d5a..24560d9d79d2 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/PartnerContent.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/PartnerContent.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The integration account partner content. */ @Fluent public final class PartnerContent { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PartnerContent.class); - /* * The B2B partner content. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RecurrenceSchedule.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RecurrenceSchedule.java index 6e3b5975e762..b379d6bd789b 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RecurrenceSchedule.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RecurrenceSchedule.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The recurrence schedule. */ @Fluent public final class RecurrenceSchedule { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RecurrenceSchedule.class); - /* * The minutes. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RecurrenceScheduleOccurrence.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RecurrenceScheduleOccurrence.java index f0c00a187c9d..904229509c67 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RecurrenceScheduleOccurrence.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RecurrenceScheduleOccurrence.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The recurrence schedule occurrence. */ @Fluent public final class RecurrenceScheduleOccurrence { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RecurrenceScheduleOccurrence.class); - /* * The day of the week. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RegenerateActionParameter.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RegenerateActionParameter.java index 7d653436bbdc..b4d039090f55 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RegenerateActionParameter.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RegenerateActionParameter.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The access key regenerate action content. */ @Fluent public final class RegenerateActionParameter { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RegenerateActionParameter.class); - /* * The key type. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RepetitionIndex.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RepetitionIndex.java index 4c6892f7325d..26a83323f49c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RepetitionIndex.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RepetitionIndex.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The workflow run action repetition index. */ @Fluent public final class RepetitionIndex { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RepetitionIndex.class); - /* * The scope. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Request.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Request.java index 8923dc211a04..3d9822a1d42a 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Request.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Request.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A request. */ @Fluent public final class Request { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Request.class); - /* * A list of all the headers attached to the request. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RequestHistoryListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RequestHistoryListResult.java index d74ee4bbebb7..60471d203185 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RequestHistoryListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RequestHistoryListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.RequestHistoryInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of workflow request histories. */ @Fluent public final class RequestHistoryListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RequestHistoryListResult.class); - /* * A list of workflow request histories. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RequestHistoryProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RequestHistoryProperties.java index 56a3fe76142b..eed5781ab8a9 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RequestHistoryProperties.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RequestHistoryProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The request history. */ @Fluent public final class RequestHistoryProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RequestHistoryProperties.class); - /* * The time the request started. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ResourceReference.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ResourceReference.java index 87c524921ca6..bf12f4d2a721 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ResourceReference.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ResourceReference.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The resource reference. */ @Fluent public class ResourceReference { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceReference.class); - /* * The resource id. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Response.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Response.java index 42c620d012f4..df60a29b1f0f 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Response.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Response.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** A response. */ @Fluent public final class Response { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Response.class); - /* * A list of all the headers attached to the response. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RetryHistory.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RetryHistory.java index 07918bd206e2..683adfb93092 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RetryHistory.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RetryHistory.java @@ -6,16 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.exception.ManagementError; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The retry history. */ @Fluent public final class RetryHistory { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RetryHistory.class); - /* * Gets the start time. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RunActionCorrelation.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RunActionCorrelation.java index 77bb613f2308..6add417a24e9 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RunActionCorrelation.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RunActionCorrelation.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The workflow run action correlation properties. */ @Fluent public final class RunActionCorrelation extends RunCorrelation { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RunActionCorrelation.class); - /* * The action tracking identifier. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RunCorrelation.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RunCorrelation.java index 4b91c72ab713..d9f474ee8dd5 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RunCorrelation.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/RunCorrelation.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The correlation properties. */ @Fluent public class RunCorrelation { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RunCorrelation.class); - /* * The client tracking identifier. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SetTriggerStateActionDefinition.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SetTriggerStateActionDefinition.java index 5909c354e266..7b359d001ceb 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SetTriggerStateActionDefinition.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SetTriggerStateActionDefinition.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The set trigger state action definition. */ @Fluent public final class SetTriggerStateActionDefinition { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SetTriggerStateActionDefinition.class); - /* * The source. */ @@ -47,7 +44,7 @@ public SetTriggerStateActionDefinition withSource(WorkflowTriggerReference sourc */ public void validate() { if (source() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property source in model SetTriggerStateActionDefinition")); @@ -55,4 +52,6 @@ public void validate() { source().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(SetTriggerStateActionDefinition.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Sku.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Sku.java index 47061830c282..8b838e18ebcc 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Sku.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Sku.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The sku type. */ @Fluent public final class Sku { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Sku.class); - /* * The name. */ @@ -73,11 +70,13 @@ public Sku withPlan(ResourceReference plan) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError(new IllegalArgumentException("Missing required property name in model Sku")); } if (plan() != null) { plan().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(Sku.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicList.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicList.java index 37a7b756db44..aeb5e19891ca 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicList.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicList.java @@ -5,16 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The swagger custom dynamic list. */ @Fluent public final class SwaggerCustomDynamicList { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SwaggerCustomDynamicList.class); - /* * The operation id to fetch dynamic schema. */ @@ -50,6 +47,7 @@ public final class SwaggerCustomDynamicList { * The parameters. */ @JsonProperty(value = "parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map parameters; /** diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicProperties.java index fa97ff9585a9..025357db5901 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicProperties.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicProperties.java @@ -5,16 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The swagger custom dynamic properties. */ @Fluent public final class SwaggerCustomDynamicProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SwaggerCustomDynamicProperties.class); - /* * The operation id to fetch dynamic schema. */ @@ -31,6 +28,7 @@ public final class SwaggerCustomDynamicProperties { * The operation parameters. */ @JsonProperty(value = "parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map parameters; /** diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicSchema.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicSchema.java index 3d845d072801..28c6fa4af181 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicSchema.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicSchema.java @@ -5,16 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The swagger custom dynamic schema. */ @Fluent public final class SwaggerCustomDynamicSchema { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SwaggerCustomDynamicSchema.class); - /* * The operation id to fetch dynamic schema. */ @@ -31,6 +28,7 @@ public final class SwaggerCustomDynamicSchema { * The operation parameters. */ @JsonProperty(value = "parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map parameters; /** diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTree.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTree.java index c6cd3db4fe3d..5b0d4356c2b3 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTree.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTree.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The swagger custom dynamic tree. */ @Fluent public final class SwaggerCustomDynamicTree { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SwaggerCustomDynamicTree.class); - /* * The tree settings */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeCommand.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeCommand.java index d6750653f2a8..eb1a1dcb076c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeCommand.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeCommand.java @@ -5,16 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The swagger tree command. */ @Fluent public final class SwaggerCustomDynamicTreeCommand { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SwaggerCustomDynamicTreeCommand.class); - /* * The path to an item property which defines the display name of the item. */ @@ -61,6 +58,7 @@ public final class SwaggerCustomDynamicTreeCommand { * Dictionary of */ @JsonProperty(value = "parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map parameters; /** diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeParameter.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeParameter.java index c14cf8ac0428..e14f89dc6b80 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeParameter.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeParameter.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The swagger custom dynamic tree parameter. */ @Fluent public final class SwaggerCustomDynamicTreeParameter { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SwaggerCustomDynamicTreeParameter.class); - /* * Gets or sets a path to a property in the currently selected item to pass * as a value to a parameter for the given operation. diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeSettings.java index 2befe95c9571..3e658e4b6534 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeSettings.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The swagger custom dynamic tree settings. */ @Fluent public final class SwaggerCustomDynamicTreeSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SwaggerCustomDynamicTreeSettings.class); - /* * Indicates whether parent nodes can be selected. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerExternalDocumentation.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerExternalDocumentation.java index f81a8c27ed05..3f7f9aa1ce71 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerExternalDocumentation.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerExternalDocumentation.java @@ -5,16 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The swagger external documentation. */ @Fluent public final class SwaggerExternalDocumentation { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SwaggerExternalDocumentation.class); - /* * The document description. */ @@ -31,6 +28,7 @@ public final class SwaggerExternalDocumentation { * The vendor extensions. */ @JsonProperty(value = "extensions") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map extensions; /** diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerSchema.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerSchema.java index 7595790dea14..9452ff11ae6b 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerSchema.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerSchema.java @@ -5,8 +5,7 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -14,8 +13,6 @@ /** The swagger schema. */ @Fluent public final class SwaggerSchema { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SwaggerSchema.class); - /* * The reference. */ @@ -44,6 +41,7 @@ public final class SwaggerSchema { * The object properties */ @JsonProperty(value = "properties") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map properties; /* diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerXml.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerXml.java index 0f817babca8c..83be53d548b0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerXml.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerXml.java @@ -5,16 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The Swagger XML. */ @Fluent public final class SwaggerXml { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SwaggerXml.class); - /* * The xml element or attribute name. */ @@ -50,6 +47,7 @@ public final class SwaggerXml { * The vendor extensions. */ @JsonProperty(value = "extensions") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map extensions; /** diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/TrackingEvent.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/TrackingEvent.java index 0763a446081a..f223edaf2dc1 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/TrackingEvent.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/TrackingEvent.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The tracking event. */ @Fluent public final class TrackingEvent { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TrackingEvent.class); - /* * The event level. */ @@ -152,17 +149,17 @@ public TrackingEvent withError(TrackingEventErrorInfo error) { */ public void validate() { if (eventLevel() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property eventLevel in model TrackingEvent")); } if (eventTime() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property eventTime in model TrackingEvent")); } if (recordType() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property recordType in model TrackingEvent")); } @@ -170,4 +167,6 @@ public void validate() { error().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(TrackingEvent.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/TrackingEventErrorInfo.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/TrackingEventErrorInfo.java index 4551cb62bf66..5935eed35b24 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/TrackingEventErrorInfo.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/TrackingEventErrorInfo.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The tracking event error info. */ @Fluent public final class TrackingEventErrorInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TrackingEventErrorInfo.class); - /* * The message. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/TrackingEventsDefinition.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/TrackingEventsDefinition.java index 1a06a4e7afc7..ba6f20527286 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/TrackingEventsDefinition.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/TrackingEventsDefinition.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The tracking events definition. */ @Fluent public final class TrackingEventsDefinition { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TrackingEventsDefinition.class); - /* * The source type. */ @@ -100,17 +97,19 @@ public TrackingEventsDefinition withEvents(List events) { */ public void validate() { if (sourceType() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property sourceType in model TrackingEventsDefinition")); } if (events() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property events in model TrackingEventsDefinition")); } else { events().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(TrackingEventsDefinition.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/UserAssignedIdentity.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/UserAssignedIdentity.java new file mode 100644 index 000000000000..55ed13ceefcc --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/UserAssignedIdentity.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.logic.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** User Assigned identity properties. */ +@Immutable +public class UserAssignedIdentity { + /* + * Principal Id of user assigned identity + */ + @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) + private String principalId; + + /* + * Client Id of user assigned identity + */ + @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) + private String clientId; + + /** + * Get the principalId property: Principal Id of user assigned identity. + * + * @return the principalId value. + */ + public String principalId() { + return this.principalId; + } + + /** + * Get the clientId property: Client Id of user assigned identity. + * + * @return the clientId value. + */ + public String clientId() { + return this.clientId; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflow.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflow.java index e13e48583db4..9187def300ec 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflow.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflow.java @@ -48,6 +48,13 @@ public interface Workflow { */ Map tags(); + /** + * Gets the identity property: Managed service identity properties. + * + * @return the identity value. + */ + ManagedServiceIdentity identity(); + /** * Gets the provisioningState property: Gets the provisioning state. * @@ -206,6 +213,7 @@ interface WithResourceGroup { */ interface WithCreate extends DefinitionStages.WithTags, + DefinitionStages.WithIdentity, DefinitionStages.WithState, DefinitionStages.WithEndpointsConfiguration, DefinitionStages.WithAccessControl, @@ -238,6 +246,16 @@ interface WithTags { */ WithCreate withTags(Map tags); } + /** The stage of the Workflow definition allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: Managed service identity properties.. + * + * @param identity Managed service identity properties. + * @return the next definition stage. + */ + WithCreate withIdentity(ManagedServiceIdentity identity); + } /** The stage of the Workflow definition allowing to specify state. */ interface WithState { /** @@ -319,6 +337,7 @@ interface WithParameters { /** The template for Workflow update. */ interface Update extends UpdateStages.WithTags, + UpdateStages.WithIdentity, UpdateStages.WithState, UpdateStages.WithEndpointsConfiguration, UpdateStages.WithAccessControl, @@ -353,6 +372,16 @@ interface WithTags { */ Update withTags(Map tags); } + /** The stage of the Workflow update allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: Managed service identity properties.. + * + * @param identity Managed service identity properties. + * @return the next definition stage. + */ + Update withIdentity(ManagedServiceIdentity identity); + } /** The stage of the Workflow update allowing to specify state. */ interface WithState { /** @@ -454,7 +483,7 @@ interface WithParameters { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response disableWithResponse(Context context); @@ -473,7 +502,7 @@ interface WithParameters { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response enableWithResponse(Context context); @@ -496,7 +525,7 @@ interface WithParameters { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return any object along with {@link Response}. */ Response generateUpgradedDefinitionWithResponse( GenerateUpgradedDefinitionParameters parameters, Context context); @@ -520,7 +549,7 @@ Response generateUpgradedDefinitionWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow callback Url. + * @return the workflow callback Url along with {@link Response}. */ Response listCallbackUrlWithResponse( GetCallbackUrlParameters listCallbackUrl, Context context); @@ -541,7 +570,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an OpenAPI definition for the workflow. + * @return an OpenAPI definition for the workflow along with {@link Response}. */ Response listSwaggerWithResponse(Context context); @@ -584,7 +613,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response regenerateAccessKeyWithResponse(RegenerateActionParameter keyType, Context context); @@ -606,7 +635,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response validateByResourceGroupWithResponse(WorkflowInner validate, Context context); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowListResult.java index e1a60c6014b5..bec411e4495f 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.WorkflowInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of workflows. */ @Fluent public final class WorkflowListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowListResult.class); - /* * The list of workflows. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowOutputParameter.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowOutputParameter.java index 0ee56c0bb8ad..e77303ac7c59 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowOutputParameter.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowOutputParameter.java @@ -4,16 +4,12 @@ package com.azure.resourcemanager.logic.models; -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** The workflow output parameter. */ -@Immutable +@Fluent public final class WorkflowOutputParameter extends WorkflowParameter { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowOutputParameter.class); - /* * Gets the error. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowParameter.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowParameter.java index 46c3b5652b31..45e80efd2990 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowParameter.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowParameter.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The workflow parameters. */ @Fluent public class WorkflowParameter { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowParameter.class); - /* * The type. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowReference.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowReference.java index 2ac416bab5a1..11b54cb875c6 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowReference.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowReference.java @@ -4,15 +4,11 @@ package com.azure.resourcemanager.logic.models; -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.azure.core.annotation.Fluent; /** The workflow reference. */ -@Immutable +@Fluent public final class WorkflowReference extends ResourceReference { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowReference.class); - /** {@inheritDoc} */ @Override public WorkflowReference withId(String id) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionListResult.java index 5351f05c5b16..a6f74e8e2d2b 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.WorkflowRunActionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of workflow run actions. */ @Fluent public final class WorkflowRunActionListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunActionListResult.class); - /* * A list of workflow run actions. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionDefinition.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionDefinition.java index 27149c7fb29b..ce2dfac2787a 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionDefinition.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionDefinition.java @@ -47,46 +47,11 @@ public interface WorkflowRunActionRepetitionDefinition { Map tags(); /** - * Gets the startTime property: The start time of the workflow scope repetition. - * - * @return the startTime value. - */ - OffsetDateTime startTime(); - - /** - * Gets the endTime property: The end time of the workflow scope repetition. - * - * @return the endTime value. - */ - OffsetDateTime endTime(); - - /** - * Gets the correlation property: The correlation properties. - * - * @return the correlation value. - */ - RunActionCorrelation correlation(); - - /** - * Gets the status property: The status of the workflow scope repetition. - * - * @return the status value. - */ - WorkflowStatus status(); - - /** - * Gets the code property: The workflow scope repetition code. - * - * @return the code value. - */ - String code(); - - /** - * Gets the error property: Any object. + * Gets the repetitionIndexes property: The repetition indexes. * - * @return the error value. + * @return the repetitionIndexes value. */ - Object error(); + List repetitionIndexes(); /** * Gets the trackingId property: Gets the tracking id. @@ -145,11 +110,46 @@ public interface WorkflowRunActionRepetitionDefinition { Integer iterationCount(); /** - * Gets the repetitionIndexes property: The repetition indexes. + * Gets the startTime property: The start time of the workflow scope repetition. * - * @return the repetitionIndexes value. + * @return the startTime value. */ - List repetitionIndexes(); + OffsetDateTime startTime(); + + /** + * Gets the endTime property: The end time of the workflow scope repetition. + * + * @return the endTime value. + */ + OffsetDateTime endTime(); + + /** + * Gets the correlation property: The correlation properties. + * + * @return the correlation value. + */ + RunActionCorrelation correlation(); + + /** + * Gets the status property: The status of the workflow scope repetition. + * + * @return the status value. + */ + WorkflowStatus status(); + + /** + * Gets the code property: The workflow scope repetition code. + * + * @return the code value. + */ + String code(); + + /** + * Gets the error property: Anything. + * + * @return the error value. + */ + Object error(); /** * Gets the inner com.azure.resourcemanager.logic.fluent.models.WorkflowRunActionRepetitionDefinitionInner object. diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionDefinitionCollection.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionDefinitionCollection.java index 929fdfb0aa8f..dcd6faa16786 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionDefinitionCollection.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionDefinitionCollection.java @@ -5,18 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.WorkflowRunActionRepetitionDefinitionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A collection of workflow run action repetitions. */ @Fluent public final class WorkflowRunActionRepetitionDefinitionCollection { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(WorkflowRunActionRepetitionDefinitionCollection.class); - /* * The link used to get the next page of recommendations. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitions.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitions.java index 369b075b29d9..78c91f6588af 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitions.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitions.java @@ -20,7 +20,7 @@ public interface WorkflowRunActionRepetitions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, String actionName); @@ -36,7 +36,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, String actionName, Context context); @@ -69,7 +69,7 @@ WorkflowRunActionRepetitionDefinition get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action repetition. + * @return a workflow run action repetition along with {@link Response}. */ Response getWithResponse( String resourceGroupName, @@ -90,7 +90,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ PagedIterable listExpressionTraces( String resourceGroupName, String workflowName, String runName, String actionName, String repetitionName); @@ -107,7 +107,7 @@ PagedIterable listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ PagedIterable listExpressionTraces( String resourceGroupName, diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionsRequestHistories.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionsRequestHistories.java index 654103304829..47d27b785277 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionsRequestHistories.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionsRequestHistories.java @@ -21,7 +21,7 @@ public interface WorkflowRunActionRepetitionsRequestHistories { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, String actionName, String repetitionName); @@ -38,7 +38,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, @@ -83,7 +83,7 @@ RequestHistory get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run repetition request history. + * @return a workflow run repetition request history along with {@link Response}. */ Response getWithResponse( String resourceGroupName, diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRequestHistories.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRequestHistories.java index 2cb6ce09c365..b0de16a35e98 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRequestHistories.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRequestHistories.java @@ -20,7 +20,7 @@ public interface WorkflowRunActionRequestHistories { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, String actionName); @@ -36,7 +36,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException 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 workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, String actionName, Context context); @@ -69,7 +69,7 @@ RequestHistory get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run request history. + * @return a workflow run request history along with {@link Response}. */ Response getWithResponse( String resourceGroupName, diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionScopeRepetitions.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionScopeRepetitions.java index 69c7feefe909..4679bc257e0b 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionScopeRepetitions.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionScopeRepetitions.java @@ -20,7 +20,7 @@ public interface WorkflowRunActionScopeRepetitions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, String actionName); @@ -36,7 +36,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, String actionName, Context context); @@ -69,7 +69,7 @@ WorkflowRunActionRepetitionDefinition get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action scoped repetition. + * @return a workflow run action scoped repetition along with {@link Response}. */ Response getWithResponse( String resourceGroupName, diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActions.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActions.java index 0140e9cafa00..241965302a34 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActions.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActions.java @@ -19,7 +19,7 @@ public interface WorkflowRunActions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workflowName, String runName); @@ -35,7 +35,7 @@ public interface WorkflowRunActions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, Integer top, String filter, Context context); @@ -65,7 +65,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action. + * @return a workflow run action along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String workflowName, String runName, String actionName, Context context); @@ -80,7 +80,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ PagedIterable listExpressionTraces( String resourceGroupName, String workflowName, String runName, String actionName); @@ -96,7 +96,7 @@ PagedIterable listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ PagedIterable listExpressionTraces( String resourceGroupName, String workflowName, String runName, String actionName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunListResult.java index 5cfa46a250e5..fbe4419a1834 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.WorkflowRunInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of workflow runs. */ @Fluent public final class WorkflowRunListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunListResult.class); - /* * A list of workflow runs. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunOperations.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunOperations.java index 11e811c846d2..4929397fb609 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunOperations.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunOperations.java @@ -34,7 +34,7 @@ public interface WorkflowRunOperations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an operation for a run. + * @return an operation for a run along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String workflowName, String runName, String operationId, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunTrigger.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunTrigger.java index 2668df2bd4ea..73e8d59c382d 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunTrigger.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunTrigger.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The workflow run trigger. */ @Fluent public final class WorkflowRunTrigger { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunTrigger.class); - /* * Gets the name. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRuns.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRuns.java index 37c278287048..ede74f059dd7 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRuns.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRuns.java @@ -18,7 +18,7 @@ public interface WorkflowRuns { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workflowName); @@ -34,7 +34,7 @@ public interface WorkflowRuns { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, Integer top, String filter, Context context); @@ -62,7 +62,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run. + * @return a workflow run along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String workflowName, String runName, Context context); @@ -89,7 +89,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response cancelWithResponse(String resourceGroupName, String workflowName, String runName, Context context); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerHistories.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerHistories.java index c1b18484a379..b18cece0277c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerHistories.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerHistories.java @@ -19,7 +19,7 @@ public interface WorkflowTriggerHistories { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workflowName, String triggerName); @@ -36,7 +36,7 @@ public interface WorkflowTriggerHistories { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String triggerName, Integer top, String filter, Context context); @@ -68,7 +68,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger history. + * @return a workflow trigger history along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String workflowName, String triggerName, String historyName, Context context); @@ -99,7 +99,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response resubmitWithResponse( String resourceGroupName, String workflowName, String triggerName, String historyName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerHistoryListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerHistoryListResult.java index af587dd2a042..74112f260f99 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerHistoryListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerHistoryListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerHistoryInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of workflow trigger histories. */ @Fluent public final class WorkflowTriggerHistoryListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggerHistoryListResult.class); - /* * A list of workflow trigger histories. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerListCallbackUrlQueries.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerListCallbackUrlQueries.java index 1e2939ab80d1..fdc4802af794 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerListCallbackUrlQueries.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerListCallbackUrlQueries.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Gets the workflow trigger callback URL query parameters. */ @Fluent public final class WorkflowTriggerListCallbackUrlQueries { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggerListCallbackUrlQueries.class); - /* * The api version. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerListResult.java index 14ff6778829a..6f83d2073ce2 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of workflow triggers. */ @Fluent public final class WorkflowTriggerListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggerListResult.class); - /* * A list of workflow triggers. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerRecurrence.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerRecurrence.java index feaebcbe1697..8005b08ef738 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerRecurrence.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerRecurrence.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The workflow trigger recurrence. */ @Fluent public final class WorkflowTriggerRecurrence { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggerRecurrence.class); - /* * The frequency. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerReference.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerReference.java index 56e0a5b22d5a..aae3437dbf5d 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerReference.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerReference.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The workflow trigger reference. */ @Fluent public final class WorkflowTriggerReference extends ResourceReference { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggerReference.class); - /* * The workflow name. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggers.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggers.java index 1830afd85837..afee48b9d094 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggers.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggers.java @@ -18,7 +18,7 @@ public interface WorkflowTriggers { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workflowName); @@ -33,7 +33,7 @@ public interface WorkflowTriggers { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, Integer top, String filter, Context context); @@ -61,7 +61,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger. + * @return a workflow trigger along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String workflowName, String triggerName, Context context); @@ -88,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response resetWithResponse( String resourceGroupName, String workflowName, String triggerName, Context context); @@ -115,7 +115,7 @@ Response resetWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response runWithResponse(String resourceGroupName, String workflowName, String triggerName, Context context); @@ -142,7 +142,7 @@ Response resetWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the trigger schema as JSON. + * @return the trigger schema as JSON along with {@link Response}. */ Response getSchemaJsonWithResponse( String resourceGroupName, String workflowName, String triggerName, Context context); @@ -172,7 +172,7 @@ void setState( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response setStateWithResponse( String resourceGroupName, @@ -204,7 +204,7 @@ Response setStateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback URL for a workflow trigger. + * @return the callback URL for a workflow trigger along with {@link Response}. */ Response listCallbackUrlWithResponse( String resourceGroupName, String workflowName, String triggerName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersionListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersionListResult.java index aecd6a578a83..3a4734f82ea5 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersionListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersionListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.models.WorkflowVersionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of workflow versions. */ @Fluent public final class WorkflowVersionListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowVersionListResult.class); - /* * A list of workflow versions. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersionTriggers.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersionTriggers.java index 2bc2bd2234ba..409eeae7c50c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersionTriggers.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersionTriggers.java @@ -36,7 +36,7 @@ WorkflowTriggerCallbackUrl listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback url for a trigger of a workflow version. + * @return the callback url for a trigger of a workflow version along with {@link Response}. */ Response listCallbackUrlWithResponse( String resourceGroupName, diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersions.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersions.java index e62286731f29..f6aea29ac0b0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersions.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersions.java @@ -18,7 +18,7 @@ public interface WorkflowVersions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workflowName); @@ -32,7 +32,7 @@ public interface WorkflowVersions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workflowName, Integer top, Context context); @@ -59,7 +59,7 @@ public interface WorkflowVersions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow version. + * @return a workflow version along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String workflowName, String versionId, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflows.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflows.java index e5b033261d35..d27002f71c4e 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflows.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflows.java @@ -16,7 +16,7 @@ public interface Workflows { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedIterable}. */ PagedIterable list(); @@ -30,7 +30,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedIterable}. */ PagedIterable list(Integer top, String filter, Context context); @@ -41,7 +41,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); @@ -56,7 +56,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Integer top, String filter, Context context); @@ -81,7 +81,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow along with {@link Response}. */ Response getByResourceGroupWithResponse(String resourceGroupName, String workflowName, Context context); @@ -106,7 +106,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response}. */ Response updateWithResponse(String resourceGroupName, String workflowName, Context context); @@ -130,7 +130,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse(String resourceGroupName, String workflowName, Context context); @@ -154,7 +154,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response disableWithResponse(String resourceGroupName, String workflowName, Context context); @@ -178,7 +178,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response enableWithResponse(String resourceGroupName, String workflowName, Context context); @@ -206,7 +206,7 @@ Object generateUpgradedDefinition( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return any object along with {@link Response}. */ Response generateUpgradedDefinitionWithResponse( String resourceGroupName, @@ -238,7 +238,7 @@ WorkflowTriggerCallbackUrl listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow callback Url. + * @return the workflow callback Url along with {@link Response}. */ Response listCallbackUrlWithResponse( String resourceGroupName, String workflowName, GetCallbackUrlParameters listCallbackUrl, Context context); @@ -264,7 +264,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an OpenAPI definition for the workflow. + * @return an OpenAPI definition for the workflow along with {@link Response}. */ Response listSwaggerWithResponse(String resourceGroupName, String workflowName, Context context); @@ -315,7 +315,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response regenerateAccessKeyWithResponse( String resourceGroupName, String workflowName, RegenerateActionParameter keyType, Context context); @@ -342,7 +342,7 @@ Response regenerateAccessKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response validateByResourceGroupWithResponse( String resourceGroupName, String workflowName, WorkflowInner validate, Context context); @@ -371,7 +371,7 @@ Response validateByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response validateByLocationWithResponse( String resourceGroupName, String location, String workflowName, WorkflowInner validate, Context context); @@ -383,7 +383,7 @@ Response validateByLocationWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow along with {@link Response}. */ Workflow getById(String id); @@ -395,7 +395,7 @@ Response validateByLocationWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -417,7 +417,7 @@ Response validateByLocationWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WsdlService.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WsdlService.java index 2fb034138e6f..5cfac97f3a25 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WsdlService.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WsdlService.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The WSDL service. */ @Fluent public final class WsdlService { - @JsonIgnore private final ClientLogger logger = new ClientLogger(WsdlService.class); - /* * The qualified name. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12AcknowledgementSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12AcknowledgementSettings.java index 3560a58d56da..56b5fa084bc6 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12AcknowledgementSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12AcknowledgementSettings.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X12 agreement acknowledgement settings. */ @Fluent public final class X12AcknowledgementSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12AcknowledgementSettings.class); - /* * The value indicating whether technical acknowledgement is needed. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12AgreementContent.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12AgreementContent.java index 10458cb24190..937c135693be 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12AgreementContent.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12AgreementContent.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X12 agreement content. */ @Fluent public final class X12AgreementContent { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12AgreementContent.class); - /* * The X12 one-way receive agreement. */ @@ -73,7 +70,7 @@ public X12AgreementContent withSendAgreement(X12OneWayAgreement sendAgreement) { */ public void validate() { if (receiveAgreement() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property receiveAgreement in model X12AgreementContent")); @@ -81,7 +78,7 @@ public void validate() { receiveAgreement().validate(); } if (sendAgreement() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property sendAgreement in model X12AgreementContent")); @@ -89,4 +86,6 @@ public void validate() { sendAgreement().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(X12AgreementContent.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12DelimiterOverrides.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12DelimiterOverrides.java index 97dbf877372b..d3274142e5c5 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12DelimiterOverrides.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12DelimiterOverrides.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X12 delimiter override settings. */ @Fluent public final class X12DelimiterOverrides { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12DelimiterOverrides.class); - /* * The protocol version. */ @@ -255,10 +252,12 @@ public X12DelimiterOverrides withTargetNamespace(String targetNamespace) { */ public void validate() { if (segmentTerminatorSuffix() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property segmentTerminatorSuffix in model X12DelimiterOverrides")); } } + + private static final ClientLogger LOGGER = new ClientLogger(X12DelimiterOverrides.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12EnvelopeOverride.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12EnvelopeOverride.java index fbf4241a935d..287c6cfad200 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12EnvelopeOverride.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12EnvelopeOverride.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X12 envelope override settings. */ @Fluent public final class X12EnvelopeOverride { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12EnvelopeOverride.class); - /* * The target namespace on which this envelope settings has to be applied. */ @@ -281,55 +278,57 @@ public X12EnvelopeOverride withTimeFormat(X12TimeFormat timeFormat) { */ public void validate() { if (targetNamespace() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property targetNamespace in model X12EnvelopeOverride")); } if (protocolVersion() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property protocolVersion in model X12EnvelopeOverride")); } if (messageId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property messageId in model X12EnvelopeOverride")); } if (responsibleAgencyCode() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property responsibleAgencyCode in model X12EnvelopeOverride")); } if (headerVersion() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property headerVersion in model X12EnvelopeOverride")); } if (senderApplicationId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property senderApplicationId in model X12EnvelopeOverride")); } if (receiverApplicationId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property receiverApplicationId in model X12EnvelopeOverride")); } if (dateFormat() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property dateFormat in model X12EnvelopeOverride")); } if (timeFormat() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property timeFormat in model X12EnvelopeOverride")); } } + + private static final ClientLogger LOGGER = new ClientLogger(X12EnvelopeOverride.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12EnvelopeSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12EnvelopeSettings.java index 299377271de0..182e68aa8683 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12EnvelopeSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12EnvelopeSettings.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X12 agreement envelope settings. */ @Fluent public final class X12EnvelopeSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12EnvelopeSettings.class); - /* * The controls standards id. */ @@ -658,52 +655,54 @@ public X12EnvelopeSettings withUsageIndicator(UsageIndicator usageIndicator) { */ public void validate() { if (senderApplicationId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property senderApplicationId in model X12EnvelopeSettings")); } if (receiverApplicationId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property receiverApplicationId in model X12EnvelopeSettings")); } if (controlVersionNumber() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property controlVersionNumber in model X12EnvelopeSettings")); } if (groupHeaderAgencyCode() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property groupHeaderAgencyCode in model X12EnvelopeSettings")); } if (groupHeaderVersion() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property groupHeaderVersion in model X12EnvelopeSettings")); } if (groupHeaderDateFormat() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property groupHeaderDateFormat in model X12EnvelopeSettings")); } if (groupHeaderTimeFormat() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property groupHeaderTimeFormat in model X12EnvelopeSettings")); } if (usageIndicator() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property usageIndicator in model X12EnvelopeSettings")); } } + + private static final ClientLogger LOGGER = new ClientLogger(X12EnvelopeSettings.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12FramingSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12FramingSettings.java index d96ffe975b1f..9ee10b2a25dc 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12FramingSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12FramingSettings.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X12 agreement framing settings. */ @Fluent public final class X12FramingSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12FramingSettings.class); - /* * The data element separator. */ @@ -203,15 +200,17 @@ public X12FramingSettings withSegmentTerminatorSuffix(SegmentTerminatorSuffix se */ public void validate() { if (characterSet() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property characterSet in model X12FramingSettings")); } if (segmentTerminatorSuffix() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property segmentTerminatorSuffix in model X12FramingSettings")); } } + + private static final ClientLogger LOGGER = new ClientLogger(X12FramingSettings.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12MessageFilter.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12MessageFilter.java index d34a769f8049..b4b83449c0ae 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12MessageFilter.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12MessageFilter.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X12 message filter for odata query. */ @Fluent public final class X12MessageFilter { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12MessageFilter.class); - /* * The message filter type. */ @@ -47,10 +44,12 @@ public X12MessageFilter withMessageFilterType(MessageFilterType messageFilterTyp */ public void validate() { if (messageFilterType() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property messageFilterType in model X12MessageFilter")); } } + + private static final ClientLogger LOGGER = new ClientLogger(X12MessageFilter.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12MessageIdentifier.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12MessageIdentifier.java index eec49d41b70b..56be158776f6 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12MessageIdentifier.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12MessageIdentifier.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X12 message identifier. */ @Fluent public final class X12MessageIdentifier { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12MessageIdentifier.class); - /* * The message id. */ @@ -47,9 +44,11 @@ public X12MessageIdentifier withMessageId(String messageId) { */ public void validate() { if (messageId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property messageId in model X12MessageIdentifier")); } } + + private static final ClientLogger LOGGER = new ClientLogger(X12MessageIdentifier.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12OneWayAgreement.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12OneWayAgreement.java index 1b7ef1eefaff..6ea32cd5ffe2 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12OneWayAgreement.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12OneWayAgreement.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X12 one-way agreement. */ @Fluent public final class X12OneWayAgreement { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12OneWayAgreement.class); - /* * The sender business identity */ @@ -99,7 +96,7 @@ public X12OneWayAgreement withProtocolSettings(X12ProtocolSettings protocolSetti */ public void validate() { if (senderBusinessIdentity() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property senderBusinessIdentity in model X12OneWayAgreement")); @@ -107,7 +104,7 @@ public void validate() { senderBusinessIdentity().validate(); } if (receiverBusinessIdentity() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property receiverBusinessIdentity in model X12OneWayAgreement")); @@ -115,7 +112,7 @@ public void validate() { receiverBusinessIdentity().validate(); } if (protocolSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property protocolSettings in model X12OneWayAgreement")); @@ -123,4 +120,6 @@ public void validate() { protocolSettings().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(X12OneWayAgreement.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ProcessingSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ProcessingSettings.java index 2e2b2a9c221c..23ef2d04b304 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ProcessingSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ProcessingSettings.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.logic.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X12 processing settings. */ @Fluent public final class X12ProcessingSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12ProcessingSettings.class); - /* * The value indicating whether to mask security information. */ diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ProtocolSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ProtocolSettings.java index b08a84d9d31c..b13337394aad 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ProtocolSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ProtocolSettings.java @@ -6,15 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The X12 agreement protocol settings. */ @Fluent public final class X12ProtocolSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12ProtocolSettings.class); - /* * The X12 validation settings. */ @@ -334,7 +331,7 @@ public X12ProtocolSettings withX12DelimiterOverrides(List */ public void validate() { if (validationSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property validationSettings in model X12ProtocolSettings")); @@ -342,7 +339,7 @@ public void validate() { validationSettings().validate(); } if (framingSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property framingSettings in model X12ProtocolSettings")); @@ -350,7 +347,7 @@ public void validate() { framingSettings().validate(); } if (envelopeSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property envelopeSettings in model X12ProtocolSettings")); @@ -358,7 +355,7 @@ public void validate() { envelopeSettings().validate(); } if (acknowledgementSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property acknowledgementSettings in model X12ProtocolSettings")); @@ -366,7 +363,7 @@ public void validate() { acknowledgementSettings().validate(); } if (messageFilter() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property messageFilter in model X12ProtocolSettings")); @@ -374,7 +371,7 @@ public void validate() { messageFilter().validate(); } if (securitySettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property securitySettings in model X12ProtocolSettings")); @@ -382,7 +379,7 @@ public void validate() { securitySettings().validate(); } if (processingSettings() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property processingSettings in model X12ProtocolSettings")); @@ -399,7 +396,7 @@ public void validate() { messageFilterList().forEach(e -> e.validate()); } if (schemaReferences() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property schemaReferences in model X12ProtocolSettings")); @@ -410,4 +407,6 @@ public void validate() { x12DelimiterOverrides().forEach(e -> e.validate()); } } + + private static final ClientLogger LOGGER = new ClientLogger(X12ProtocolSettings.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12SchemaReference.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12SchemaReference.java index 02537e23fce6..de1cd18ad058 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12SchemaReference.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12SchemaReference.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X12 schema reference. */ @Fluent public final class X12SchemaReference { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12SchemaReference.class); - /* * The message id. */ @@ -125,20 +122,22 @@ public X12SchemaReference withSchemaName(String schemaName) { */ public void validate() { if (messageId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property messageId in model X12SchemaReference")); } if (schemaVersion() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property schemaVersion in model X12SchemaReference")); } if (schemaName() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property schemaName in model X12SchemaReference")); } } + + private static final ClientLogger LOGGER = new ClientLogger(X12SchemaReference.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12SecuritySettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12SecuritySettings.java index d1ee1ebbe5ea..fab833d43930 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12SecuritySettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12SecuritySettings.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X12 agreement security settings. */ @Fluent public final class X12SecuritySettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12SecuritySettings.class); - /* * The authorization qualifier. */ @@ -125,16 +122,18 @@ public X12SecuritySettings withPasswordValue(String passwordValue) { */ public void validate() { if (authorizationQualifier() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property authorizationQualifier in model X12SecuritySettings")); } if (securityQualifier() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property securityQualifier in model X12SecuritySettings")); } } + + private static final ClientLogger LOGGER = new ClientLogger(X12SecuritySettings.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ValidationOverride.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ValidationOverride.java index fe1f3cf28e97..e8e02ec5938b 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ValidationOverride.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ValidationOverride.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X12 validation override settings. */ @Fluent public final class X12ValidationOverride { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12ValidationOverride.class); - /* * The message id on which the validation settings has to be applied. */ @@ -211,15 +208,17 @@ public X12ValidationOverride withTrailingSeparatorPolicy(TrailingSeparatorPolicy */ public void validate() { if (messageId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property messageId in model X12ValidationOverride")); } if (trailingSeparatorPolicy() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property trailingSeparatorPolicy in model X12ValidationOverride")); } } + + private static final ClientLogger LOGGER = new ClientLogger(X12ValidationOverride.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ValidationSettings.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ValidationSettings.java index 95975c274d66..7c27e69075d7 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ValidationSettings.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/X12ValidationSettings.java @@ -6,14 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The X12 agreement validation settings. */ @Fluent public final class X12ValidationSettings { - @JsonIgnore private final ClientLogger logger = new ClientLogger(X12ValidationSettings.class); - /* * The value indicating whether to validate character set in the message. */ @@ -300,10 +297,12 @@ public X12ValidationSettings withTrailingSeparatorPolicy(TrailingSeparatorPolicy */ public void validate() { if (trailingSeparatorPolicy() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property trailingSeparatorPolicy in model X12ValidationSettings")); } } + + private static final ClientLogger LOGGER = new ClientLogger(X12ValidationSettings.class); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..43919c3129a9 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsCreateOrUpdateSamples.java @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.AS2AcknowledgementConnectionSettings; +import com.azure.resourcemanager.logic.models.AS2AgreementContent; +import com.azure.resourcemanager.logic.models.AS2EnvelopeSettings; +import com.azure.resourcemanager.logic.models.AS2ErrorSettings; +import com.azure.resourcemanager.logic.models.AS2MdnSettings; +import com.azure.resourcemanager.logic.models.AS2MessageConnectionSettings; +import com.azure.resourcemanager.logic.models.AS2OneWayAgreement; +import com.azure.resourcemanager.logic.models.AS2ProtocolSettings; +import com.azure.resourcemanager.logic.models.AS2SecuritySettings; +import com.azure.resourcemanager.logic.models.AS2ValidationSettings; +import com.azure.resourcemanager.logic.models.AgreementContent; +import com.azure.resourcemanager.logic.models.AgreementType; +import com.azure.resourcemanager.logic.models.BusinessIdentity; +import com.azure.resourcemanager.logic.models.EncryptionAlgorithm; +import com.azure.resourcemanager.logic.models.HashingAlgorithm; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationAccountAgreements CreateOrUpdate. */ +public final class IntegrationAccountAgreementsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an agreement. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnAgreement(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountAgreements() + .define("testAgreement") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withAgreementType(AgreementType.AS2) + .withHostPartner("HostPartner") + .withGuestPartner("GuestPartner") + .withHostIdentity(new BusinessIdentity().withQualifier("ZZ").withValue("ZZ")) + .withGuestIdentity(new BusinessIdentity().withQualifier("AA").withValue("AA")) + .withContent( + new AgreementContent() + .withAS2( + new AS2AgreementContent() + .withReceiveAgreement( + new AS2OneWayAgreement() + .withSenderBusinessIdentity( + new BusinessIdentity().withQualifier("AA").withValue("AA")) + .withReceiverBusinessIdentity( + new BusinessIdentity().withQualifier("ZZ").withValue("ZZ")) + .withProtocolSettings( + new AS2ProtocolSettings() + .withMessageConnectionSettings( + new AS2MessageConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withAcknowledgementConnectionSettings( + new AS2AcknowledgementConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withMdnSettings( + new AS2MdnSettings() + .withNeedMdn(true) + .withSignMdn(true) + .withSendMdnAsynchronously(true) + .withReceiptDeliveryUrl("http://tempuri.org") + .withDispositionNotificationTo("http://tempuri.org") + .withSignOutboundMdnIfOptional(true) + .withMdnText("Sample") + .withSendInboundMdnToMessageBox(true) + .withMicHashingAlgorithm(HashingAlgorithm.SHA1)) + .withSecuritySettings( + new AS2SecuritySettings() + .withOverrideGroupSigningCertificate(false) + .withEnableNrrForInboundEncodedMessages(true) + .withEnableNrrForInboundDecodedMessages(true) + .withEnableNrrForOutboundMdn(true) + .withEnableNrrForOutboundEncodedMessages(true) + .withEnableNrrForOutboundDecodedMessages(true) + .withEnableNrrForInboundMdn(true)) + .withValidationSettings( + new AS2ValidationSettings() + .withOverrideMessageProperties(true) + .withEncryptMessage(false) + .withSignMessage(false) + .withCompressMessage(true) + .withCheckDuplicateMessage(true) + .withInterchangeDuplicatesValidityDays(100) + .withCheckCertificateRevocationListOnSend(true) + .withCheckCertificateRevocationListOnReceive(true) + .withEncryptionAlgorithm(EncryptionAlgorithm.AES128)) + .withEnvelopeSettings( + new AS2EnvelopeSettings() + .withMessageContentType("text/plain") + .withTransmitFileNameInMimeHeader(true) + .withFileNameTemplate("Test") + .withSuspendMessageOnFileNameGenerationError(true) + .withAutogenerateFileName(true)) + .withErrorSettings( + new AS2ErrorSettings() + .withSuspendDuplicateMessage(true) + .withResendIfMdnNotReceived(true)))) + .withSendAgreement( + new AS2OneWayAgreement() + .withSenderBusinessIdentity( + new BusinessIdentity().withQualifier("ZZ").withValue("ZZ")) + .withReceiverBusinessIdentity( + new BusinessIdentity().withQualifier("AA").withValue("AA")) + .withProtocolSettings( + new AS2ProtocolSettings() + .withMessageConnectionSettings( + new AS2MessageConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withAcknowledgementConnectionSettings( + new AS2AcknowledgementConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withMdnSettings( + new AS2MdnSettings() + .withNeedMdn(true) + .withSignMdn(true) + .withSendMdnAsynchronously(true) + .withReceiptDeliveryUrl("http://tempuri.org") + .withDispositionNotificationTo("http://tempuri.org") + .withSignOutboundMdnIfOptional(true) + .withMdnText("Sample") + .withSendInboundMdnToMessageBox(true) + .withMicHashingAlgorithm(HashingAlgorithm.SHA1)) + .withSecuritySettings( + new AS2SecuritySettings() + .withOverrideGroupSigningCertificate(false) + .withEnableNrrForInboundEncodedMessages(true) + .withEnableNrrForInboundDecodedMessages(true) + .withEnableNrrForOutboundMdn(true) + .withEnableNrrForOutboundEncodedMessages(true) + .withEnableNrrForOutboundDecodedMessages(true) + .withEnableNrrForInboundMdn(true)) + .withValidationSettings( + new AS2ValidationSettings() + .withOverrideMessageProperties(true) + .withEncryptMessage(false) + .withSignMessage(false) + .withCompressMessage(true) + .withCheckDuplicateMessage(true) + .withInterchangeDuplicatesValidityDays(100) + .withCheckCertificateRevocationListOnSend(true) + .withCheckCertificateRevocationListOnReceive(true) + .withEncryptionAlgorithm(EncryptionAlgorithm.AES128)) + .withEnvelopeSettings( + new AS2EnvelopeSettings() + .withMessageContentType("text/plain") + .withTransmitFileNameInMimeHeader(true) + .withFileNameTemplate("Test") + .withSuspendMessageOnFileNameGenerationError(true) + .withAutogenerateFileName(true)) + .withErrorSettings( + new AS2ErrorSettings() + .withSuspendDuplicateMessage(true) + .withResendIfMdnNotReceived(true)))))) + .withTags(mapOf("IntegrationAccountAgreement", "")) + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsDeleteSamples.java new file mode 100644 index 000000000000..dab8bad53725 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAgreements Delete. */ +public final class IntegrationAccountAgreementsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_Delete.json + */ + /** + * Sample code: Delete an agreement. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnAgreement(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testAgreement", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsGetSamples.java new file mode 100644 index 000000000000..19386f597ba4 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAgreements Get. */ +public final class IntegrationAccountAgreementsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_Get.json + */ + /** + * Sample code: Get agreement by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getAgreementByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testAgreement", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsListContentCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsListContentCallbackUrlSamples.java new file mode 100644 index 000000000000..34e8f49296a6 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsListContentCallbackUrlSamples.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountAgreements ListContentCallbackUrl. */ +public final class IntegrationAccountAgreementsListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testAgreement", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsListSamples.java new file mode 100644 index 000000000000..1fde600f90a0 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAgreements List. */ +public final class IntegrationAccountAgreementsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_List.json + */ + /** + * Sample code: Get agreements by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getAgreementsByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .list("testResourceGroup", "testIntegrationAccount", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..e5f5688655a1 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesCreateOrUpdateSamples.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.AssemblyProperties; +import java.io.IOException; + +/** Samples for IntegrationAccountAssemblies CreateOrUpdate. */ +public final class IntegrationAccountAssembliesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnAccountAssembly(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountAssemblies() + .define("testAssembly") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withProperties( + new AssemblyProperties() + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .withContent("Base64 encoded Assembly Content") + .withAssemblyName("System.IdentityModel.Tokens.Jwt")) + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesDeleteSamples.java new file mode 100644 index 000000000000..011a86ada335 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies Delete. */ +public final class IntegrationAccountAssembliesDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_Delete.json + */ + /** + * Sample code: Delete an integration account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccountAssembly(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAssemblies() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testAssembly", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesGetSamples.java new file mode 100644 index 000000000000..c19570deba46 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies Get. */ +public final class IntegrationAccountAssembliesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_Get.json + */ + /** + * Sample code: Get an integration account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void getAnIntegrationAccountAssembly(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAssemblies() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testAssembly", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesListContentCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesListContentCallbackUrlSamples.java new file mode 100644 index 000000000000..35d7d60e6070 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesListContentCallbackUrlSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies ListContentCallbackUrl. */ +public final class IntegrationAccountAssembliesListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the callback url for an integration account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheCallbackUrlForAnIntegrationAccountAssembly( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAssemblies() + .listContentCallbackUrlWithResponse( + "testResourceGroup", "testIntegrationAccount", "testAssembly", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesListSamples.java new file mode 100644 index 000000000000..74251d8fb204 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies List. */ +public final class IntegrationAccountAssembliesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_List.json + */ + /** + * Sample code: List integration account assemblies. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountAssemblies(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccountAssemblies().list("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..2a96bb14ba73 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsCreateOrUpdateSamples.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.resourcemanager.logic.models.BatchConfigurationProperties; +import com.azure.resourcemanager.logic.models.BatchReleaseCriteria; +import com.azure.resourcemanager.logic.models.RecurrenceFrequency; +import com.azure.resourcemanager.logic.models.WorkflowTriggerRecurrence; + +/** Samples for IntegrationAccountBatchConfigurations CreateOrUpdate. */ +public final class IntegrationAccountBatchConfigurationsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a batch configuration. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateABatchConfiguration(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .define("testBatchConfiguration") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withProperties( + new BatchConfigurationProperties() + .withBatchGroupName("DEFAULT") + .withReleaseCriteria( + new BatchReleaseCriteria() + .withMessageCount(10) + .withBatchSize(234567) + .withRecurrence( + new WorkflowTriggerRecurrence() + .withFrequency(RecurrenceFrequency.MINUTE) + .withInterval(1) + .withStartTime("2017-03-24T11:43:00") + .withTimeZone("India Standard Time")))) + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsDeleteSamples.java new file mode 100644 index 000000000000..5f169efc13e0 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountBatchConfigurations Delete. */ +public final class IntegrationAccountBatchConfigurationsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_Delete.json + */ + /** + * Sample code: Delete a batch configuration. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteABatchConfiguration(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testBatchConfiguration", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsGetSamples.java new file mode 100644 index 000000000000..028371fdae5b --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountBatchConfigurations Get. */ +public final class IntegrationAccountBatchConfigurationsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_Get.json + */ + /** + * Sample code: Get a batch configuration. + * + * @param manager Entry point to LogicManager. + */ + public static void getABatchConfiguration(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testBatchConfiguration", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsListSamples.java new file mode 100644 index 000000000000..7a7855fb294a --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountBatchConfigurations List. */ +public final class IntegrationAccountBatchConfigurationsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_List.json + */ + /** + * Sample code: List batch configurations. + * + * @param manager Entry point to LogicManager. + */ + public static void listBatchConfigurations(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .list("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..ac067764c6a3 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesCreateOrUpdateSamples.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.resourcemanager.logic.models.KeyVaultKeyReference; +import com.azure.resourcemanager.logic.models.KeyVaultKeyReferenceKeyVault; + +/** Samples for IntegrationAccountCertificates CreateOrUpdate. */ +public final class IntegrationAccountCertificatesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a certificate. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateACertificate(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .define("testCertificate") + .withRegion("brazilsouth") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withKey( + new KeyVaultKeyReference() + .withKeyVault( + new KeyVaultKeyReferenceKeyVault() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testResourceGroup/providers/microsoft.keyvault/vaults/")) + .withKeyName("") + .withKeyVersion("87d9764197604449b9b8eb7bd8710868")) + .withPublicCertificate("") + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesDeleteSamples.java new file mode 100644 index 000000000000..9def6464adec --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountCertificates Delete. */ +public final class IntegrationAccountCertificatesDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_Delete.json + */ + /** + * Sample code: Delete a certificate. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteACertificate(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testCertificate", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesGetSamples.java new file mode 100644 index 000000000000..eec2356930c6 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountCertificates Get. */ +public final class IntegrationAccountCertificatesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_Get.json + */ + /** + * Sample code: Get certificate by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getCertificateByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testCertificate", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesListSamples.java new file mode 100644 index 000000000000..1cf0f5474bc1 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountCertificates List. */ +public final class IntegrationAccountCertificatesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_List.json + */ + /** + * Sample code: Get certificates by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getCertificatesByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .list("testResourceGroup", "testIntegrationAccount", null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..f436e59e76dc --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsCreateOrUpdateSamples.java @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.MapType; +import java.io.IOException; + +/** Samples for IntegrationAccountMaps CreateOrUpdate. */ +public final class IntegrationAccountMapsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountLargeMaps_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a map larger than 4 MB. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAMapLargerThan4MB(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountMaps() + .define("testMap") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withMapType(MapType.XSLT) + .withContentType("application/xml") + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } + + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a map. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAMap(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccountMaps() + .define("testMap") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withMapType(MapType.XSLT) + .withContent( + "\r\n" + + "\r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + "") + .withContentType("application/xml") + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsDeleteSamples.java new file mode 100644 index 000000000000..a639f31caf69 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountMaps Delete. */ +public final class IntegrationAccountMapsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_Delete.json + */ + /** + * Sample code: Delete a map. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAMap(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountMaps() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testMap", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsGetSamples.java new file mode 100644 index 000000000000..1c29e02efce4 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountMaps Get. */ +public final class IntegrationAccountMapsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_Get.json + */ + /** + * Sample code: Get map by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getMapByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountMaps() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testMap", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsListContentCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsListContentCallbackUrlSamples.java new file mode 100644 index 000000000000..41e495d0f9ee --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsListContentCallbackUrlSamples.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountMaps ListContentCallbackUrl. */ +public final class IntegrationAccountMapsListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountMaps() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testMap", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsListSamples.java new file mode 100644 index 000000000000..edd7d5c4ae8c --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountMaps List. */ +public final class IntegrationAccountMapsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_List.json + */ + /** + * Sample code: Get maps by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getMapsByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccountMaps().list("testResourceGroup", "testIntegrationAccount", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersCreateOrUpdateSamples.java new file mode 100644 index 000000000000..0831e250534f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersCreateOrUpdateSamples.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.B2BPartnerContent; +import com.azure.resourcemanager.logic.models.BusinessIdentity; +import com.azure.resourcemanager.logic.models.PartnerContent; +import com.azure.resourcemanager.logic.models.PartnerType; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationAccountPartners CreateOrUpdate. */ +public final class IntegrationAccountPartnersCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a partner. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAPartner(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccountPartners() + .define("testPartner") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withPartnerType(PartnerType.B2B) + .withContent( + new PartnerContent() + .withB2B( + new B2BPartnerContent() + .withBusinessIdentities( + Arrays.asList(new BusinessIdentity().withQualifier("AA").withValue("ZZ"))))) + .withTags(mapOf()) + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersDeleteSamples.java new file mode 100644 index 000000000000..60e34e035d66 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountPartners Delete. */ +public final class IntegrationAccountPartnersDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_Delete.json + */ + /** + * Sample code: Delete a partner. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAPartner(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testPartner", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersGetSamples.java new file mode 100644 index 000000000000..86344ca1625a --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountPartners Get. */ +public final class IntegrationAccountPartnersGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_Get.json + */ + /** + * Sample code: Get partner by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getPartnerByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testPartner", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersListContentCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersListContentCallbackUrlSamples.java new file mode 100644 index 000000000000..2f3868e1027f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersListContentCallbackUrlSamples.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountPartners ListContentCallbackUrl. */ +public final class IntegrationAccountPartnersListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testPartner", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersListSamples.java new file mode 100644 index 000000000000..faa805ef4c45 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountPartners List. */ +public final class IntegrationAccountPartnersListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_List.json + */ + /** + * Sample code: Get partners by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getPartnersByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .list("testResourceGroup", "testIntegrationAccount", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasCreateOrUpdateSamples.java new file mode 100644 index 000000000000..0d29efabeb1f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasCreateOrUpdateSamples.java @@ -0,0 +1,227 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.SchemaType; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationAccountSchemas CreateOrUpdate. */ +public final class IntegrationAccountSchemasCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_CreateOrUpdate.json + */ + /** + * Sample code: Create or update schema. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateSchema(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccountSchemas() + .define("testSchema") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withSchemaType(SchemaType.XML) + .withTags(mapOf("integrationAccountSchemaName", "IntegrationAccountSchema8120")) + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .withContent( + "\r\n" + + "\r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + "") + .withContentType("application/xml") + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasDeleteSamples.java new file mode 100644 index 000000000000..fdf5dc50711c --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSchemas Delete. */ +public final class IntegrationAccountSchemasDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_Delete.json + */ + /** + * Sample code: Delete a schema by name. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteASchemaByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testSchema", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasGetSamples.java new file mode 100644 index 000000000000..f16f84e599f8 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSchemas Get. */ +public final class IntegrationAccountSchemasGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_Get.json + */ + /** + * Sample code: Get schema by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getSchemaByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testSchema", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasListContentCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasListContentCallbackUrlSamples.java new file mode 100644 index 000000000000..a9e89ce69ebe --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasListContentCallbackUrlSamples.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountSchemas ListContentCallbackUrl. */ +public final class IntegrationAccountSchemasListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testSchema", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasListSamples.java new file mode 100644 index 000000000000..3fa8893fbad5 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSchemas List. */ +public final class IntegrationAccountSchemasListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_List.json + */ + /** + * Sample code: Get schemas by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getSchemasByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .list("testResourceGroup", "", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..80a0ef06e78f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsCreateOrUpdateSamples.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import java.io.IOException; + +/** Samples for IntegrationAccountSessions CreateOrUpdate. */ +public final class IntegrationAccountSessionsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an integration account session. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnIntegrationAccountSession(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountSessions() + .define("testsession123-ICN") + .withRegion((String) null) + .withExistingIntegrationAccount("testrg123", "testia123") + .withContent( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"controlNumber\":\"1234\",\"controlNumberChangedTime\":\"2017-02-21T22:30:11.9923759Z\"}", + Object.class, + SerializerEncoding.JSON)) + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsDeleteSamples.java new file mode 100644 index 000000000000..217cb31a0eeb --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSessions Delete. */ +public final class IntegrationAccountSessionsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_Delete.json + */ + /** + * Sample code: Delete an integration account session. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccountSession(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSessions() + .deleteWithResponse("testrg123", "testia123", "testsession123-ICN", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsGetSamples.java new file mode 100644 index 000000000000..cf385b5f4eee --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSessions Get. */ +public final class IntegrationAccountSessionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_Get.json + */ + /** + * Sample code: Get an integration account session. + * + * @param manager Entry point to LogicManager. + */ + public static void getAnIntegrationAccountSession(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSessions() + .getWithResponse("testrg123", "testia123", "testsession123-ICN", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsListSamples.java new file mode 100644 index 000000000000..45db82dc5bd4 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSessions List. */ +public final class IntegrationAccountSessionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_List.json + */ + /** + * Sample code: Get a list of integration account sessions. + * + * @param manager Entry point to LogicManager. + */ + public static void getAListOfIntegrationAccountSessions(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccountSessions().list("testrg123", "testia123", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..b9b7cc40184e --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsCreateOrUpdateSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.resourcemanager.logic.models.IntegrationAccountSku; +import com.azure.resourcemanager.logic.models.IntegrationAccountSkuName; + +/** Samples for IntegrationAccounts CreateOrUpdate. */ +public final class IntegrationAccountsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .define("testIntegrationAccount") + .withRegion("westus") + .withExistingResourceGroup("testResourceGroup") + .withSku(new IntegrationAccountSku().withName(IntegrationAccountSkuName.STANDARD)) + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsDeleteSamples.java new file mode 100644 index 000000000000..a65aff9ead60 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts Delete. */ +public final class IntegrationAccountsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_Delete.json + */ + /** + * Sample code: Delete an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccounts().deleteWithResponse("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsGetByResourceGroupSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..6faacc22bc1b --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts GetByResourceGroup. */ +public final class IntegrationAccountsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_Get.json + */ + /** + * Sample code: Get integration account by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getIntegrationAccountByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListByResourceGroupSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListByResourceGroupSamples.java new file mode 100644 index 000000000000..692c4bc48e0c --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts ListByResourceGroup. */ +public final class IntegrationAccountsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListByResourceGroup.json + */ + /** + * Sample code: List integration accounts by resource group name. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountsByResourceGroupName( + com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccounts().listByResourceGroup("testResourceGroup", null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListCallbackUrlSamples.java new file mode 100644 index 000000000000..b3353a21e240 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListCallbackUrlSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccounts ListCallbackUrl. */ +public final class IntegrationAccountsListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListCallbackUrl.json + */ + /** + * Sample code: List IntegrationAccount callback URL. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountCallbackURL(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .listCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2017-03-05T08:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListKeyVaultKeysSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListKeyVaultKeysSamples.java new file mode 100644 index 000000000000..fa29ac8f70ae --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListKeyVaultKeysSamples.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.KeyVaultReference; +import com.azure.resourcemanager.logic.models.ListKeyVaultKeysDefinition; + +/** Samples for IntegrationAccounts ListKeyVaultKeys. */ +public final class IntegrationAccountsListKeyVaultKeysSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListKeyVaultKeys.json + */ + /** + * Sample code: Get Integration Account callback URL. + * + * @param manager Entry point to LogicManager. + */ + public static void getIntegrationAccountCallbackURL(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .listKeyVaultKeys( + "testResourceGroup", + "testIntegrationAccount", + new ListKeyVaultKeysDefinition() + .withKeyVault( + new KeyVaultReference() + .withId( + "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.KeyVault/vaults/testKeyVault")) + .withSkipToken("testSkipToken"), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListSamples.java new file mode 100644 index 000000000000..8148ca14394e --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts List. */ +public final class IntegrationAccountsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListBySubscription.json + */ + /** + * Sample code: List integration accounts by subscription. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountsBySubscription(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccounts().list(null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsLogTrackingEventsSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsLogTrackingEventsSamples.java new file mode 100644 index 000000000000..a61598a6a15d --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsLogTrackingEventsSamples.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.Context; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.EventLevel; +import com.azure.resourcemanager.logic.models.TrackingEvent; +import com.azure.resourcemanager.logic.models.TrackingEventErrorInfo; +import com.azure.resourcemanager.logic.models.TrackingEventsDefinition; +import com.azure.resourcemanager.logic.models.TrackingRecordType; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; + +/** Samples for IntegrationAccounts LogTrackingEvents. */ +public final class IntegrationAccountsLogTrackingEventsSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_LogTrackingEvents.json + */ + /** + * Sample code: Log a tracked event. + * + * @param manager Entry point to LogicManager. + */ + public static void logATrackedEvent(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccounts() + .logTrackingEventsWithResponse( + "testResourceGroup", + "testIntegrationAccount", + new TrackingEventsDefinition() + .withSourceType("Microsoft.Logic/workflows") + .withEvents( + Arrays + .asList( + new TrackingEvent() + .withEventLevel(EventLevel.INFORMATIONAL) + .withEventTime(OffsetDateTime.parse("2016-08-05T01:54:49.505567Z")) + .withRecordType(TrackingRecordType.AS2MESSAGE) + .withRecord( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"agreementProperties\":{\"agreementName\":\"testAgreement\",\"as2From\":\"testas2from\",\"as2To\":\"testas2to\",\"receiverPartnerName\":\"testPartner2\",\"senderPartnerName\":\"testPartner1\"},\"messageProperties\":{\"IsMessageEncrypted\":false,\"IsMessageSigned\":false,\"correlationMessageId\":\"Unique" + + " message" + + " identifier\",\"direction\":\"Receive\",\"dispositionType\":\"received-success\",\"fileName\":\"test\",\"isMdnExpected\":true,\"isMessageCompressed\":false,\"isMessageFailed\":false,\"isNrrEnabled\":true,\"mdnType\":\"Async\",\"messageId\":\"12345\"}}", + Object.class, + SerializerEncoding.JSON)) + .withError( + new TrackingEventErrorInfo() + .withMessage("Some error occurred") + .withCode("NotFound")))), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsRegenerateAccessKeySamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsRegenerateAccessKeySamples.java new file mode 100644 index 000000000000..93ad6de4c4f0 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsRegenerateAccessKeySamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.KeyType; +import com.azure.resourcemanager.logic.models.RegenerateActionParameter; + +/** Samples for IntegrationAccounts RegenerateAccessKey. */ +public final class IntegrationAccountsRegenerateAccessKeySamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_RegenerateAccessKey.json + */ + /** + * Sample code: Regenerate access key. + * + * @param manager Entry point to LogicManager. + */ + public static void regenerateAccessKey(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .regenerateAccessKeyWithResponse( + "testResourceGroup", + "testIntegrationAccount", + new RegenerateActionParameter().withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsUpdateSamples.java new file mode 100644 index 000000000000..093f77a77e77 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsUpdateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.IntegrationAccount; +import com.azure.resourcemanager.logic.models.IntegrationAccountSku; +import com.azure.resourcemanager.logic.models.IntegrationAccountSkuName; + +/** Samples for IntegrationAccounts Update. */ +public final class IntegrationAccountsUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_Update.json + */ + /** + * Sample code: Patch an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void patchAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + IntegrationAccount resource = + manager + .integrationAccounts() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationAccount", Context.NONE) + .getValue(); + resource.update().withSku(new IntegrationAccountSku().withName(IntegrationAccountSkuName.STANDARD)).apply(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApiOperationsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApiOperationsListSamples.java new file mode 100644 index 000000000000..3567dc53feaa --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApiOperationsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApiOperations List. */ +public final class IntegrationServiceEnvironmentManagedApiOperationsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_ListApiOperations.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApiOperations() + .list("testResourceGroup", "testIntegrationServiceEnvironment", "servicebus", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisDeleteSamples.java new file mode 100644 index 000000000000..96feff5c9202 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApis Delete. */ +public final class IntegrationServiceEnvironmentManagedApisDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_Delete.json + */ + /** + * Sample code: Deletes the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void deletesTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .delete("testResourceGroup", "testIntegrationServiceEnvironment", "servicebus", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisGetSamples.java new file mode 100644 index 000000000000..7a0fd7a401e1 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApis Get. */ +public final class IntegrationServiceEnvironmentManagedApisGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_Get.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .getWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", "servicebus", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisListSamples.java new file mode 100644 index 000000000000..b081cd325934 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApis List. */ +public final class IntegrationServiceEnvironmentManagedApisListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_List.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .list("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisPutSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisPutSamples.java new file mode 100644 index 000000000000..845b23aefc74 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisPutSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +/** Samples for IntegrationServiceEnvironmentManagedApis Put. */ +public final class IntegrationServiceEnvironmentManagedApisPutSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_Put.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .define("servicebus") + .withRegion("brazilsouth") + .withExistingIntegrationServiceEnvironment("testResourceGroup", "testIntegrationServiceEnvironment") + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentNetworkHealthGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentNetworkHealthGetSamples.java new file mode 100644 index 000000000000..35be789f57b5 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentNetworkHealthGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentNetworkHealth Get. */ +public final class IntegrationServiceEnvironmentNetworkHealthGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_NetworkHealth.json + */ + /** + * Sample code: Gets the integration service environment network health. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentNetworkHealth( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentNetworkHealths() + .getWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentSkusListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentSkusListSamples.java new file mode 100644 index 000000000000..6bc1265777f0 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentSkusListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentSkus List. */ +public final class IntegrationServiceEnvironmentSkusListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Skus.json + */ + /** + * Sample code: List integration service environment skus. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationServiceEnvironmentSkus(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentSkus() + .list("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..154b2f832a56 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsCreateOrUpdateSamples.java @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmenEncryptionConfiguration; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmenEncryptionKeyReference; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentAccessEndpoint; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentAccessEndpointType; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentProperties; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSku; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSkuName; +import com.azure.resourcemanager.logic.models.NetworkConfiguration; +import com.azure.resourcemanager.logic.models.ResourceReference; +import java.util.Arrays; + +/** Samples for IntegrationServiceEnvironments CreateOrUpdate. */ +public final class IntegrationServiceEnvironmentsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Put.json + */ + /** + * Sample code: Create or update an integration service environment. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnIntegrationServiceEnvironment( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .define("testIntegrationServiceEnvironment") + .withRegion("brazilsouth") + .withExistingResourceGroup("testResourceGroup") + .withProperties( + new IntegrationServiceEnvironmentProperties() + .withNetworkConfiguration( + new NetworkConfiguration() + .withAccessEndpoint( + new IntegrationServiceEnvironmentAccessEndpoint() + .withType(IntegrationServiceEnvironmentAccessEndpointType.INTERNAL)) + .withSubnets( + Arrays + .asList( + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s1"), + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s2"), + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s3"), + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s4")))) + .withEncryptionConfiguration( + new IntegrationServiceEnvironmenEncryptionConfiguration() + .withEncryptionKeyReference( + new IntegrationServiceEnvironmenEncryptionKeyReference() + .withKeyVault( + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.KeyVault/vaults/testKeyVault")) + .withKeyName("testKeyName") + .withKeyVersion("13b261d30b984753869902d7f47f4d55")))) + .withSku( + new IntegrationServiceEnvironmentSku() + .withName(IntegrationServiceEnvironmentSkuName.PREMIUM) + .withCapacity(2)) + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsDeleteSamples.java new file mode 100644 index 000000000000..554ba46c5672 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments Delete. */ +public final class IntegrationServiceEnvironmentsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Delete.json + */ + /** + * Sample code: Delete an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .deleteWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsGetByResourceGroupSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..564af45cc683 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments GetByResourceGroup. */ +public final class IntegrationServiceEnvironmentsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Get.json + */ + /** + * Sample code: Get integration service environment by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getIntegrationServiceEnvironmentByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsListByResourceGroupSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsListByResourceGroupSamples.java new file mode 100644 index 000000000000..22b65fb91494 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments ListByResourceGroup. */ +public final class IntegrationServiceEnvironmentsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ListByResourceGroup.json + */ + /** + * Sample code: List integration service environments by resource group name. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationServiceEnvironmentsByResourceGroupName( + com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationServiceEnvironments().listByResourceGroup("testResourceGroup", null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsListSamples.java new file mode 100644 index 000000000000..39c8622cf4fb --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments List. */ +public final class IntegrationServiceEnvironmentsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ListBySubscription.json + */ + /** + * Sample code: List integration service environments by subscription. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationServiceEnvironmentsBySubscription( + com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationServiceEnvironments().list(null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsRestartSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsRestartSamples.java new file mode 100644 index 000000000000..8c68efe7d5b5 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsRestartSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments Restart. */ +public final class IntegrationServiceEnvironmentsRestartSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Restart.json + */ + /** + * Sample code: Restarts an integration service environment. + * + * @param manager Entry point to LogicManager. + */ + public static void restartsAnIntegrationServiceEnvironment(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .restartWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsUpdateSamples.java new file mode 100644 index 000000000000..127d7458467f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsUpdateSamples.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.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironment; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSku; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSkuName; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationServiceEnvironments Update. */ +public final class IntegrationServiceEnvironmentsUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Patch.json + */ + /** + * Sample code: Patch an integration service environment. + * + * @param manager Entry point to LogicManager. + */ + public static void patchAnIntegrationServiceEnvironment(com.azure.resourcemanager.logic.LogicManager manager) { + IntegrationServiceEnvironment resource = + manager + .integrationServiceEnvironments() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE) + .getValue(); + resource + .update() + .withTags(mapOf("tag1", "value1")) + .withSku( + new IntegrationServiceEnvironmentSku() + .withName(IntegrationServiceEnvironmentSkuName.DEVELOPER) + .withCapacity(0)) + .apply(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/OperationsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/OperationsListSamples.java new file mode 100644 index 000000000000..ce883e172a82 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/OperationsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Operations List. */ +public final class OperationsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Operations_List.json + */ + /** + * Sample code: List Microsoft.Logic operations. + * + * @param manager Entry point to LogicManager. + */ + public static void listMicrosoftLogicOperations(com.azure.resourcemanager.logic.LogicManager manager) { + manager.operations().list(Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsGetSamples.java new file mode 100644 index 000000000000..86446a49c2ac --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitions Get. */ +public final class WorkflowRunActionRepetitionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitions_Get.json + */ + /** + * Sample code: Get a repetition. + * + * @param manager Entry point to LogicManager. + */ + public static void getARepetition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitions() + .getWithResponse( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", "000001", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsListExpressionTracesSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsListExpressionTracesSamples.java new file mode 100644 index 000000000000..09aeb9c9d96e --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsListExpressionTracesSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitions ListExpressionTraces. */ +public final class WorkflowRunActionRepetitionsListExpressionTracesSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitions_ListExpressionTraces.json + */ + /** + * Sample code: List expression traces for a repetition. + * + * @param manager Entry point to LogicManager. + */ + public static void listExpressionTracesForARepetition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitions() + .listExpressionTraces( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", "000001", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsListSamples.java new file mode 100644 index 000000000000..3a61bda9b8b5 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitions List. */ +public final class WorkflowRunActionRepetitionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitions_List.json + */ + /** + * Sample code: List repetitions. + * + * @param manager Entry point to LogicManager. + */ + public static void listRepetitions(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitions() + .list("testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsRequestHistoriesGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsRequestHistoriesGetSamples.java new file mode 100644 index 000000000000..72347efb6e41 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsRequestHistoriesGetSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitionsRequestHistories Get. */ +public final class WorkflowRunActionRepetitionsRequestHistoriesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json + */ + /** + * Sample code: Get a repetition request history. + * + * @param manager Entry point to LogicManager. + */ + public static void getARepetitionRequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitionsRequestHistories() + .getWithResponse( + "test-resource-group", + "test-workflow", + "08586776228332053161046300351", + "HTTP_Webhook", + "000001", + "08586611142732800686", + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsRequestHistoriesListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsRequestHistoriesListSamples.java new file mode 100644 index 000000000000..9ba66fd5c81e --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsRequestHistoriesListSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitionsRequestHistories List. */ +public final class WorkflowRunActionRepetitionsRequestHistoriesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitionsRequestHistories_List.json + */ + /** + * Sample code: List repetition request history. + * + * @param manager Entry point to LogicManager. + */ + public static void listRepetitionRequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitionsRequestHistories() + .list( + "test-resource-group", + "test-workflow", + "08586776228332053161046300351", + "HTTP_Webhook", + "000001", + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRequestHistoriesGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRequestHistoriesGetSamples.java new file mode 100644 index 000000000000..f2812df67303 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRequestHistoriesGetSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRequestHistories Get. */ +public final class WorkflowRunActionRequestHistoriesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRequestHistories_Get.json + */ + /** + * Sample code: Get a request history. + * + * @param manager Entry point to LogicManager. + */ + public static void getARequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRequestHistories() + .getWithResponse( + "test-resource-group", + "test-workflow", + "08586776228332053161046300351", + "HTTP_Webhook", + "08586611142732800686", + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRequestHistoriesListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRequestHistoriesListSamples.java new file mode 100644 index 000000000000..1b56d35fac1e --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRequestHistoriesListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRequestHistories List. */ +public final class WorkflowRunActionRequestHistoriesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRequestHistories_List.json + */ + /** + * Sample code: List a request history. + * + * @param manager Entry point to LogicManager. + */ + public static void listARequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRequestHistories() + .list( + "test-resource-group", "test-workflow", "08586776228332053161046300351", "HTTP_Webhook", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionScopeRepetitionsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionScopeRepetitionsGetSamples.java new file mode 100644 index 000000000000..34b153ec5036 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionScopeRepetitionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionScopeRepetitions Get. */ +public final class WorkflowRunActionScopeRepetitionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionScopeRepetitions_Get.json + */ + /** + * Sample code: Get a scoped repetition. + * + * @param manager Entry point to LogicManager. + */ + public static void getAScopedRepetition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionScopeRepetitions() + .getWithResponse( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "for_each", "000000", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionScopeRepetitionsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionScopeRepetitionsListSamples.java new file mode 100644 index 000000000000..9ab85fa3d8f4 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionScopeRepetitionsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionScopeRepetitions List. */ +public final class WorkflowRunActionScopeRepetitionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionScopeRepetitions_List.json + */ + /** + * Sample code: List the scoped repetitions. + * + * @param manager Entry point to LogicManager. + */ + public static void listTheScopedRepetitions(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionScopeRepetitions() + .list("testResourceGroup", "testFlow", "08586776228332053161046300351", "for_each", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsGetSamples.java new file mode 100644 index 000000000000..d8d922f91399 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActions Get. */ +public final class WorkflowRunActionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActions_Get.json + */ + /** + * Sample code: Get a workflow run action. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowRunAction(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActions() + .getWithResponse( + "test-resource-group", "test-workflow", "08586676746934337772206998657CU22", "HTTP", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsListExpressionTracesSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsListExpressionTracesSamples.java new file mode 100644 index 000000000000..877d4546bebe --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsListExpressionTracesSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActions ListExpressionTraces. */ +public final class WorkflowRunActionsListExpressionTracesSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActions_ListExpressionTraces.json + */ + /** + * Sample code: List expression traces. + * + * @param manager Entry point to LogicManager. + */ + public static void listExpressionTraces(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActions() + .listExpressionTraces( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsListSamples.java new file mode 100644 index 000000000000..a54d49089d46 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActions List. */ +public final class WorkflowRunActionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActions_List.json + */ + /** + * Sample code: List a workflow run actions. + * + * @param manager Entry point to LogicManager. + */ + public static void listAWorkflowRunActions(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActions() + .list( + "test-resource-group", "test-workflow", "08586676746934337772206998657CU22", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunOperationsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunOperationsGetSamples.java new file mode 100644 index 000000000000..5cbb80ad26f6 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunOperationsGetSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunOperations Get. */ +public final class WorkflowRunOperationsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunOperations_Get.json + */ + /** + * Sample code: Get a run operation. + * + * @param manager Entry point to LogicManager. + */ + public static void getARunOperation(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunOperations() + .getWithResponse( + "testResourceGroup", + "testFlow", + "08586774142730039209110422528", + "ebdcbbde-c4db-43ec-987c-fd0f7726f43b", + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsCancelSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsCancelSamples.java new file mode 100644 index 000000000000..ff0625fdc97e --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsCancelSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRuns Cancel. */ +public final class WorkflowRunsCancelSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRuns_Cancel.json + */ + /** + * Sample code: Cancel a workflow run. + * + * @param manager Entry point to LogicManager. + */ + public static void cancelAWorkflowRun(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRuns() + .cancelWithResponse( + "test-resource-group", "test-workflow", "08586676746934337772206998657CU22", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsGetSamples.java new file mode 100644 index 000000000000..b13a34e391f3 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRuns Get. */ +public final class WorkflowRunsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRuns_Get.json + */ + /** + * Sample code: Get a run for a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void getARunForAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRuns() + .getWithResponse("test-resource-group", "test-workflow", "08586676746934337772206998657CU22", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsListSamples.java new file mode 100644 index 000000000000..f7f0fc9998bb --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRuns List. */ +public final class WorkflowRunsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRuns_List.json + */ + /** + * Sample code: List workflow runs. + * + * @param manager Entry point to LogicManager. + */ + public static void listWorkflowRuns(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowRuns().list("test-resource-group", "test-workflow", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesGetSamples.java new file mode 100644 index 000000000000..c26f8933d98c --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesGetSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggerHistories Get. */ +public final class WorkflowTriggerHistoriesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggerHistories_Get.json + */ + /** + * Sample code: Get a workflow trigger history. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowTriggerHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggerHistories() + .getWithResponse( + "testResourceGroup", + "testWorkflowName", + "testTriggerName", + "08586676746934337772206998657CU22", + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesListSamples.java new file mode 100644 index 000000000000..5787503b8474 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggerHistories List. */ +public final class WorkflowTriggerHistoriesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggerHistories_List.json + */ + /** + * Sample code: List a workflow trigger history. + * + * @param manager Entry point to LogicManager. + */ + public static void listAWorkflowTriggerHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggerHistories() + .list("testResourceGroup", "testWorkflowName", "testTriggerName", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesResubmitSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesResubmitSamples.java new file mode 100644 index 000000000000..878db0259b64 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesResubmitSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggerHistories Resubmit. */ +public final class WorkflowTriggerHistoriesResubmitSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggerHistories_Resubmit.json + */ + /** + * Sample code: Resubmit a workflow run based on the trigger history. + * + * @param manager Entry point to LogicManager. + */ + public static void resubmitAWorkflowRunBasedOnTheTriggerHistory( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggerHistories() + .resubmitWithResponse( + "testResourceGroup", "testWorkflowName", "testTriggerName", "testHistoryName", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersGetSamples.java new file mode 100644 index 000000000000..3a1d7a877a9a --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersGetSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers Get. */ +public final class WorkflowTriggersGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_Get.json + */ + /** + * Sample code: Get a workflow trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowTrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().getWithResponse("test-resource-group", "test-workflow", "manual", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersGetSchemaJsonSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersGetSchemaJsonSamples.java new file mode 100644 index 000000000000..8de8584856c2 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersGetSchemaJsonSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers GetSchemaJson. */ +public final class WorkflowTriggersGetSchemaJsonSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_GetSchemaJson.json + */ + /** + * Sample code: Get trigger schema. + * + * @param manager Entry point to LogicManager. + */ + public static void getTriggerSchema(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggers() + .getSchemaJsonWithResponse("testResourceGroup", "testWorkflow", "testTrigger", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersListCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersListCallbackUrlSamples.java new file mode 100644 index 000000000000..e33855d76f14 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersListCallbackUrlSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers ListCallbackUrl. */ +public final class WorkflowTriggersListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_ListCallbackUrl.json + */ + /** + * Sample code: Get the callback URL for a trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheCallbackURLForATrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggers() + .listCallbackUrlWithResponse("test-resource-group", "test-workflow", "manual", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersListSamples.java new file mode 100644 index 000000000000..ddf672c15925 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers List. */ +public final class WorkflowTriggersListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_List.json + */ + /** + * Sample code: List workflow triggers. + * + * @param manager Entry point to LogicManager. + */ + public static void listWorkflowTriggers(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().list("test-resource-group", "test-workflow", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersResetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersResetSamples.java new file mode 100644 index 000000000000..b090c4205b3e --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersResetSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers Reset. */ +public final class WorkflowTriggersResetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_Reset.json + */ + /** + * Sample code: Reset trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void resetTrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().resetWithResponse("testResourceGroup", "testWorkflow", "testTrigger", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersRunSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersRunSamples.java new file mode 100644 index 000000000000..95fdf6aec015 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersRunSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers Run. */ +public final class WorkflowTriggersRunSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_Run.json + */ + /** + * Sample code: Run a workflow trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void runAWorkflowTrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().runWithResponse("test-resource-group", "test-workflow", "manual", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersSetStateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersSetStateSamples.java new file mode 100644 index 000000000000..b42438a1be7f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersSetStateSamples.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.SetTriggerStateActionDefinition; +import com.azure.resourcemanager.logic.models.WorkflowTriggerReference; + +/** Samples for WorkflowTriggers SetState. */ +public final class WorkflowTriggersSetStateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_SetState.json + */ + /** + * Sample code: Set trigger state. + * + * @param manager Entry point to LogicManager. + */ + public static void setTriggerState(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggers() + .setStateWithResponse( + "testResourceGroup", + "testWorkflow", + "testTrigger", + new SetTriggerStateActionDefinition() + .withSource( + new WorkflowTriggerReference() + .withId( + "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sourceResGroup/providers/Microsoft.Logic/workflows/sourceWorkflow/triggers/sourceTrigger")), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionTriggersListCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionTriggersListCallbackUrlSamples.java new file mode 100644 index 000000000000..815d385b70f4 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionTriggersListCallbackUrlSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for WorkflowVersionTriggers ListCallbackUrl. */ +public final class WorkflowVersionTriggersListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowVersionTriggers_ListCallbackUrl.json + */ + /** + * Sample code: Get the callback url for a trigger of a workflow version. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheCallbackUrlForATriggerOfAWorkflowVersion( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowVersionTriggers() + .listCallbackUrlWithResponse( + "testResourceGroup", + "testWorkflowName", + "testWorkflowVersionId", + "testTriggerName", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2017-03-05T08:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionsGetSamples.java new file mode 100644 index 000000000000..e0dca981184b --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowVersions Get. */ +public final class WorkflowVersionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowVersions_Get.json + */ + /** + * Sample code: Get a workflow version. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowVersion(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowVersions() + .getWithResponse("test-resource-group", "test-workflow", "08586676824806722526", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionsListSamples.java new file mode 100644 index 000000000000..bd6097ee9503 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowVersions List. */ +public final class WorkflowVersionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowVersions_List.json + */ + /** + * Sample code: List a workflows versions. + * + * @param manager Entry point to LogicManager. + */ + public static void listAWorkflowsVersions(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowVersions().list("test-resource-group", "test-workflow", null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..4731f686f859 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsCreateOrUpdateSamples.java @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowParameter; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for Workflows CreateOrUpdate. */ +public final class WorkflowsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .workflows() + .define("test-workflow") + .withRegion("brazilsouth") + .withExistingResourceGroup("test-resource-group") + .withTags(mapOf()) + .withIntegrationAccount( + new ResourceReference() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account")) + .withDefinition( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{\"Find_pet_by_ID\":{\"type\":\"ApiConnection\",\"inputs\":{\"path\":\"/pet/@{encodeURIComponent('1')}\",\"method\":\"get\",\"host\":{\"connection\":{\"name\":\"@parameters('$connections')['test-custom-connector']['connectionId']\"}}},\"runAfter\":{}}},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"parameters\":{\"$connections\":{\"type\":\"Object\",\"defaultValue\":{}}},\"triggers\":{\"manual\":{\"type\":\"Request\",\"inputs\":{\"schema\":{}},\"kind\":\"Http\"}}}", + Object.class, + SerializerEncoding.JSON)) + .withParameters( + mapOf( + "$connections", + new WorkflowParameter() + .withValue( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"test-custom-connector\":{\"connectionId\":\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Web/connections/test-custom-connector\",\"connectionName\":\"test-custom-connector\",\"id\":\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/test-custom-connector\"}}", + Object.class, + SerializerEncoding.JSON)))) + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsDeleteSamples.java new file mode 100644 index 000000000000..485c8c452999 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows Delete. */ +public final class WorkflowsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Delete.json + */ + /** + * Sample code: Delete a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().deleteWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsDisableSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsDisableSamples.java new file mode 100644 index 000000000000..0081669324df --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsDisableSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows Disable. */ +public final class WorkflowsDisableSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Disable.json + */ + /** + * Sample code: Disable a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void disableAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().disableWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsEnableSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsEnableSamples.java new file mode 100644 index 000000000000..36a4198c15f8 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsEnableSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows Enable. */ +public final class WorkflowsEnableSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Enable.json + */ + /** + * Sample code: Enable a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void enableAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().enableWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsGenerateUpgradedDefinitionSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsGenerateUpgradedDefinitionSamples.java new file mode 100644 index 000000000000..7fc3c8eddb27 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsGenerateUpgradedDefinitionSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GenerateUpgradedDefinitionParameters; + +/** Samples for Workflows GenerateUpgradedDefinition. */ +public final class WorkflowsGenerateUpgradedDefinitionSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_GenerateUpgradedDefinition.json + */ + /** + * Sample code: Generate an upgraded definition. + * + * @param manager Entry point to LogicManager. + */ + public static void generateAnUpgradedDefinition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .generateUpgradedDefinitionWithResponse( + "test-resource-group", + "test-workflow", + new GenerateUpgradedDefinitionParameters().withTargetSchemaVersion("2016-06-01"), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsGetByResourceGroupSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..0308cd10c1aa --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsGetByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows GetByResourceGroup. */ +public final class WorkflowsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Get.json + */ + /** + * Sample code: Get a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().getByResourceGroupWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListByResourceGroupSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListByResourceGroupSamples.java new file mode 100644 index 000000000000..7ec6f2d50125 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows ListByResourceGroup. */ +public final class WorkflowsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListByResourceGroup.json + */ + /** + * Sample code: List all workflows in a resource group. + * + * @param manager Entry point to LogicManager. + */ + public static void listAllWorkflowsInAResourceGroup(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().listByResourceGroup("test-resource-group", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListCallbackUrlSamples.java new file mode 100644 index 000000000000..0718491e1e41 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListCallbackUrlSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for Workflows ListCallbackUrl. */ +public final class WorkflowsListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListCallbackUrl.json + */ + /** + * Sample code: Get callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .listCallbackUrlWithResponse( + "testResourceGroup", + "testWorkflow", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListSamples.java new file mode 100644 index 000000000000..4a57e8c20e8f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows List. */ +public final class WorkflowsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListBySubscription.json + */ + /** + * Sample code: List all workflows in a subscription. + * + * @param manager Entry point to LogicManager. + */ + public static void listAllWorkflowsInASubscription(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().list(null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListSwaggerSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListSwaggerSamples.java new file mode 100644 index 000000000000..b490b84eb9f6 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListSwaggerSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows ListSwagger. */ +public final class WorkflowsListSwaggerSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListSwagger.json + */ + /** + * Sample code: Get the swagger for a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheSwaggerForAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().listSwaggerWithResponse("testResourceGroup", "testWorkflowName", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsMoveSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsMoveSamples.java new file mode 100644 index 000000000000..c58046128ff6 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsMoveSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.WorkflowReference; + +/** Samples for Workflows Move. */ +public final class WorkflowsMoveSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Move.json + */ + /** + * Sample code: Move a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void moveAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .move( + "testResourceGroup", + "testWorkflow", + new WorkflowReference() + .withId( + "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/newResourceGroup/providers/Microsoft.Logic/workflows/newWorkflowName"), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsRegenerateAccessKeySamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsRegenerateAccessKeySamples.java new file mode 100644 index 000000000000..f56adad05557 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsRegenerateAccessKeySamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.KeyType; +import com.azure.resourcemanager.logic.models.RegenerateActionParameter; + +/** Samples for Workflows RegenerateAccessKey. */ +public final class WorkflowsRegenerateAccessKeySamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_RegenerateAccessKey.json + */ + /** + * Sample code: Regenerate the callback URL access key for request triggers. + * + * @param manager Entry point to LogicManager. + */ + public static void regenerateTheCallbackURLAccessKeyForRequestTriggers( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .regenerateAccessKeyWithResponse( + "testResourceGroup", + "testWorkflowName", + new RegenerateActionParameter().withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsUpdateSamples.java new file mode 100644 index 000000000000..2c9799617a36 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsUpdateSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows Update. */ +public final class WorkflowsUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Update.json + */ + /** + * Sample code: Patch a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void patchAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().updateWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsValidateByLocationSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsValidateByLocationSamples.java new file mode 100644 index 000000000000..19c96c6f6c83 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsValidateByLocationSamples.java @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.Context; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.fluent.models.WorkflowInner; +import com.azure.resourcemanager.logic.models.ResourceReference; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for Workflows ValidateByLocation. */ +public final class WorkflowsValidateByLocationSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ValidateByLocation.json + */ + /** + * Sample code: Validate a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void validateAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .workflows() + .validateByLocationWithResponse( + "test-resource-group", + "brazilsouth", + "test-workflow", + new WorkflowInner() + .withLocation("brazilsouth") + .withTags(mapOf()) + .withIntegrationAccount( + new ResourceReference() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account")) + .withDefinition( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"parameters\":{},\"triggers\":{}}", + Object.class, + SerializerEncoding.JSON)), + Context.NONE); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsValidateByResourceGroupSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsValidateByResourceGroupSamples.java new file mode 100644 index 000000000000..86e53966ab43 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsValidateByResourceGroupSamples.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.Context; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.fluent.models.WorkflowInner; +import com.azure.resourcemanager.logic.models.ResourceReference; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for Workflows ValidateByResourceGroup. */ +public final class WorkflowsValidateByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ValidateByResourceGroup.json + */ + /** + * Sample code: Validate a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void validateAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .workflows() + .validateByResourceGroupWithResponse( + "test-resource-group", + "test-workflow", + new WorkflowInner() + .withLocation("brazilsouth") + .withTags(mapOf()) + .withIntegrationAccount( + new ResourceReference() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account")) + .withDefinition( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"parameters\":{},\"triggers\":{}}", + Object.class, + SerializerEncoding.JSON)), + Context.NONE); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +}