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