diff --git a/sdk/logic/mgmt-v2016_06_01/pom.xml b/sdk/logic/mgmt-v2016_06_01/pom.xml index 09b0625bd2054..9bd13ee66b592 100644 --- a/sdk/logic/mgmt-v2016_06_01/pom.xml +++ b/sdk/logic/mgmt-v2016_06_01/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 1.2.0 + 1.1.0 ../../../pom.management.xml azure-mgmt-logic @@ -19,7 +19,7 @@ jar Microsoft Azure SDK for Logic Management This package contains Microsoft Logic Management SDK. - https://github.com/Azure/azure-libraries-for-java + https://github.com/Azure/azure-sdk-for-java The MIT License (MIT) @@ -28,8 +28,8 @@ - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git + scm:git:https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git HEAD @@ -71,6 +71,8 @@ azure-arm-client-runtime test-jar test + + 1.6.5 diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/ActionRunWorkflowRequestHistory.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/ActionRunWorkflowRequestHistory.java new file mode 100644 index 0000000000000..6bbc26fa28d9a --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/ActionRunWorkflowRequestHistory.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.logic.v2016_06_01.implementation.RequestHistoryInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.logic.v2016_06_01.implementation.LogicManager; +import java.util.Map; + +/** + * Type representing ActionRunWorkflowRequestHistory. + */ +public interface ActionRunWorkflowRequestHistory extends HasInner, Indexable, Refreshable, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + RequestHistoryProperties properties(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/AssemblyDefinition.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/AssemblyDefinition.java index 4592e25603e5b..31558a0260e92 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/AssemblyDefinition.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/AssemblyDefinition.java @@ -75,6 +75,9 @@ interface Blank extends WithIntegrationAccount { interface WithIntegrationAccount { /** * Specifies resourceGroupName, integrationAccountName. + * @param resourceGroupName The resource group name + * @param integrationAccountName The integration account name + * @return the next definition stage */ WithProperties withExistingIntegrationAccount(String resourceGroupName, String integrationAccountName); } @@ -85,6 +88,8 @@ interface WithIntegrationAccount { interface WithProperties { /** * Specifies properties. + * @param properties The assembly properties + * @return the next definition stage */ WithCreate withProperties(AssemblyProperties properties); } @@ -95,6 +100,8 @@ interface WithProperties { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next definition stage */ WithCreate withLocation(String location); } @@ -105,6 +112,8 @@ interface WithLocation { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next definition stage */ WithCreate withTags(Map tags); } @@ -133,6 +142,8 @@ interface UpdateStages { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next update stage */ Update withLocation(String location); } @@ -143,6 +154,8 @@ interface WithLocation { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next update stage */ Update withTags(Map tags); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/BatchConfiguration.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/BatchConfiguration.java index 7397ca775da78..5180a46421691 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/BatchConfiguration.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/BatchConfiguration.java @@ -75,6 +75,9 @@ interface Blank extends WithIntegrationAccount { interface WithIntegrationAccount { /** * Specifies resourceGroupName, integrationAccountName. + * @param resourceGroupName The resource group name + * @param integrationAccountName The integration account name + * @return the next definition stage */ WithProperties withExistingIntegrationAccount(String resourceGroupName, String integrationAccountName); } @@ -85,6 +88,8 @@ interface WithIntegrationAccount { interface WithProperties { /** * Specifies properties. + * @param properties The batch configuration properties + * @return the next definition stage */ WithCreate withProperties(BatchConfigurationProperties properties); } @@ -95,6 +100,8 @@ interface WithProperties { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next definition stage */ WithCreate withLocation(String location); } @@ -105,6 +112,8 @@ interface WithLocation { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next definition stage */ WithCreate withTags(Map tags); } @@ -133,6 +142,8 @@ interface UpdateStages { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next update stage */ Update withLocation(String location); } @@ -143,6 +154,8 @@ interface WithLocation { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next update stage */ Update withTags(Map tags); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccount.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccount.java index f4207b41508f8..f55bf28b060d0 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccount.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccount.java @@ -57,21 +57,25 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup, Resource.UpdateWithTags< */ interface UpdateStages { /** - * The stage of the integrationaccount {0} allowing to specify Properties. + * The stage of the integrationaccount update allowing to specify Properties. */ interface WithProperties { /** * Specifies properties. + * @param properties The integration account properties + * @return the next update stage */ Update withProperties(Object properties); } /** - * The stage of the integrationaccount {0} allowing to specify Sku. + * The stage of the integrationaccount update allowing to specify Sku. */ interface WithSku { /** * Specifies sku. + * @param sku The sku + * @return the next update stage */ Update withSku(IntegrationAccountSku sku); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountAgreement.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountAgreement.java index 25dcb74912238..49dad8d92286f 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountAgreement.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountAgreement.java @@ -116,6 +116,9 @@ interface Blank extends WithIntegrationAccount { interface WithIntegrationAccount { /** * Specifies resourceGroupName, integrationAccountName. + * @param resourceGroupName The resource group name + * @param integrationAccountName The integration account name + * @return the next definition stage */ WithAgreementType withExistingIntegrationAccount(String resourceGroupName, String integrationAccountName); } @@ -126,6 +129,8 @@ interface WithIntegrationAccount { interface WithAgreementType { /** * Specifies agreementType. + * @param agreementType The agreement type. Possible values include: 'NotSpecified', 'AS2', 'X12', 'Edifact' + * @return the next definition stage */ WithContent withAgreementType(AgreementType agreementType); } @@ -136,6 +141,8 @@ interface WithAgreementType { interface WithContent { /** * Specifies content. + * @param content The agreement content + * @return the next definition stage */ WithGuestIdentity withContent(AgreementContent content); } @@ -146,6 +153,8 @@ interface WithContent { interface WithGuestIdentity { /** * Specifies guestIdentity. + * @param guestIdentity The business identity of the guest partner + * @return the next definition stage */ WithGuestPartner withGuestIdentity(BusinessIdentity guestIdentity); } @@ -156,6 +165,8 @@ interface WithGuestIdentity { interface WithGuestPartner { /** * Specifies guestPartner. + * @param guestPartner The integration account partner that is set as guest partner for this agreement + * @return the next definition stage */ WithHostIdentity withGuestPartner(String guestPartner); } @@ -166,6 +177,8 @@ interface WithGuestPartner { interface WithHostIdentity { /** * Specifies hostIdentity. + * @param hostIdentity The business identity of the host partner + * @return the next definition stage */ WithHostPartner withHostIdentity(BusinessIdentity hostIdentity); } @@ -176,6 +189,8 @@ interface WithHostIdentity { interface WithHostPartner { /** * Specifies hostPartner. + * @param hostPartner The integration account partner that is set as host partner for this agreement + * @return the next definition stage */ WithCreate withHostPartner(String hostPartner); } @@ -186,6 +201,8 @@ interface WithHostPartner { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next definition stage */ WithCreate withLocation(String location); } @@ -196,6 +213,8 @@ interface WithLocation { interface WithMetadata { /** * Specifies metadata. + * @param metadata The metadata + * @return the next definition stage */ WithCreate withMetadata(Object metadata); } @@ -206,6 +225,8 @@ interface WithMetadata { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next definition stage */ WithCreate withTags(Map tags); } @@ -234,6 +255,8 @@ interface UpdateStages { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next update stage */ Update withLocation(String location); } @@ -244,6 +267,8 @@ interface WithLocation { interface WithMetadata { /** * Specifies metadata. + * @param metadata The metadata + * @return the next update stage */ Update withMetadata(Object metadata); } @@ -254,6 +279,8 @@ interface WithMetadata { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next update stage */ Update withTags(Map tags); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountCertificate.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountCertificate.java index 0738ab8444281..19e1107b4bc6c 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountCertificate.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountCertificate.java @@ -96,6 +96,9 @@ interface Blank extends WithIntegrationAccount { interface WithIntegrationAccount { /** * Specifies resourceGroupName, integrationAccountName. + * @param resourceGroupName The resource group name + * @param integrationAccountName The integration account name + * @return the next definition stage */ WithCreate withExistingIntegrationAccount(String resourceGroupName, String integrationAccountName); } @@ -106,6 +109,8 @@ interface WithIntegrationAccount { interface WithKey { /** * Specifies key. + * @param key The key details in the key vault + * @return the next definition stage */ WithCreate withKey(KeyVaultKeyReference key); } @@ -116,6 +121,8 @@ interface WithKey { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next definition stage */ WithCreate withLocation(String location); } @@ -126,6 +133,8 @@ interface WithLocation { interface WithMetadata { /** * Specifies metadata. + * @param metadata The metadata + * @return the next definition stage */ WithCreate withMetadata(Object metadata); } @@ -136,6 +145,8 @@ interface WithMetadata { interface WithPublicCertificate { /** * Specifies publicCertificate. + * @param publicCertificate The public certificate + * @return the next definition stage */ WithCreate withPublicCertificate(String publicCertificate); } @@ -146,6 +157,8 @@ interface WithPublicCertificate { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next definition stage */ WithCreate withTags(Map tags); } @@ -174,6 +187,8 @@ interface UpdateStages { interface WithKey { /** * Specifies key. + * @param key The key details in the key vault + * @return the next update stage */ Update withKey(KeyVaultKeyReference key); } @@ -184,6 +199,8 @@ interface WithKey { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next update stage */ Update withLocation(String location); } @@ -194,6 +211,8 @@ interface WithLocation { interface WithMetadata { /** * Specifies metadata. + * @param metadata The metadata + * @return the next update stage */ Update withMetadata(Object metadata); } @@ -204,6 +223,8 @@ interface WithMetadata { interface WithPublicCertificate { /** * Specifies publicCertificate. + * @param publicCertificate The public certificate + * @return the next update stage */ Update withPublicCertificate(String publicCertificate); } @@ -214,6 +235,8 @@ interface WithPublicCertificate { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next update stage */ Update withTags(Map tags); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountMap.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountMap.java index 2c135a76758b8..aa4f74725b116 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountMap.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountMap.java @@ -111,6 +111,9 @@ interface Blank extends WithIntegrationAccount { interface WithIntegrationAccount { /** * Specifies resourceGroupName, integrationAccountName. + * @param resourceGroupName The resource group name + * @param integrationAccountName The integration account name + * @return the next definition stage */ WithMapType withExistingIntegrationAccount(String resourceGroupName, String integrationAccountName); } @@ -121,6 +124,8 @@ interface WithIntegrationAccount { interface WithMapType { /** * Specifies mapType. + * @param mapType The map type. Possible values include: 'NotSpecified', 'Xslt' + * @return the next definition stage */ WithCreate withMapType(MapType mapType); } @@ -131,6 +136,8 @@ interface WithMapType { interface WithContent { /** * Specifies content. + * @param content The content + * @return the next definition stage */ WithCreate withContent(String content); } @@ -141,6 +148,8 @@ interface WithContent { interface WithContentType { /** * Specifies contentType. + * @param contentType The content type + * @return the next definition stage */ WithCreate withContentType(String contentType); } @@ -151,6 +160,8 @@ interface WithContentType { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next definition stage */ WithCreate withLocation(String location); } @@ -161,6 +172,8 @@ interface WithLocation { interface WithMetadata { /** * Specifies metadata. + * @param metadata The metadata + * @return the next definition stage */ WithCreate withMetadata(Object metadata); } @@ -171,6 +184,8 @@ interface WithMetadata { interface WithParametersSchema { /** * Specifies parametersSchema. + * @param parametersSchema The parameters schema of integration account map + * @return the next definition stage */ WithCreate withParametersSchema(IntegrationAccountMapPropertiesParametersSchema parametersSchema); } @@ -181,6 +196,8 @@ interface WithParametersSchema { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next definition stage */ WithCreate withTags(Map tags); } @@ -209,6 +226,8 @@ interface UpdateStages { interface WithContent { /** * Specifies content. + * @param content The content + * @return the next update stage */ Update withContent(String content); } @@ -219,6 +238,8 @@ interface WithContent { interface WithContentType { /** * Specifies contentType. + * @param contentType The content type + * @return the next update stage */ Update withContentType(String contentType); } @@ -229,6 +250,8 @@ interface WithContentType { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next update stage */ Update withLocation(String location); } @@ -239,6 +262,8 @@ interface WithLocation { interface WithMetadata { /** * Specifies metadata. + * @param metadata The metadata + * @return the next update stage */ Update withMetadata(Object metadata); } @@ -249,6 +274,8 @@ interface WithMetadata { interface WithParametersSchema { /** * Specifies parametersSchema. + * @param parametersSchema The parameters schema of integration account map + * @return the next update stage */ Update withParametersSchema(IntegrationAccountMapPropertiesParametersSchema parametersSchema); } @@ -259,6 +286,8 @@ interface WithParametersSchema { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next update stage */ Update withTags(Map tags); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountPartner.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountPartner.java index 9561a92c22c1c..34b5b9a7b4dd7 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountPartner.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountPartner.java @@ -96,6 +96,9 @@ interface Blank extends WithIntegrationAccount { interface WithIntegrationAccount { /** * Specifies resourceGroupName, integrationAccountName. + * @param resourceGroupName The resource group name + * @param integrationAccountName The integration account name + * @return the next definition stage */ WithContent withExistingIntegrationAccount(String resourceGroupName, String integrationAccountName); } @@ -106,6 +109,8 @@ interface WithIntegrationAccount { interface WithContent { /** * Specifies content. + * @param content The partner content + * @return the next definition stage */ WithPartnerType withContent(PartnerContent content); } @@ -116,6 +121,8 @@ interface WithContent { interface WithPartnerType { /** * Specifies partnerType. + * @param partnerType The partner type. Possible values include: 'NotSpecified', 'B2B' + * @return the next definition stage */ WithCreate withPartnerType(PartnerType partnerType); } @@ -126,6 +133,8 @@ interface WithPartnerType { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next definition stage */ WithCreate withLocation(String location); } @@ -136,6 +145,8 @@ interface WithLocation { interface WithMetadata { /** * Specifies metadata. + * @param metadata The metadata + * @return the next definition stage */ WithCreate withMetadata(Object metadata); } @@ -146,6 +157,8 @@ interface WithMetadata { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next definition stage */ WithCreate withTags(Map tags); } @@ -174,6 +187,8 @@ interface UpdateStages { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next update stage */ Update withLocation(String location); } @@ -184,6 +199,8 @@ interface WithLocation { interface WithMetadata { /** * Specifies metadata. + * @param metadata The metadata + * @return the next update stage */ Update withMetadata(Object metadata); } @@ -194,6 +211,8 @@ interface WithMetadata { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next update stage */ Update withTags(Map tags); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountRosettaNetProcessConfiguration.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountRosettaNetProcessConfiguration.java new file mode 100644 index 0000000000000..5d2a2a6467ead --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountRosettaNetProcessConfiguration.java @@ -0,0 +1,318 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.logic.v2016_06_01.implementation.IntegrationAccountRosettaNetProcessConfigurationInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.model.Updatable; +import com.microsoft.azure.arm.model.Appliable; +import com.microsoft.azure.arm.model.Creatable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.logic.v2016_06_01.implementation.LogicManager; +import java.util.Map; +import org.joda.time.DateTime; + +/** + * Type representing IntegrationAccountRosettaNetProcessConfiguration. + */ +public interface IntegrationAccountRosettaNetProcessConfiguration extends HasInner, Indexable, Refreshable, Updatable, HasManager { + /** + * @return the activitySettings value. + */ + RosettaNetPipActivitySettings activitySettings(); + + /** + * @return the changedTime value. + */ + DateTime changedTime(); + + /** + * @return the createdTime value. + */ + DateTime createdTime(); + + /** + * @return the description value. + */ + String description(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the initiatorRoleSettings value. + */ + RosettaNetPipRoleSettings initiatorRoleSettings(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the metadata value. + */ + Map metadata(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the processCode value. + */ + String processCode(); + + /** + * @return the processName value. + */ + String processName(); + + /** + * @return the processVersion value. + */ + String processVersion(); + + /** + * @return the responderRoleSettings value. + */ + RosettaNetPipRoleSettings responderRoleSettings(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + + /** + * The entirety of the IntegrationAccountRosettaNetProcessConfiguration definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithIntegrationAccount, DefinitionStages.WithActivitySettings, DefinitionStages.WithInitiatorRoleSettings, DefinitionStages.WithProcessCode, DefinitionStages.WithProcessName, DefinitionStages.WithProcessVersion, DefinitionStages.WithResponderRoleSettings, DefinitionStages.WithCreate { + } + + /** + * Grouping of IntegrationAccountRosettaNetProcessConfiguration definition stages. + */ + interface DefinitionStages { + /** + * The first stage of a IntegrationAccountRosettaNetProcessConfiguration definition. + */ + interface Blank extends WithIntegrationAccount { + } + + /** + * The stage of the integrationaccountrosettanetprocessconfiguration definition allowing to specify IntegrationAccount. + */ + interface WithIntegrationAccount { + /** + * Specifies resourceGroupName, integrationAccountName. + * @param resourceGroupName The resource group name + * @param integrationAccountName The integration account name + * @return the next definition stage + */ + WithActivitySettings withExistingIntegrationAccount(String resourceGroupName, String integrationAccountName); + } + + /** + * The stage of the integrationaccountrosettanetprocessconfiguration definition allowing to specify ActivitySettings. + */ + interface WithActivitySettings { + /** + * Specifies activitySettings. + * @param activitySettings The RosettaNet process configuration activity settings + * @return the next definition stage + */ + WithInitiatorRoleSettings withActivitySettings(RosettaNetPipActivitySettings activitySettings); + } + + /** + * The stage of the integrationaccountrosettanetprocessconfiguration definition allowing to specify InitiatorRoleSettings. + */ + interface WithInitiatorRoleSettings { + /** + * Specifies initiatorRoleSettings. + * @param initiatorRoleSettings The RosettaNet initiator role settings + * @return the next definition stage + */ + WithProcessCode withInitiatorRoleSettings(RosettaNetPipRoleSettings initiatorRoleSettings); + } + + /** + * The stage of the integrationaccountrosettanetprocessconfiguration definition allowing to specify ProcessCode. + */ + interface WithProcessCode { + /** + * Specifies processCode. + * @param processCode The integration account RosettaNet process code + * @return the next definition stage + */ + WithProcessName withProcessCode(String processCode); + } + + /** + * The stage of the integrationaccountrosettanetprocessconfiguration definition allowing to specify ProcessName. + */ + interface WithProcessName { + /** + * Specifies processName. + * @param processName The integration account RosettaNet process name + * @return the next definition stage + */ + WithProcessVersion withProcessName(String processName); + } + + /** + * The stage of the integrationaccountrosettanetprocessconfiguration definition allowing to specify ProcessVersion. + */ + interface WithProcessVersion { + /** + * Specifies processVersion. + * @param processVersion The integration account RosettaNet process version + * @return the next definition stage + */ + WithResponderRoleSettings withProcessVersion(String processVersion); + } + + /** + * The stage of the integrationaccountrosettanetprocessconfiguration definition allowing to specify ResponderRoleSettings. + */ + interface WithResponderRoleSettings { + /** + * Specifies responderRoleSettings. + * @param responderRoleSettings The RosettaNet responder role settings + * @return the next definition stage + */ + WithCreate withResponderRoleSettings(RosettaNetPipRoleSettings responderRoleSettings); + } + + /** + * The stage of the integrationaccountrosettanetprocessconfiguration definition allowing to specify Description. + */ + interface WithDescription { + /** + * Specifies description. + * @param description The integration account RosettaNet ProcessConfiguration properties + * @return the next definition stage + */ + WithCreate withDescription(String description); + } + + /** + * The stage of the integrationaccountrosettanetprocessconfiguration definition allowing to specify Location. + */ + interface WithLocation { + /** + * Specifies location. + * @param location The resource location + * @return the next definition stage + */ + WithCreate withLocation(String location); + } + + /** + * The stage of the integrationaccountrosettanetprocessconfiguration definition allowing to specify Metadata. + */ + interface WithMetadata { + /** + * Specifies metadata. + * @param metadata The metadata + * @return the next definition stage + */ + WithCreate withMetadata(Map metadata); + } + + /** + * The stage of the integrationaccountrosettanetprocessconfiguration definition allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags The resource tags + * @return the next definition stage + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the definition which contains all the minimum required inputs for + * the resource to be created (via {@link WithCreate#create()}), but also allows + * for any other optional settings to be specified. + */ + interface WithCreate extends Creatable, DefinitionStages.WithDescription, DefinitionStages.WithLocation, DefinitionStages.WithMetadata, DefinitionStages.WithTags { + } + } + /** + * The template for a IntegrationAccountRosettaNetProcessConfiguration update operation, containing all the settings that can be modified. + */ + interface Update extends Appliable, UpdateStages.WithDescription, UpdateStages.WithLocation, UpdateStages.WithMetadata, UpdateStages.WithTags { + } + + /** + * Grouping of IntegrationAccountRosettaNetProcessConfiguration update stages. + */ + interface UpdateStages { + /** + * The stage of the integrationaccountrosettanetprocessconfiguration update allowing to specify Description. + */ + interface WithDescription { + /** + * Specifies description. + * @param description The integration account RosettaNet ProcessConfiguration properties + * @return the next update stage + */ + Update withDescription(String description); + } + + /** + * The stage of the integrationaccountrosettanetprocessconfiguration update allowing to specify Location. + */ + interface WithLocation { + /** + * Specifies location. + * @param location The resource location + * @return the next update stage + */ + Update withLocation(String location); + } + + /** + * The stage of the integrationaccountrosettanetprocessconfiguration update allowing to specify Metadata. + */ + interface WithMetadata { + /** + * Specifies metadata. + * @param metadata The metadata + * @return the next update stage + */ + Update withMetadata(Map metadata); + } + + /** + * The stage of the integrationaccountrosettanetprocessconfiguration update allowing to specify Tags. + */ + interface WithTags { + /** + * Specifies tags. + * @param tags The resource tags + * @return the next update stage + */ + Update withTags(Map tags); + } + + } +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountSchema.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountSchema.java index 606aa5b89c315..62a73a357cd5b 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountSchema.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountSchema.java @@ -121,6 +121,9 @@ interface Blank extends WithIntegrationAccount { interface WithIntegrationAccount { /** * Specifies resourceGroupName, integrationAccountName. + * @param resourceGroupName The resource group name + * @param integrationAccountName The integration account name + * @return the next definition stage */ WithSchemaType withExistingIntegrationAccount(String resourceGroupName, String integrationAccountName); } @@ -131,6 +134,8 @@ interface WithIntegrationAccount { interface WithSchemaType { /** * Specifies schemaType. + * @param schemaType The schema type. Possible values include: 'NotSpecified', 'Xml' + * @return the next definition stage */ WithCreate withSchemaType(SchemaType schemaType); } @@ -141,6 +146,8 @@ interface WithSchemaType { interface WithContent { /** * Specifies content. + * @param content The content + * @return the next definition stage */ WithCreate withContent(String content); } @@ -151,6 +158,8 @@ interface WithContent { interface WithContentType { /** * Specifies contentType. + * @param contentType The content type + * @return the next definition stage */ WithCreate withContentType(String contentType); } @@ -161,6 +170,8 @@ interface WithContentType { interface WithDocumentName { /** * Specifies documentName. + * @param documentName The document name + * @return the next definition stage */ WithCreate withDocumentName(String documentName); } @@ -171,6 +182,8 @@ interface WithDocumentName { interface WithFileName { /** * Specifies fileName. + * @param fileName The file name + * @return the next definition stage */ WithCreate withFileName(String fileName); } @@ -181,6 +194,8 @@ interface WithFileName { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next definition stage */ WithCreate withLocation(String location); } @@ -191,6 +206,8 @@ interface WithLocation { interface WithMetadata { /** * Specifies metadata. + * @param metadata The metadata + * @return the next definition stage */ WithCreate withMetadata(Object metadata); } @@ -201,6 +218,8 @@ interface WithMetadata { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next definition stage */ WithCreate withTags(Map tags); } @@ -211,6 +230,8 @@ interface WithTags { interface WithTargetNamespace { /** * Specifies targetNamespace. + * @param targetNamespace The target namespace of the schema + * @return the next definition stage */ WithCreate withTargetNamespace(String targetNamespace); } @@ -239,6 +260,8 @@ interface UpdateStages { interface WithContent { /** * Specifies content. + * @param content The content + * @return the next update stage */ Update withContent(String content); } @@ -249,6 +272,8 @@ interface WithContent { interface WithContentType { /** * Specifies contentType. + * @param contentType The content type + * @return the next update stage */ Update withContentType(String contentType); } @@ -259,6 +284,8 @@ interface WithContentType { interface WithDocumentName { /** * Specifies documentName. + * @param documentName The document name + * @return the next update stage */ Update withDocumentName(String documentName); } @@ -269,6 +296,8 @@ interface WithDocumentName { interface WithFileName { /** * Specifies fileName. + * @param fileName The file name + * @return the next update stage */ Update withFileName(String fileName); } @@ -279,6 +308,8 @@ interface WithFileName { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next update stage */ Update withLocation(String location); } @@ -289,6 +320,8 @@ interface WithLocation { interface WithMetadata { /** * Specifies metadata. + * @param metadata The metadata + * @return the next update stage */ Update withMetadata(Object metadata); } @@ -299,6 +332,8 @@ interface WithMetadata { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next update stage */ Update withTags(Map tags); } @@ -309,6 +344,8 @@ interface WithTags { interface WithTargetNamespace { /** * Specifies targetNamespace. + * @param targetNamespace The target namespace of the schema + * @return the next update stage */ Update withTargetNamespace(String targetNamespace); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountSession.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountSession.java index 1a6ee422b74ee..8e26261c2da4c 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountSession.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountSession.java @@ -86,6 +86,9 @@ interface Blank extends WithIntegrationAccount { interface WithIntegrationAccount { /** * Specifies resourceGroupName, integrationAccountName. + * @param resourceGroupName The resource group name + * @param integrationAccountName The integration account name + * @return the next definition stage */ WithCreate withExistingIntegrationAccount(String resourceGroupName, String integrationAccountName); } @@ -96,6 +99,8 @@ interface WithIntegrationAccount { interface WithContent { /** * Specifies content. + * @param content The session content + * @return the next definition stage */ WithCreate withContent(Object content); } @@ -106,6 +111,8 @@ interface WithContent { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next definition stage */ WithCreate withLocation(String location); } @@ -116,6 +123,8 @@ interface WithLocation { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next definition stage */ WithCreate withTags(Map tags); } @@ -144,6 +153,8 @@ interface UpdateStages { interface WithContent { /** * Specifies content. + * @param content The session content + * @return the next update stage */ Update withContent(Object content); } @@ -154,6 +165,8 @@ interface WithContent { interface WithLocation { /** * Specifies location. + * @param location The resource location + * @return the next update stage */ Update withLocation(String location); } @@ -164,6 +177,8 @@ interface WithLocation { interface WithTags { /** * Specifies tags. + * @param tags The resource tags + * @return the next update stage */ Update withTags(Map tags); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/MessageEncoding.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/MessageEncoding.java new file mode 100644 index 0000000000000..1ef58e81a341b --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/MessageEncoding.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for MessageEncoding. + */ +public enum MessageEncoding { + /** Enum value NotSpecified. */ + NOT_SPECIFIED("NotSpecified"), + + /** Enum value Base64. */ + BASE64("Base64"), + + /** Enum value EightBit. */ + EIGHT_BIT("EightBit"), + + /** Enum value QuotedPrintable. */ + QUOTED_PRINTABLE("QuotedPrintable"); + + /** The actual serialized value for a MessageEncoding instance. */ + private String value; + + MessageEncoding(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a MessageEncoding instance. + * + * @param value the serialized value to parse. + * @return the parsed MessageEncoding object, or null if unable to parse. + */ + @JsonCreator + public static MessageEncoding fromString(String value) { + MessageEncoding[] items = MessageEncoding.values(); + for (MessageEncoding item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RepetitionActionRunWorkflowRequestHistory.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RepetitionActionRunWorkflowRequestHistory.java new file mode 100644 index 0000000000000..fade1da74b152 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RepetitionActionRunWorkflowRequestHistory.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.logic.v2016_06_01.implementation.RequestHistoryInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.logic.v2016_06_01.implementation.LogicManager; +import java.util.Map; + +/** + * Type representing RepetitionActionRunWorkflowRequestHistory. + */ +public interface RepetitionActionRunWorkflowRequestHistory extends HasInner, Indexable, Refreshable, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the location value. + */ + String location(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + RequestHistoryProperties properties(); + + /** + * @return the tags value. + */ + Map tags(); + + /** + * @return the type value. + */ + String type(); + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Request.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Request.java new file mode 100644 index 0000000000000..0c9dad68e0f23 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Request.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A request. + */ +public class Request { + /** + * A list of all the headers attached to the request. + */ + @JsonProperty(value = "headers") + private Object headers; + + /** + * The destination for the request. + */ + @JsonProperty(value = "uri") + private String uri; + + /** + * The HTTP method used for the request. + */ + @JsonProperty(value = "method") + private String method; + + /** + * Get a list of all the headers attached to the request. + * + * @return the headers value + */ + public Object headers() { + return this.headers; + } + + /** + * Set a list of all the headers attached to the request. + * + * @param headers the headers value to set + * @return the Request object itself. + */ + public Request withHeaders(Object headers) { + this.headers = headers; + return this; + } + + /** + * Get the destination for the request. + * + * @return the uri value + */ + public String uri() { + return this.uri; + } + + /** + * Set the destination for the request. + * + * @param uri the uri value to set + * @return the Request object itself. + */ + public Request withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * Get the HTTP method used for the request. + * + * @return the method value + */ + public String method() { + return this.method; + } + + /** + * Set the HTTP method used for the request. + * + * @param method the method value to set + * @return the Request object itself. + */ + public Request withMethod(String method) { + this.method = method; + return this; + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RequestHistoryProperties.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RequestHistoryProperties.java new file mode 100644 index 0000000000000..41984aee405b7 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RequestHistoryProperties.java @@ -0,0 +1,122 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import org.joda.time.DateTime; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The request history. + */ +public class RequestHistoryProperties { + /** + * The time the request started. + */ + @JsonProperty(value = "startTime") + private DateTime startTime; + + /** + * The time the request ended. + */ + @JsonProperty(value = "endTime") + private DateTime endTime; + + /** + * The request. + */ + @JsonProperty(value = "request") + private Request request; + + /** + * The response. + */ + @JsonProperty(value = "response") + private Response response; + + /** + * Get the time the request started. + * + * @return the startTime value + */ + public DateTime startTime() { + return this.startTime; + } + + /** + * Set the time the request started. + * + * @param startTime the startTime value to set + * @return the RequestHistoryProperties object itself. + */ + public RequestHistoryProperties withStartTime(DateTime startTime) { + this.startTime = startTime; + return this; + } + + /** + * Get the time the request ended. + * + * @return the endTime value + */ + public DateTime endTime() { + return this.endTime; + } + + /** + * Set the time the request ended. + * + * @param endTime the endTime value to set + * @return the RequestHistoryProperties object itself. + */ + public RequestHistoryProperties withEndTime(DateTime endTime) { + this.endTime = endTime; + return this; + } + + /** + * Get the request. + * + * @return the request value + */ + public Request request() { + return this.request; + } + + /** + * Set the request. + * + * @param request the request value to set + * @return the RequestHistoryProperties object itself. + */ + public RequestHistoryProperties withRequest(Request request) { + this.request = request; + return this; + } + + /** + * Get the response. + * + * @return the response value + */ + public Response response() { + return this.response; + } + + /** + * Set the response. + * + * @param response the response value to set + * @return the RequestHistoryProperties object itself. + */ + public RequestHistoryProperties withResponse(Response response) { + this.response = response; + return this; + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Response.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Response.java new file mode 100644 index 0000000000000..2cdd0f74df76f --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Response.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A response. + */ +public class Response { + /** + * A list of all the headers attached to the response. + */ + @JsonProperty(value = "headers") + private Object headers; + + /** + * The status code of the response. + */ + @JsonProperty(value = "statusCode") + private Integer statusCode; + + /** + * Details on the location of the body content. + */ + @JsonProperty(value = "bodyLink") + private ContentLink bodyLink; + + /** + * Get a list of all the headers attached to the response. + * + * @return the headers value + */ + public Object headers() { + return this.headers; + } + + /** + * Set a list of all the headers attached to the response. + * + * @param headers the headers value to set + * @return the Response object itself. + */ + public Response withHeaders(Object headers) { + this.headers = headers; + return this; + } + + /** + * Get the status code of the response. + * + * @return the statusCode value + */ + public Integer statusCode() { + return this.statusCode; + } + + /** + * Set the status code of the response. + * + * @param statusCode the statusCode value to set + * @return the Response object itself. + */ + public Response withStatusCode(Integer statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Get details on the location of the body content. + * + * @return the bodyLink value + */ + public ContentLink bodyLink() { + return this.bodyLink; + } + + /** + * Set details on the location of the body content. + * + * @param bodyLink the bodyLink value to set + * @return the Response object itself. + */ + public Response withBodyLink(ContentLink bodyLink) { + this.bodyLink = bodyLink; + return this; + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetActionType.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetActionType.java new file mode 100644 index 0000000000000..a6c26ce4bb629 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetActionType.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for RosettaNetActionType. + */ +public enum RosettaNetActionType { + /** Enum value NotSpecified. */ + NOT_SPECIFIED("NotSpecified"), + + /** Enum value SingleAction. */ + SINGLE_ACTION("SingleAction"), + + /** Enum value DoubleAction. */ + DOUBLE_ACTION("DoubleAction"); + + /** The actual serialized value for a RosettaNetActionType instance. */ + private String value; + + RosettaNetActionType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a RosettaNetActionType instance. + * + * @param value the serialized value to parse. + * @return the parsed RosettaNetActionType object, or null if unable to parse. + */ + @JsonCreator + public static RosettaNetActionType fromString(String value) { + RosettaNetActionType[] items = RosettaNetActionType.values(); + for (RosettaNetActionType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipAcknowledgmentOfReceiptSettings.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipAcknowledgmentOfReceiptSettings.java new file mode 100644 index 0000000000000..1bd0bcc4573ab --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipAcknowledgmentOfReceiptSettings.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The integration account RosettaNet ProcessConfiguration Acknowledgement + * settings. + */ +public class RosettaNetPipAcknowledgmentOfReceiptSettings { + /** + * The non-repudiation is required or not. + */ + @JsonProperty(value = "isNonRepudiationRequired", required = true) + private boolean isNonRepudiationRequired; + + /** + * The time to acknowledge in seconds. + */ + @JsonProperty(value = "timeToAcknowledgeInSeconds", required = true) + private int timeToAcknowledgeInSeconds; + + /** + * Get the non-repudiation is required or not. + * + * @return the isNonRepudiationRequired value + */ + public boolean isNonRepudiationRequired() { + return this.isNonRepudiationRequired; + } + + /** + * Set the non-repudiation is required or not. + * + * @param isNonRepudiationRequired the isNonRepudiationRequired value to set + * @return the RosettaNetPipAcknowledgmentOfReceiptSettings object itself. + */ + public RosettaNetPipAcknowledgmentOfReceiptSettings withIsNonRepudiationRequired(boolean isNonRepudiationRequired) { + this.isNonRepudiationRequired = isNonRepudiationRequired; + return this; + } + + /** + * Get the time to acknowledge in seconds. + * + * @return the timeToAcknowledgeInSeconds value + */ + public int timeToAcknowledgeInSeconds() { + return this.timeToAcknowledgeInSeconds; + } + + /** + * Set the time to acknowledge in seconds. + * + * @param timeToAcknowledgeInSeconds the timeToAcknowledgeInSeconds value to set + * @return the RosettaNetPipAcknowledgmentOfReceiptSettings object itself. + */ + public RosettaNetPipAcknowledgmentOfReceiptSettings withTimeToAcknowledgeInSeconds(int timeToAcknowledgeInSeconds) { + this.timeToAcknowledgeInSeconds = timeToAcknowledgeInSeconds; + return this; + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipActivityBehavior.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipActivityBehavior.java new file mode 100644 index 0000000000000..ef4d814d293d3 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipActivityBehavior.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The integration account RosettaNet ProcessConfiguration activity behavior. + */ +public class RosettaNetPipActivityBehavior { + /** + * The value indicating whether authorization is required. + */ + @JsonProperty(value = "isAuthorizationRequired", required = true) + private boolean isAuthorizationRequired; + + /** + * The persistent confidentiality encryption scope. Possible values + * include: 'NotSpecified', 'None', 'Payload', 'PayloadContainer'. + */ + @JsonProperty(value = "persistentConfidentialityScope", required = true) + private RosettaNetPipConfidentialityScope persistentConfidentialityScope; + + /** + * The value indicating whether secured transport is required. + */ + @JsonProperty(value = "isSecuredTransportRequired", required = true) + private boolean isSecuredTransportRequired; + + /** + * The value indicating whether the RosettaNet PIP is used for a single + * action. Possible values include: 'NotSpecified', 'SingleAction', + * 'DoubleAction'. + */ + @JsonProperty(value = "actionType", required = true) + private RosettaNetActionType actionType; + + /** + * The value indicating whether the RosettaNet PIP communication is + * synchronous. Possible values include: 'NotSpecified', 'Sync', 'Async'. + */ + @JsonProperty(value = "responseType", required = true) + private RosettaNetResponseType responseType; + + /** + * The value indicating whether non-repudiation is for origin and content. + */ + @JsonProperty(value = "nonRepudiationOfOriginAndContent", required = true) + private boolean nonRepudiationOfOriginAndContent; + + /** + * The value indicating retry count. + */ + @JsonProperty(value = "retryCount", required = true) + private int retryCount; + + /** + * The time to perform in seconds. + */ + @JsonProperty(value = "timeToPerformInSeconds", required = true) + private int timeToPerformInSeconds; + + /** + * Get the value indicating whether authorization is required. + * + * @return the isAuthorizationRequired value + */ + public boolean isAuthorizationRequired() { + return this.isAuthorizationRequired; + } + + /** + * Set the value indicating whether authorization is required. + * + * @param isAuthorizationRequired the isAuthorizationRequired value to set + * @return the RosettaNetPipActivityBehavior object itself. + */ + public RosettaNetPipActivityBehavior withIsAuthorizationRequired(boolean isAuthorizationRequired) { + this.isAuthorizationRequired = isAuthorizationRequired; + return this; + } + + /** + * Get the persistent confidentiality encryption scope. Possible values include: 'NotSpecified', 'None', 'Payload', 'PayloadContainer'. + * + * @return the persistentConfidentialityScope value + */ + public RosettaNetPipConfidentialityScope persistentConfidentialityScope() { + return this.persistentConfidentialityScope; + } + + /** + * Set the persistent confidentiality encryption scope. Possible values include: 'NotSpecified', 'None', 'Payload', 'PayloadContainer'. + * + * @param persistentConfidentialityScope the persistentConfidentialityScope value to set + * @return the RosettaNetPipActivityBehavior object itself. + */ + public RosettaNetPipActivityBehavior withPersistentConfidentialityScope(RosettaNetPipConfidentialityScope persistentConfidentialityScope) { + this.persistentConfidentialityScope = persistentConfidentialityScope; + return this; + } + + /** + * Get the value indicating whether secured transport is required. + * + * @return the isSecuredTransportRequired value + */ + public boolean isSecuredTransportRequired() { + return this.isSecuredTransportRequired; + } + + /** + * Set the value indicating whether secured transport is required. + * + * @param isSecuredTransportRequired the isSecuredTransportRequired value to set + * @return the RosettaNetPipActivityBehavior object itself. + */ + public RosettaNetPipActivityBehavior withIsSecuredTransportRequired(boolean isSecuredTransportRequired) { + this.isSecuredTransportRequired = isSecuredTransportRequired; + return this; + } + + /** + * Get the value indicating whether the RosettaNet PIP is used for a single action. Possible values include: 'NotSpecified', 'SingleAction', 'DoubleAction'. + * + * @return the actionType value + */ + public RosettaNetActionType actionType() { + return this.actionType; + } + + /** + * Set the value indicating whether the RosettaNet PIP is used for a single action. Possible values include: 'NotSpecified', 'SingleAction', 'DoubleAction'. + * + * @param actionType the actionType value to set + * @return the RosettaNetPipActivityBehavior object itself. + */ + public RosettaNetPipActivityBehavior withActionType(RosettaNetActionType actionType) { + this.actionType = actionType; + return this; + } + + /** + * Get the value indicating whether the RosettaNet PIP communication is synchronous. Possible values include: 'NotSpecified', 'Sync', 'Async'. + * + * @return the responseType value + */ + public RosettaNetResponseType responseType() { + return this.responseType; + } + + /** + * Set the value indicating whether the RosettaNet PIP communication is synchronous. Possible values include: 'NotSpecified', 'Sync', 'Async'. + * + * @param responseType the responseType value to set + * @return the RosettaNetPipActivityBehavior object itself. + */ + public RosettaNetPipActivityBehavior withResponseType(RosettaNetResponseType responseType) { + this.responseType = responseType; + return this; + } + + /** + * Get the value indicating whether non-repudiation is for origin and content. + * + * @return the nonRepudiationOfOriginAndContent value + */ + public boolean nonRepudiationOfOriginAndContent() { + return this.nonRepudiationOfOriginAndContent; + } + + /** + * Set the value indicating whether non-repudiation is for origin and content. + * + * @param nonRepudiationOfOriginAndContent the nonRepudiationOfOriginAndContent value to set + * @return the RosettaNetPipActivityBehavior object itself. + */ + public RosettaNetPipActivityBehavior withNonRepudiationOfOriginAndContent(boolean nonRepudiationOfOriginAndContent) { + this.nonRepudiationOfOriginAndContent = nonRepudiationOfOriginAndContent; + return this; + } + + /** + * Get the value indicating retry count. + * + * @return the retryCount value + */ + public int retryCount() { + return this.retryCount; + } + + /** + * Set the value indicating retry count. + * + * @param retryCount the retryCount value to set + * @return the RosettaNetPipActivityBehavior object itself. + */ + public RosettaNetPipActivityBehavior withRetryCount(int retryCount) { + this.retryCount = retryCount; + return this; + } + + /** + * Get the time to perform in seconds. + * + * @return the timeToPerformInSeconds value + */ + public int timeToPerformInSeconds() { + return this.timeToPerformInSeconds; + } + + /** + * Set the time to perform in seconds. + * + * @param timeToPerformInSeconds the timeToPerformInSeconds value to set + * @return the RosettaNetPipActivityBehavior object itself. + */ + public RosettaNetPipActivityBehavior withTimeToPerformInSeconds(int timeToPerformInSeconds) { + this.timeToPerformInSeconds = timeToPerformInSeconds; + return this; + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipActivitySettings.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipActivitySettings.java new file mode 100644 index 0000000000000..046aa10fa2cba --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipActivitySettings.java @@ -0,0 +1,98 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The integration account RosettaNet ProcessConfiguration activity settings. + */ +public class RosettaNetPipActivitySettings { + /** + * The RosettaNet ProcessConfiguration activity type. Possible values + * include: 'NotSpecified', 'InformationDistribution', + * 'BusinessTransaction', 'Notification', 'QueryResponse', + * 'RequestConfirm', 'RequestResponse'. + */ + @JsonProperty(value = "activityType", required = true) + private RosettaNetPipActivityType activityType; + + /** + * The RosettaNet ProcessConfiguration activity behavior. + */ + @JsonProperty(value = "activityBehavior", required = true) + private RosettaNetPipActivityBehavior activityBehavior; + + /** + * The RosettaNet ProcessConfiguration acknowledgement settings. + */ + @JsonProperty(value = "acknowledgmentOfReceiptSettings", required = true) + private RosettaNetPipAcknowledgmentOfReceiptSettings acknowledgmentOfReceiptSettings; + + /** + * Get the RosettaNet ProcessConfiguration activity type. Possible values include: 'NotSpecified', 'InformationDistribution', 'BusinessTransaction', 'Notification', 'QueryResponse', 'RequestConfirm', 'RequestResponse'. + * + * @return the activityType value + */ + public RosettaNetPipActivityType activityType() { + return this.activityType; + } + + /** + * Set the RosettaNet ProcessConfiguration activity type. Possible values include: 'NotSpecified', 'InformationDistribution', 'BusinessTransaction', 'Notification', 'QueryResponse', 'RequestConfirm', 'RequestResponse'. + * + * @param activityType the activityType value to set + * @return the RosettaNetPipActivitySettings object itself. + */ + public RosettaNetPipActivitySettings withActivityType(RosettaNetPipActivityType activityType) { + this.activityType = activityType; + return this; + } + + /** + * Get the RosettaNet ProcessConfiguration activity behavior. + * + * @return the activityBehavior value + */ + public RosettaNetPipActivityBehavior activityBehavior() { + return this.activityBehavior; + } + + /** + * Set the RosettaNet ProcessConfiguration activity behavior. + * + * @param activityBehavior the activityBehavior value to set + * @return the RosettaNetPipActivitySettings object itself. + */ + public RosettaNetPipActivitySettings withActivityBehavior(RosettaNetPipActivityBehavior activityBehavior) { + this.activityBehavior = activityBehavior; + return this; + } + + /** + * Get the RosettaNet ProcessConfiguration acknowledgement settings. + * + * @return the acknowledgmentOfReceiptSettings value + */ + public RosettaNetPipAcknowledgmentOfReceiptSettings acknowledgmentOfReceiptSettings() { + return this.acknowledgmentOfReceiptSettings; + } + + /** + * Set the RosettaNet ProcessConfiguration acknowledgement settings. + * + * @param acknowledgmentOfReceiptSettings the acknowledgmentOfReceiptSettings value to set + * @return the RosettaNetPipActivitySettings object itself. + */ + public RosettaNetPipActivitySettings withAcknowledgmentOfReceiptSettings(RosettaNetPipAcknowledgmentOfReceiptSettings acknowledgmentOfReceiptSettings) { + this.acknowledgmentOfReceiptSettings = acknowledgmentOfReceiptSettings; + return this; + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipActivityType.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipActivityType.java new file mode 100644 index 0000000000000..fa3ea780aec69 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipActivityType.java @@ -0,0 +1,68 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for RosettaNetPipActivityType. + */ +public enum RosettaNetPipActivityType { + /** Enum value NotSpecified. */ + NOT_SPECIFIED("NotSpecified"), + + /** Enum value InformationDistribution. */ + INFORMATION_DISTRIBUTION("InformationDistribution"), + + /** Enum value BusinessTransaction. */ + BUSINESS_TRANSACTION("BusinessTransaction"), + + /** Enum value Notification. */ + NOTIFICATION("Notification"), + + /** Enum value QueryResponse. */ + QUERY_RESPONSE("QueryResponse"), + + /** Enum value RequestConfirm. */ + REQUEST_CONFIRM("RequestConfirm"), + + /** Enum value RequestResponse. */ + REQUEST_RESPONSE("RequestResponse"); + + /** The actual serialized value for a RosettaNetPipActivityType instance. */ + private String value; + + RosettaNetPipActivityType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a RosettaNetPipActivityType instance. + * + * @param value the serialized value to parse. + * @return the parsed RosettaNetPipActivityType object, or null if unable to parse. + */ + @JsonCreator + public static RosettaNetPipActivityType fromString(String value) { + RosettaNetPipActivityType[] items = RosettaNetPipActivityType.values(); + for (RosettaNetPipActivityType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipBusinessDocument.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipBusinessDocument.java new file mode 100644 index 0000000000000..74cdcd50e320f --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipBusinessDocument.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The RosettaNet ProcessConfiguration business document settings. + */ +public class RosettaNetPipBusinessDocument { + /** + * The business document name. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /** + * The business document version. + */ + @JsonProperty(value = "version", required = true) + private String version; + + /** + * The business document description. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Get the business document name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the business document name. + * + * @param name the name value to set + * @return the RosettaNetPipBusinessDocument object itself. + */ + public RosettaNetPipBusinessDocument withName(String name) { + this.name = name; + return this; + } + + /** + * Get the business document version. + * + * @return the version value + */ + public String version() { + return this.version; + } + + /** + * Set the business document version. + * + * @param version the version value to set + * @return the RosettaNetPipBusinessDocument object itself. + */ + public RosettaNetPipBusinessDocument withVersion(String version) { + this.version = version; + return this; + } + + /** + * Get the business document description. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the business document description. + * + * @param description the description value to set + * @return the RosettaNetPipBusinessDocument object itself. + */ + public RosettaNetPipBusinessDocument withDescription(String description) { + this.description = description; + return this; + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipConfidentialityScope.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipConfidentialityScope.java new file mode 100644 index 0000000000000..b7d3185bb52a3 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipConfidentialityScope.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for RosettaNetPipConfidentialityScope. + */ +public enum RosettaNetPipConfidentialityScope { + /** Enum value NotSpecified. */ + NOT_SPECIFIED("NotSpecified"), + + /** Enum value None. */ + NONE("None"), + + /** Enum value Payload. */ + PAYLOAD("Payload"), + + /** Enum value PayloadContainer. */ + PAYLOAD_CONTAINER("PayloadContainer"); + + /** The actual serialized value for a RosettaNetPipConfidentialityScope instance. */ + private String value; + + RosettaNetPipConfidentialityScope(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a RosettaNetPipConfidentialityScope instance. + * + * @param value the serialized value to parse. + * @return the parsed RosettaNetPipConfidentialityScope object, or null if unable to parse. + */ + @JsonCreator + public static RosettaNetPipConfidentialityScope fromString(String value) { + RosettaNetPipConfidentialityScope[] items = RosettaNetPipConfidentialityScope.values(); + for (RosettaNetPipConfidentialityScope item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipRoleSettings.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipRoleSettings.java new file mode 100644 index 0000000000000..2376e952f40ef --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipRoleSettings.java @@ -0,0 +1,200 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The integration account RosettaNet ProcessConfiguration role settings. + */ +public class RosettaNetPipRoleSettings { + /** + * The action name. + */ + @JsonProperty(value = "action", required = true) + private String action; + + /** + * The role name. + */ + @JsonProperty(value = "role", required = true) + private String role; + + /** + * The RosettaNet ProcessConfiguration role type. Possible values include: + * 'NotSpecified', 'Functional', 'Organizational', 'Employee'. + */ + @JsonProperty(value = "roleType", required = true) + private RosettaNetPipRoleType roleType; + + /** + * The service name. + */ + @JsonProperty(value = "service", required = true) + private String service; + + /** + * The service classification name. + */ + @JsonProperty(value = "serviceClassification", required = true) + private String serviceClassification; + + /** + * The RosettaNet ProcessConfiguration business document. + */ + @JsonProperty(value = "businessDocument", required = true) + private RosettaNetPipBusinessDocument businessDocument; + + /** + * The description. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Get the action name. + * + * @return the action value + */ + public String action() { + return this.action; + } + + /** + * Set the action name. + * + * @param action the action value to set + * @return the RosettaNetPipRoleSettings object itself. + */ + public RosettaNetPipRoleSettings withAction(String action) { + this.action = action; + return this; + } + + /** + * Get the role name. + * + * @return the role value + */ + public String role() { + return this.role; + } + + /** + * Set the role name. + * + * @param role the role value to set + * @return the RosettaNetPipRoleSettings object itself. + */ + public RosettaNetPipRoleSettings withRole(String role) { + this.role = role; + return this; + } + + /** + * Get the RosettaNet ProcessConfiguration role type. Possible values include: 'NotSpecified', 'Functional', 'Organizational', 'Employee'. + * + * @return the roleType value + */ + public RosettaNetPipRoleType roleType() { + return this.roleType; + } + + /** + * Set the RosettaNet ProcessConfiguration role type. Possible values include: 'NotSpecified', 'Functional', 'Organizational', 'Employee'. + * + * @param roleType the roleType value to set + * @return the RosettaNetPipRoleSettings object itself. + */ + public RosettaNetPipRoleSettings withRoleType(RosettaNetPipRoleType roleType) { + this.roleType = roleType; + return this; + } + + /** + * Get the service name. + * + * @return the service value + */ + public String service() { + return this.service; + } + + /** + * Set the service name. + * + * @param service the service value to set + * @return the RosettaNetPipRoleSettings object itself. + */ + public RosettaNetPipRoleSettings withService(String service) { + this.service = service; + return this; + } + + /** + * Get the service classification name. + * + * @return the serviceClassification value + */ + public String serviceClassification() { + return this.serviceClassification; + } + + /** + * Set the service classification name. + * + * @param serviceClassification the serviceClassification value to set + * @return the RosettaNetPipRoleSettings object itself. + */ + public RosettaNetPipRoleSettings withServiceClassification(String serviceClassification) { + this.serviceClassification = serviceClassification; + return this; + } + + /** + * Get the RosettaNet ProcessConfiguration business document. + * + * @return the businessDocument value + */ + public RosettaNetPipBusinessDocument businessDocument() { + return this.businessDocument; + } + + /** + * Set the RosettaNet ProcessConfiguration business document. + * + * @param businessDocument the businessDocument value to set + * @return the RosettaNetPipRoleSettings object itself. + */ + public RosettaNetPipRoleSettings withBusinessDocument(RosettaNetPipBusinessDocument businessDocument) { + this.businessDocument = businessDocument; + return this; + } + + /** + * Get the description. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the description. + * + * @param description the description value to set + * @return the RosettaNetPipRoleSettings object itself. + */ + public RosettaNetPipRoleSettings withDescription(String description) { + this.description = description; + return this; + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipRoleType.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipRoleType.java new file mode 100644 index 0000000000000..5db810adf6bb0 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetPipRoleType.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for RosettaNetPipRoleType. + */ +public enum RosettaNetPipRoleType { + /** Enum value NotSpecified. */ + NOT_SPECIFIED("NotSpecified"), + + /** Enum value Functional. */ + FUNCTIONAL("Functional"), + + /** Enum value Organizational. */ + ORGANIZATIONAL("Organizational"), + + /** Enum value Employee. */ + EMPLOYEE("Employee"); + + /** The actual serialized value for a RosettaNetPipRoleType instance. */ + private String value; + + RosettaNetPipRoleType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a RosettaNetPipRoleType instance. + * + * @param value the serialized value to parse. + * @return the parsed RosettaNetPipRoleType object, or null if unable to parse. + */ + @JsonCreator + public static RosettaNetPipRoleType fromString(String value) { + RosettaNetPipRoleType[] items = RosettaNetPipRoleType.values(); + for (RosettaNetPipRoleType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetProcessConfigurations.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetProcessConfigurations.java new file mode 100644 index 0000000000000..db1a351a81929 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetProcessConfigurations.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.microsoft.azure.arm.collection.SupportsCreating; +import rx.Completable; +import rx.Observable; +import com.microsoft.azure.management.logic.v2016_06_01.implementation.RosettaNetProcessConfigurationsInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing RosettaNetProcessConfigurations. + */ +public interface RosettaNetProcessConfigurations extends SupportsCreating, HasInner { + /** + * Gets an integration account RosettaNetProcessConfiguration. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param rosettaNetProcessConfigurationName The integration account RosettaNetProcessConfiguration name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAsync(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName); + + /** + * Gets a list of integration account RosettaNet process configurations. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listByIntegrationAccountsAsync(final String resourceGroupName, final String integrationAccountName); + + /** + * Deletes an integration account RosettaNet ProcessConfiguration. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param rosettaNetProcessConfigurationName The integration account RosettaNetProcessConfiguration name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAsync(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName); + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetResponseType.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetResponseType.java new file mode 100644 index 0000000000000..0efea6ec81fc0 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RosettaNetResponseType.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for RosettaNetResponseType. + */ +public enum RosettaNetResponseType { + /** Enum value NotSpecified. */ + NOT_SPECIFIED("NotSpecified"), + + /** Enum value Sync. */ + SYNC("Sync"), + + /** Enum value Async. */ + ASYNC("Async"); + + /** The actual serialized value for a RosettaNetResponseType instance. */ + private String value; + + RosettaNetResponseType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a RosettaNetResponseType instance. + * + * @param value the serialized value to parse. + * @return the parsed RosettaNetResponseType object, or null if unable to parse. + */ + @JsonCreator + public static RosettaNetResponseType fromString(String value) { + RosettaNetResponseType[] items = RosettaNetResponseType.values(); + for (RosettaNetResponseType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Workflow.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Workflow.java index bf77ab6f706f3..af97a35026dc1 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Workflow.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Workflow.java @@ -99,51 +99,61 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup parameters); } /** - * The stage of the workflow update allowing to specify Sku. + * The stage of the workflow definition allowing to specify Sku. */ interface WithSku { /** * Specifies sku. + * @param sku The sku + * @return the next definition stage */ WithCreate withSku(Sku sku); } /** - * The stage of the workflow update allowing to specify State. + * The stage of the workflow definition allowing to specify State. */ interface WithState { /** * Specifies state. + * @param state The state. Possible values include: 'NotSpecified', 'Completed', 'Enabled', 'Disabled', 'Deleted', 'Suspended' + * @return the next definition stage */ WithCreate withState(WorkflowState state); } @@ -167,51 +177,61 @@ interface Update extends Appliable, Resource.UpdateWithTags, U */ interface UpdateStages { /** - * The stage of the workflow {0} allowing to specify Definition. + * The stage of the workflow update allowing to specify Definition. */ interface WithDefinition { /** * Specifies definition. + * @param definition The definition. See [Schema reference for Workflow Definition Language in Azure Logic Apps](https://aka.ms/logic-apps-workflow-definition-language) + * @return the next update stage */ Update withDefinition(Object definition); } /** - * The stage of the workflow {0} allowing to specify IntegrationAccount. + * The stage of the workflow update allowing to specify IntegrationAccount. */ interface WithIntegrationAccount { /** * Specifies integrationAccount. + * @param integrationAccount The integration account + * @return the next update stage */ Update withIntegrationAccount(ResourceReference integrationAccount); } /** - * The stage of the workflow {0} allowing to specify Parameters. + * The stage of the workflow update allowing to specify Parameters. */ interface WithParameters { /** * Specifies parameters. + * @param parameters The parameters + * @return the next update stage */ Update withParameters(Map parameters); } /** - * The stage of the workflow {0} allowing to specify Sku. + * The stage of the workflow update allowing to specify Sku. */ interface WithSku { /** * Specifies sku. + * @param sku The sku + * @return the next update stage */ Update withSku(Sku sku); } /** - * The stage of the workflow {0} allowing to specify State. + * The stage of the workflow update allowing to specify State. */ interface WithState { /** * Specifies state. + * @param state The state. Possible values include: 'NotSpecified', 'Completed', 'Enabled', 'Disabled', 'Deleted', 'Suspended' + * @return the next update stage */ Update withState(WorkflowState state); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRunActionRepetitionsRequestHistories.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRunActionRepetitionsRequestHistories.java new file mode 100644 index 0000000000000..257abd53cc867 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRunActionRepetitionsRequestHistories.java @@ -0,0 +1,46 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import rx.Observable; +import com.microsoft.azure.management.logic.v2016_06_01.implementation.WorkflowRunActionRepetitionsRequestHistoriesInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing WorkflowRunActionRepetitionsRequestHistories. + */ +public interface WorkflowRunActionRepetitionsRequestHistories extends HasInner { + /** + * Gets a workflow run repetition request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param repetitionName The workflow repetition. + * @param requestHistoryName The request history name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAsync(String resourceGroupName, String workflowName, String runName, String actionName, String repetitionName, String requestHistoryName); + + /** + * List a workflow run repetition request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param repetitionName The workflow repetition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(final String resourceGroupName, final String workflowName, final String runName, final String actionName, final String repetitionName); + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRunActionRequestHistories.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRunActionRequestHistories.java new file mode 100644 index 0000000000000..04d9ef9ec3b56 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRunActionRequestHistories.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01; + +import rx.Observable; +import com.microsoft.azure.management.logic.v2016_06_01.implementation.WorkflowRunActionRequestHistoriesInner; +import com.microsoft.azure.arm.model.HasInner; + +/** + * Type representing WorkflowRunActionRequestHistories. + */ +public interface WorkflowRunActionRequestHistories extends HasInner { + /** + * Gets a workflow run request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param requestHistoryName The request history name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getAsync(String resourceGroupName, String workflowName, String runName, String actionName, String requestHistoryName); + + /** + * List a workflow run request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(final String resourceGroupName, final String workflowName, final String runName, final String actionName); + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRuns.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRuns.java index 9637a9f7e250c..1ccd7f10140cb 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRuns.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRuns.java @@ -8,8 +8,8 @@ package com.microsoft.azure.management.logic.v2016_06_01; -import rx.Observable; import rx.Completable; +import rx.Observable; import com.microsoft.azure.management.logic.v2016_06_01.implementation.WorkflowRunsInner; import com.microsoft.azure.arm.model.HasInner; @@ -49,4 +49,15 @@ public interface WorkflowRuns extends HasInner { */ Observable listAsync(final String resourceGroupName, final String workflowName); + /** + * Deletes a workflow run. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteAsync(String resourceGroupName, String workflowName, String runName); + } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowTriggers.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowTriggers.java index 06d9614520b65..6fa8fe68a8335 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowTriggers.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowTriggers.java @@ -58,7 +58,7 @@ public interface WorkflowTriggers { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable runAsync(String resourceGroupName, String workflowName, String triggerName); + Observable runAsync(String resourceGroupName, String workflowName, String triggerName); /** * Sets the state of a workflow trigger. diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Workflows.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Workflows.java index 1c0cf8dfb6ccd..6e27a9d1df416 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Workflows.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Workflows.java @@ -52,7 +52,7 @@ public interface Workflows extends SupportsCreating generateUpgradedDefinitionAsync(String resourceGroupName, String workflowName); /** * Get the workflow callback Url. @@ -73,7 +73,7 @@ public interface Workflows extends SupportsCreating listSwaggerAsync(String resourceGroupName, String workflowName); /** * Moves an existing workflow. diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowRequestHistoryImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowRequestHistoryImpl.java new file mode 100644 index 0000000000000..cbe3652b148ae --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowRequestHistoryImpl.java @@ -0,0 +1,79 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01.implementation; + +import com.microsoft.azure.management.logic.v2016_06_01.ActionRunWorkflowRequestHistory; +import com.microsoft.azure.arm.model.implementation.IndexableRefreshableWrapperImpl; +import rx.Observable; +import com.microsoft.azure.management.logic.v2016_06_01.RequestHistoryProperties; +import java.util.Map; + +class ActionRunWorkflowRequestHistoryImpl extends IndexableRefreshableWrapperImpl implements ActionRunWorkflowRequestHistory { + private final LogicManager manager; + private String resourceGroupName; + private String workflowName; + private String runName; + private String actionName; + private String requestHistoryName; + + ActionRunWorkflowRequestHistoryImpl(RequestHistoryInner inner, LogicManager manager) { + super(null, inner); + this.manager = manager; + // set resource ancestor and positional variables + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.workflowName = IdParsingUtils.getValueFromIdByName(inner.id(), "workflows"); + this.runName = IdParsingUtils.getValueFromIdByName(inner.id(), "runs"); + this.actionName = IdParsingUtils.getValueFromIdByName(inner.id(), "actions"); + this.requestHistoryName = IdParsingUtils.getValueFromIdByName(inner.id(), "requestHistories"); + } + + @Override + public LogicManager manager() { + return this.manager; + } + + @Override + protected Observable getInnerAsync() { + WorkflowRunActionRequestHistoriesInner client = this.manager().inner().workflowRunActionRequestHistories(); + return client.getAsync(this.resourceGroupName, this.workflowName, this.runName, this.actionName, this.requestHistoryName); + } + + + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public RequestHistoryProperties properties() { + return this.inner().properties(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowWorkflowRunActionRepetitionDefinitionImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowWorkflowRunActionRepetitionDefinitionImpl.java index 7a31861669e4f..836b2d272ce1a 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowWorkflowRunActionRepetitionDefinitionImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowWorkflowRunActionRepetitionDefinitionImpl.java @@ -31,6 +31,7 @@ class ActionRunWorkflowWorkflowRunActionRepetitionDefinitionImpl extends Indexab ActionRunWorkflowWorkflowRunActionRepetitionDefinitionImpl(WorkflowRunActionRepetitionDefinitionInner inner, LogicManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.workflowName = IdParsingUtils.getValueFromIdByName(inner.id(), "workflows"); this.runName = IdParsingUtils.getValueFromIdByName(inner.id(), "runs"); diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowWorkflowRunActionRepetitionDefinitionModelImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowWorkflowRunActionRepetitionDefinitionModelImpl.java index 429bb03e68720..6b0bbda5e63f0 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowWorkflowRunActionRepetitionDefinitionModelImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowWorkflowRunActionRepetitionDefinitionModelImpl.java @@ -31,6 +31,7 @@ class ActionRunWorkflowWorkflowRunActionRepetitionDefinitionModelImpl extends In ActionRunWorkflowWorkflowRunActionRepetitionDefinitionModelImpl(WorkflowRunActionRepetitionDefinitionInner inner, LogicManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.workflowName = IdParsingUtils.getValueFromIdByName(inner.id(), "workflows"); this.runName = IdParsingUtils.getValueFromIdByName(inner.id(), "runs"); diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/AgreementsImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/AgreementsImpl.java index 32594e05ad744..b179288605491 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/AgreementsImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/AgreementsImpl.java @@ -78,10 +78,14 @@ public IntegrationAccountAgreement call(IntegrationAccountAgreementInner inner) public Observable getAsync(String resourceGroupName, String integrationAccountName, String agreementName) { AgreementsInner client = this.inner(); return client.getAsync(resourceGroupName, integrationAccountName, agreementName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public IntegrationAccountAgreement call(IntegrationAccountAgreementInner inner) { - return wrapModel(inner); + public Observable call(IntegrationAccountAgreementInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((IntegrationAccountAgreement)wrapModel(inner)); + } } }); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/AssemblyDefinitionImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/AssemblyDefinitionImpl.java index 7f0d1d8c106e8..2795b6947f3c2 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/AssemblyDefinitionImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/AssemblyDefinitionImpl.java @@ -33,7 +33,7 @@ class AssemblyDefinitionImpl extends CreatableUpdatableImpl getAsync(String resourceGroupName, String integrationAccountName, String certificateName) { CertificatesInner client = this.inner(); return client.getAsync(resourceGroupName, integrationAccountName, certificateName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public IntegrationAccountCertificate call(IntegrationAccountCertificateInner inner) { - return wrapModel(inner); + public Observable call(IntegrationAccountCertificateInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((IntegrationAccountCertificate)wrapModel(inner)); + } } }); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountAgreementImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountAgreementImpl.java index de128b552ad3c..2f212adcfe65f 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountAgreementImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountAgreementImpl.java @@ -36,7 +36,7 @@ class IntegrationAccountAgreementImpl extends CreatableUpdatableImpl getAsync(String resourceGroupName, String integrationAccountName, String assemblyArtifactName) { IntegrationAccountAssembliesInner client = this.inner(); return client.getAsync(resourceGroupName, integrationAccountName, assemblyArtifactName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public AssemblyDefinition call(AssemblyDefinitionInner inner) { - return wrapModel(inner); + public Observable call(AssemblyDefinitionInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((AssemblyDefinition)wrapModel(inner)); + } } }); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountBatchConfigurationsImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountBatchConfigurationsImpl.java index a922421337c06..60e36d9fc7080 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountBatchConfigurationsImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountBatchConfigurationsImpl.java @@ -64,10 +64,14 @@ public BatchConfiguration call(BatchConfigurationInner inner) { public Observable getAsync(String resourceGroupName, String integrationAccountName, String batchConfigurationName) { IntegrationAccountBatchConfigurationsInner client = this.inner(); return client.getAsync(resourceGroupName, integrationAccountName, batchConfigurationName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public BatchConfiguration call(BatchConfigurationInner inner) { - return wrapModel(inner); + public Observable call(BatchConfigurationInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((BatchConfiguration)wrapModel(inner)); + } } }); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountCertificateImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountCertificateImpl.java index 1bdd9f2a73227..f2f5e6c643ef3 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountCertificateImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountCertificateImpl.java @@ -34,7 +34,7 @@ class IntegrationAccountCertificateImpl extends CreatableUpdatableImpl implements IntegrationAccountRosettaNetProcessConfiguration, IntegrationAccountRosettaNetProcessConfiguration.Definition, IntegrationAccountRosettaNetProcessConfiguration.Update { + private final LogicManager manager; + private String resourceGroupName; + private String integrationAccountName; + private String rosettaNetProcessConfigurationName; + + IntegrationAccountRosettaNetProcessConfigurationImpl(String name, LogicManager manager) { + super(name, new IntegrationAccountRosettaNetProcessConfigurationInner()); + this.manager = manager; + // Set resource name + this.rosettaNetProcessConfigurationName = name; + // + } + + IntegrationAccountRosettaNetProcessConfigurationImpl(IntegrationAccountRosettaNetProcessConfigurationInner inner, LogicManager manager) { + super(inner.name(), inner); + this.manager = manager; + // Set resource name + this.rosettaNetProcessConfigurationName = inner.name(); + // set resource ancestor and positional variables + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.integrationAccountName = IdParsingUtils.getValueFromIdByName(inner.id(), "integrationAccounts"); + this.rosettaNetProcessConfigurationName = IdParsingUtils.getValueFromIdByName(inner.id(), "rosettanetprocessconfigurations"); + // + } + + @Override + public LogicManager manager() { + return this.manager; + } + + @Override + public Observable createResourceAsync() { + RosettaNetProcessConfigurationsInner client = this.manager().inner().rosettaNetProcessConfigurations(); + return client.createOrUpdateAsync(this.resourceGroupName, this.integrationAccountName, this.rosettaNetProcessConfigurationName, this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + public Observable updateResourceAsync() { + RosettaNetProcessConfigurationsInner client = this.manager().inner().rosettaNetProcessConfigurations(); + return client.createOrUpdateAsync(this.resourceGroupName, this.integrationAccountName, this.rosettaNetProcessConfigurationName, this.inner()) + .map(innerToFluentMap(this)); + } + + @Override + protected Observable getInnerAsync() { + RosettaNetProcessConfigurationsInner client = this.manager().inner().rosettaNetProcessConfigurations(); + return client.getAsync(this.resourceGroupName, this.integrationAccountName, this.rosettaNetProcessConfigurationName); + } + + @Override + public boolean isInCreateMode() { + return this.inner().id() == null; + } + + + @Override + public RosettaNetPipActivitySettings activitySettings() { + return this.inner().activitySettings(); + } + + @Override + public DateTime changedTime() { + return this.inner().changedTime(); + } + + @Override + public DateTime createdTime() { + return this.inner().createdTime(); + } + + @Override + public String description() { + return this.inner().description(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public RosettaNetPipRoleSettings initiatorRoleSettings() { + return this.inner().initiatorRoleSettings(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public Map metadata() { + return this.inner().metadata(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public String processCode() { + return this.inner().processCode(); + } + + @Override + public String processName() { + return this.inner().processName(); + } + + @Override + public String processVersion() { + return this.inner().processVersion(); + } + + @Override + public RosettaNetPipRoleSettings responderRoleSettings() { + return this.inner().responderRoleSettings(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + + @Override + public IntegrationAccountRosettaNetProcessConfigurationImpl withExistingIntegrationAccount(String resourceGroupName, String integrationAccountName) { + this.resourceGroupName = resourceGroupName; + this.integrationAccountName = integrationAccountName; + return this; + } + + @Override + public IntegrationAccountRosettaNetProcessConfigurationImpl withActivitySettings(RosettaNetPipActivitySettings activitySettings) { + this.inner().withActivitySettings(activitySettings); + return this; + } + + @Override + public IntegrationAccountRosettaNetProcessConfigurationImpl withInitiatorRoleSettings(RosettaNetPipRoleSettings initiatorRoleSettings) { + this.inner().withInitiatorRoleSettings(initiatorRoleSettings); + return this; + } + + @Override + public IntegrationAccountRosettaNetProcessConfigurationImpl withProcessCode(String processCode) { + this.inner().withProcessCode(processCode); + return this; + } + + @Override + public IntegrationAccountRosettaNetProcessConfigurationImpl withProcessName(String processName) { + this.inner().withProcessName(processName); + return this; + } + + @Override + public IntegrationAccountRosettaNetProcessConfigurationImpl withProcessVersion(String processVersion) { + this.inner().withProcessVersion(processVersion); + return this; + } + + @Override + public IntegrationAccountRosettaNetProcessConfigurationImpl withResponderRoleSettings(RosettaNetPipRoleSettings responderRoleSettings) { + this.inner().withResponderRoleSettings(responderRoleSettings); + return this; + } + + @Override + public IntegrationAccountRosettaNetProcessConfigurationImpl withDescription(String description) { + this.inner().withDescription(description); + return this; + } + + @Override + public IntegrationAccountRosettaNetProcessConfigurationImpl withLocation(String location) { + this.inner().withLocation(location); + return this; + } + + @Override + public IntegrationAccountRosettaNetProcessConfigurationImpl withMetadata(Map metadata) { + this.inner().withMetadata(metadata); + return this; + } + + @Override + public IntegrationAccountRosettaNetProcessConfigurationImpl withTags(Map tags) { + this.inner().withTags(tags); + return this; + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountRosettaNetProcessConfigurationInner.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountRosettaNetProcessConfigurationInner.java new file mode 100644 index 0000000000000..352890a626da9 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountRosettaNetProcessConfigurationInner.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01.implementation; + +import org.joda.time.DateTime; +import java.util.Map; +import com.microsoft.azure.management.logic.v2016_06_01.RosettaNetPipActivitySettings; +import com.microsoft.azure.management.logic.v2016_06_01.RosettaNetPipRoleSettings; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * The integration account RosettaNet process configuration. + */ +@JsonFlatten +@SkipParentValidation +public class IntegrationAccountRosettaNetProcessConfigurationInner extends Resource { + /** + * The created time. + */ + @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime createdTime; + + /** + * The changed time. + */ + @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime changedTime; + + /** + * The metadata. + */ + @JsonProperty(value = "properties.metadata") + private Map metadata; + + /** + * The RosettaNet process configuration activity settings. + */ + @JsonProperty(value = "properties.activitySettings", required = true) + private RosettaNetPipActivitySettings activitySettings; + + /** + * The integration account RosettaNet process code. + */ + @JsonProperty(value = "properties.processCode", required = true) + private String processCode; + + /** + * The integration account RosettaNet process version. + */ + @JsonProperty(value = "properties.processVersion", required = true) + private String processVersion; + + /** + * The integration account RosettaNet process name. + */ + @JsonProperty(value = "properties.processName", required = true) + private String processName; + + /** + * The RosettaNet initiator role settings. + */ + @JsonProperty(value = "properties.initiatorRoleSettings", required = true) + private RosettaNetPipRoleSettings initiatorRoleSettings; + + /** + * The RosettaNet responder role settings. + */ + @JsonProperty(value = "properties.responderRoleSettings", required = true) + private RosettaNetPipRoleSettings responderRoleSettings; + + /** + * The integration account RosettaNet ProcessConfiguration properties. + */ + @JsonProperty(value = "properties.description") + private String description; + + /** + * Get the created time. + * + * @return the createdTime value + */ + public DateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changed time. + * + * @return the changedTime value + */ + public DateTime changedTime() { + return this.changedTime; + } + + /** + * Get the metadata. + * + * @return the metadata value + */ + public Map metadata() { + return this.metadata; + } + + /** + * Set the metadata. + * + * @param metadata the metadata value to set + * @return the IntegrationAccountRosettaNetProcessConfigurationInner object itself. + */ + public IntegrationAccountRosettaNetProcessConfigurationInner withMetadata(Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get the RosettaNet process configuration activity settings. + * + * @return the activitySettings value + */ + public RosettaNetPipActivitySettings activitySettings() { + return this.activitySettings; + } + + /** + * Set the RosettaNet process configuration activity settings. + * + * @param activitySettings the activitySettings value to set + * @return the IntegrationAccountRosettaNetProcessConfigurationInner object itself. + */ + public IntegrationAccountRosettaNetProcessConfigurationInner withActivitySettings(RosettaNetPipActivitySettings activitySettings) { + this.activitySettings = activitySettings; + return this; + } + + /** + * Get the integration account RosettaNet process code. + * + * @return the processCode value + */ + public String processCode() { + return this.processCode; + } + + /** + * Set the integration account RosettaNet process code. + * + * @param processCode the processCode value to set + * @return the IntegrationAccountRosettaNetProcessConfigurationInner object itself. + */ + public IntegrationAccountRosettaNetProcessConfigurationInner withProcessCode(String processCode) { + this.processCode = processCode; + return this; + } + + /** + * Get the integration account RosettaNet process version. + * + * @return the processVersion value + */ + public String processVersion() { + return this.processVersion; + } + + /** + * Set the integration account RosettaNet process version. + * + * @param processVersion the processVersion value to set + * @return the IntegrationAccountRosettaNetProcessConfigurationInner object itself. + */ + public IntegrationAccountRosettaNetProcessConfigurationInner withProcessVersion(String processVersion) { + this.processVersion = processVersion; + return this; + } + + /** + * Get the integration account RosettaNet process name. + * + * @return the processName value + */ + public String processName() { + return this.processName; + } + + /** + * Set the integration account RosettaNet process name. + * + * @param processName the processName value to set + * @return the IntegrationAccountRosettaNetProcessConfigurationInner object itself. + */ + public IntegrationAccountRosettaNetProcessConfigurationInner withProcessName(String processName) { + this.processName = processName; + return this; + } + + /** + * Get the RosettaNet initiator role settings. + * + * @return the initiatorRoleSettings value + */ + public RosettaNetPipRoleSettings initiatorRoleSettings() { + return this.initiatorRoleSettings; + } + + /** + * Set the RosettaNet initiator role settings. + * + * @param initiatorRoleSettings the initiatorRoleSettings value to set + * @return the IntegrationAccountRosettaNetProcessConfigurationInner object itself. + */ + public IntegrationAccountRosettaNetProcessConfigurationInner withInitiatorRoleSettings(RosettaNetPipRoleSettings initiatorRoleSettings) { + this.initiatorRoleSettings = initiatorRoleSettings; + return this; + } + + /** + * Get the RosettaNet responder role settings. + * + * @return the responderRoleSettings value + */ + public RosettaNetPipRoleSettings responderRoleSettings() { + return this.responderRoleSettings; + } + + /** + * Set the RosettaNet responder role settings. + * + * @param responderRoleSettings the responderRoleSettings value to set + * @return the IntegrationAccountRosettaNetProcessConfigurationInner object itself. + */ + public IntegrationAccountRosettaNetProcessConfigurationInner withResponderRoleSettings(RosettaNetPipRoleSettings responderRoleSettings) { + this.responderRoleSettings = responderRoleSettings; + return this; + } + + /** + * Get the integration account RosettaNet ProcessConfiguration properties. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set the integration account RosettaNet ProcessConfiguration properties. + * + * @param description the description value to set + * @return the IntegrationAccountRosettaNetProcessConfigurationInner object itself. + */ + public IntegrationAccountRosettaNetProcessConfigurationInner withDescription(String description) { + this.description = description; + return this; + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountSchemaImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountSchemaImpl.java index ab4de139b09fb..13d97ca91d666 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountSchemaImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/IntegrationAccountSchemaImpl.java @@ -35,7 +35,7 @@ class IntegrationAccountSchemaImpl extends CreatableUpdatableImpl getAsync(String resourceGroupName, String integrationAccountName, String mapName) { MapsInner client = this.inner(); return client.getAsync(resourceGroupName, integrationAccountName, mapName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public IntegrationAccountMap call(IntegrationAccountMapInner inner) { - return wrapModel(inner); + public Observable call(IntegrationAccountMapInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((IntegrationAccountMap)wrapModel(inner)); + } } }); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/PartnersImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/PartnersImpl.java index e03bc4ff03053..82c68be6c7462 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/PartnersImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/PartnersImpl.java @@ -78,10 +78,14 @@ public IntegrationAccountPartner call(IntegrationAccountPartnerInner inner) { public Observable getAsync(String resourceGroupName, String integrationAccountName, String partnerName) { PartnersInner client = this.inner(); return client.getAsync(resourceGroupName, integrationAccountName, partnerName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public IntegrationAccountPartner call(IntegrationAccountPartnerInner inner) { - return wrapModel(inner); + public Observable call(IntegrationAccountPartnerInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((IntegrationAccountPartner)wrapModel(inner)); + } } }); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RepetitionActionRunWorkflowRequestHistoryImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RepetitionActionRunWorkflowRequestHistoryImpl.java new file mode 100644 index 0000000000000..294700a4231ed --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RepetitionActionRunWorkflowRequestHistoryImpl.java @@ -0,0 +1,81 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01.implementation; + +import com.microsoft.azure.management.logic.v2016_06_01.RepetitionActionRunWorkflowRequestHistory; +import com.microsoft.azure.arm.model.implementation.IndexableRefreshableWrapperImpl; +import rx.Observable; +import com.microsoft.azure.management.logic.v2016_06_01.RequestHistoryProperties; +import java.util.Map; + +class RepetitionActionRunWorkflowRequestHistoryImpl extends IndexableRefreshableWrapperImpl implements RepetitionActionRunWorkflowRequestHistory { + private final LogicManager manager; + private String resourceGroupName; + private String workflowName; + private String runName; + private String actionName; + private String repetitionName; + private String requestHistoryName; + + RepetitionActionRunWorkflowRequestHistoryImpl(RequestHistoryInner inner, LogicManager manager) { + super(null, inner); + this.manager = manager; + // set resource ancestor and positional variables + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.workflowName = IdParsingUtils.getValueFromIdByName(inner.id(), "workflows"); + this.runName = IdParsingUtils.getValueFromIdByName(inner.id(), "runs"); + this.actionName = IdParsingUtils.getValueFromIdByName(inner.id(), "actions"); + this.repetitionName = IdParsingUtils.getValueFromIdByName(inner.id(), "repetitions"); + this.requestHistoryName = IdParsingUtils.getValueFromIdByName(inner.id(), "requestHistories"); + } + + @Override + public LogicManager manager() { + return this.manager; + } + + @Override + protected Observable getInnerAsync() { + WorkflowRunActionRepetitionsRequestHistoriesInner client = this.manager().inner().workflowRunActionRepetitionsRequestHistories(); + return client.getAsync(this.resourceGroupName, this.workflowName, this.runName, this.actionName, this.repetitionName, this.requestHistoryName); + } + + + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String location() { + return this.inner().location(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public RequestHistoryProperties properties() { + return this.inner().properties(); + } + + @Override + public Map tags() { + return this.inner().getTags(); + } + + @Override + public String type() { + return this.inner().type(); + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RequestHistoryInner.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RequestHistoryInner.java new file mode 100644 index 0000000000000..3f951cfe5d992 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RequestHistoryInner.java @@ -0,0 +1,47 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01.implementation; + +import com.microsoft.azure.management.logic.v2016_06_01.RequestHistoryProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * The request history. + */ +@SkipParentValidation +public class RequestHistoryInner extends Resource { + /** + * The request history properties. + */ + @JsonProperty(value = "properties") + private RequestHistoryProperties properties; + + /** + * Get the request history properties. + * + * @return the properties value + */ + public RequestHistoryProperties properties() { + return this.properties; + } + + /** + * Set the request history properties. + * + * @param properties the properties value to set + * @return the RequestHistoryInner object itself. + */ + public RequestHistoryInner withProperties(RequestHistoryProperties properties) { + this.properties = properties; + return this; + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RosettaNetProcessConfigurationsImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RosettaNetProcessConfigurationsImpl.java new file mode 100644 index 0000000000000..2e63ab90ddf52 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RosettaNetProcessConfigurationsImpl.java @@ -0,0 +1,85 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * + */ + +package com.microsoft.azure.management.logic.v2016_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.logic.v2016_06_01.RosettaNetProcessConfigurations; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.logic.v2016_06_01.IntegrationAccountRosettaNetProcessConfiguration; + +class RosettaNetProcessConfigurationsImpl extends WrapperImpl implements RosettaNetProcessConfigurations { + private final LogicManager manager; + + RosettaNetProcessConfigurationsImpl(LogicManager manager) { + super(manager.inner().rosettaNetProcessConfigurations()); + this.manager = manager; + } + + public LogicManager manager() { + return this.manager; + } + + @Override + public IntegrationAccountRosettaNetProcessConfigurationImpl define(String name) { + return wrapModel(name); + } + + private IntegrationAccountRosettaNetProcessConfigurationImpl wrapModel(IntegrationAccountRosettaNetProcessConfigurationInner inner) { + return new IntegrationAccountRosettaNetProcessConfigurationImpl(inner, manager()); + } + + private IntegrationAccountRosettaNetProcessConfigurationImpl wrapModel(String name) { + return new IntegrationAccountRosettaNetProcessConfigurationImpl(name, this.manager()); + } + + @Override + public Observable listByIntegrationAccountsAsync(final String resourceGroupName, final String integrationAccountName) { + RosettaNetProcessConfigurationsInner client = this.inner(); + return client.listByIntegrationAccountsAsync(resourceGroupName, integrationAccountName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public IntegrationAccountRosettaNetProcessConfiguration call(IntegrationAccountRosettaNetProcessConfigurationInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName) { + RosettaNetProcessConfigurationsInner client = this.inner(); + return client.getAsync(resourceGroupName, integrationAccountName, rosettaNetProcessConfigurationName) + .flatMap(new Func1>() { + @Override + public Observable call(IntegrationAccountRosettaNetProcessConfigurationInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((IntegrationAccountRosettaNetProcessConfiguration)wrapModel(inner)); + } + } + }); + } + + @Override + public Completable deleteAsync(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName) { + RosettaNetProcessConfigurationsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, integrationAccountName, rosettaNetProcessConfigurationName).toCompletable(); + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RosettaNetProcessConfigurationsInner.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RosettaNetProcessConfigurationsInner.java new file mode 100644 index 0000000000000..a1f40af6efb2c --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RosettaNetProcessConfigurationsInner.java @@ -0,0 +1,736 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.CloudException; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in RosettaNetProcessConfigurations. + */ +public class RosettaNetProcessConfigurationsInner { + /** The Retrofit service to perform REST calls. */ + private RosettaNetProcessConfigurationsService service; + /** The service client containing this operation class. */ + private LogicManagementClientImpl client; + + /** + * Initializes an instance of RosettaNetProcessConfigurationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public RosettaNetProcessConfigurationsInner(Retrofit retrofit, LogicManagementClientImpl client) { + this.service = retrofit.create(RosettaNetProcessConfigurationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for RosettaNetProcessConfigurations to be + * used by Retrofit to perform actually REST calls. + */ + interface RosettaNetProcessConfigurationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.RosettaNetProcessConfigurations listByIntegrationAccounts" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/rosettanetprocessconfigurations") + Observable> listByIntegrationAccounts(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("integrationAccountName") String integrationAccountName, @Query("api-version") String apiVersion, @Query("$top") Integer top, @Query("$filter") String filter, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.RosettaNetProcessConfigurations get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/rosettanetprocessconfigurations/{rosettaNetProcessConfigurationName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("integrationAccountName") String integrationAccountName, @Path("rosettaNetProcessConfigurationName") String rosettaNetProcessConfigurationName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.RosettaNetProcessConfigurations createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/rosettanetprocessconfigurations/{rosettaNetProcessConfigurationName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("integrationAccountName") String integrationAccountName, @Path("rosettaNetProcessConfigurationName") String rosettaNetProcessConfigurationName, @Query("api-version") String apiVersion, @Body IntegrationAccountRosettaNetProcessConfigurationInner rosettaNetProcessConfiguration, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.RosettaNetProcessConfigurations delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/rosettanetprocessconfigurations/{rosettaNetProcessConfigurationName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("integrationAccountName") String integrationAccountName, @Path("rosettaNetProcessConfigurationName") String rosettaNetProcessConfigurationName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.RosettaNetProcessConfigurations listByIntegrationAccountsNext" }) + @GET + Observable> listByIntegrationAccountsNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<IntegrationAccountRosettaNetProcessConfigurationInner> object if successful. + */ + public PagedList listByIntegrationAccounts(final String resourceGroupName, final String integrationAccountName) { + ServiceResponse> response = listByIntegrationAccountsSinglePageAsync(resourceGroupName, integrationAccountName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByIntegrationAccountsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByIntegrationAccountsAsync(final String resourceGroupName, final String integrationAccountName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByIntegrationAccountsSinglePageAsync(resourceGroupName, integrationAccountName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByIntegrationAccountsNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<IntegrationAccountRosettaNetProcessConfigurationInner> object + */ + public Observable> listByIntegrationAccountsAsync(final String resourceGroupName, final String integrationAccountName) { + return listByIntegrationAccountsWithServiceResponseAsync(resourceGroupName, integrationAccountName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<IntegrationAccountRosettaNetProcessConfigurationInner> object + */ + public Observable>> listByIntegrationAccountsWithServiceResponseAsync(final String resourceGroupName, final String integrationAccountName) { + return listByIntegrationAccountsSinglePageAsync(resourceGroupName, integrationAccountName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByIntegrationAccountsNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<IntegrationAccountRosettaNetProcessConfigurationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByIntegrationAccountsSinglePageAsync(final String resourceGroupName, final String integrationAccountName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (integrationAccountName == null) { + throw new IllegalArgumentException("Parameter integrationAccountName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Integer top = null; + final String filter = null; + return service.listByIntegrationAccounts(this.client.subscriptionId(), resourceGroupName, integrationAccountName, this.client.apiVersion(), top, filter, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByIntegrationAccountsDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param top The number of items to be included in the result. + * @param filter The filter to apply on the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<IntegrationAccountRosettaNetProcessConfigurationInner> object if successful. + */ + public PagedList listByIntegrationAccounts(final String resourceGroupName, final String integrationAccountName, final Integer top, final String filter) { + ServiceResponse> response = listByIntegrationAccountsSinglePageAsync(resourceGroupName, integrationAccountName, top, filter).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByIntegrationAccountsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param top The number of items to be included in the result. + * @param filter The filter to apply on the operation. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByIntegrationAccountsAsync(final String resourceGroupName, final String integrationAccountName, final Integer top, final String filter, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByIntegrationAccountsSinglePageAsync(resourceGroupName, integrationAccountName, top, filter), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByIntegrationAccountsNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param top The number of items to be included in the result. + * @param filter The filter to apply on the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<IntegrationAccountRosettaNetProcessConfigurationInner> object + */ + public Observable> listByIntegrationAccountsAsync(final String resourceGroupName, final String integrationAccountName, final Integer top, final String filter) { + return listByIntegrationAccountsWithServiceResponseAsync(resourceGroupName, integrationAccountName, top, filter) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param top The number of items to be included in the result. + * @param filter The filter to apply on the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<IntegrationAccountRosettaNetProcessConfigurationInner> object + */ + public Observable>> listByIntegrationAccountsWithServiceResponseAsync(final String resourceGroupName, final String integrationAccountName, final Integer top, final String filter) { + return listByIntegrationAccountsSinglePageAsync(resourceGroupName, integrationAccountName, top, filter) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByIntegrationAccountsNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + ServiceResponse> * @param resourceGroupName The resource group name. + ServiceResponse> * @param integrationAccountName The integration account name. + ServiceResponse> * @param top The number of items to be included in the result. + ServiceResponse> * @param filter The filter to apply on the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<IntegrationAccountRosettaNetProcessConfigurationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByIntegrationAccountsSinglePageAsync(final String resourceGroupName, final String integrationAccountName, final Integer top, final String filter) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (integrationAccountName == null) { + throw new IllegalArgumentException("Parameter integrationAccountName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByIntegrationAccounts(this.client.subscriptionId(), resourceGroupName, integrationAccountName, this.client.apiVersion(), top, filter, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByIntegrationAccountsDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByIntegrationAccountsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets an integration account RosettaNetProcessConfiguration. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param rosettaNetProcessConfigurationName The integration account RosettaNetProcessConfiguration name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationAccountRosettaNetProcessConfigurationInner object if successful. + */ + public IntegrationAccountRosettaNetProcessConfigurationInner get(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName) { + return getWithServiceResponseAsync(resourceGroupName, integrationAccountName, rosettaNetProcessConfigurationName).toBlocking().single().body(); + } + + /** + * Gets an integration account RosettaNetProcessConfiguration. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param rosettaNetProcessConfigurationName The integration account RosettaNetProcessConfiguration name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, integrationAccountName, rosettaNetProcessConfigurationName), serviceCallback); + } + + /** + * Gets an integration account RosettaNetProcessConfiguration. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param rosettaNetProcessConfigurationName The integration account RosettaNetProcessConfiguration name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationAccountRosettaNetProcessConfigurationInner object + */ + public Observable getAsync(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName) { + return getWithServiceResponseAsync(resourceGroupName, integrationAccountName, rosettaNetProcessConfigurationName).map(new Func1, IntegrationAccountRosettaNetProcessConfigurationInner>() { + @Override + public IntegrationAccountRosettaNetProcessConfigurationInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets an integration account RosettaNetProcessConfiguration. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param rosettaNetProcessConfigurationName The integration account RosettaNetProcessConfiguration name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationAccountRosettaNetProcessConfigurationInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (integrationAccountName == null) { + throw new IllegalArgumentException("Parameter integrationAccountName is required and cannot be null."); + } + if (rosettaNetProcessConfigurationName == null) { + throw new IllegalArgumentException("Parameter rosettaNetProcessConfigurationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, integrationAccountName, rosettaNetProcessConfigurationName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates or updates an integration account RosettaNetProcessConfiguration. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param rosettaNetProcessConfigurationName The integration account RosettaNet ProcessConfiguration name. + * @param rosettaNetProcessConfiguration The integration account RosettaNet ProcessConfiguration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IntegrationAccountRosettaNetProcessConfigurationInner object if successful. + */ + public IntegrationAccountRosettaNetProcessConfigurationInner createOrUpdate(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName, IntegrationAccountRosettaNetProcessConfigurationInner rosettaNetProcessConfiguration) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, integrationAccountName, rosettaNetProcessConfigurationName, rosettaNetProcessConfiguration).toBlocking().single().body(); + } + + /** + * Creates or updates an integration account RosettaNetProcessConfiguration. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param rosettaNetProcessConfigurationName The integration account RosettaNet ProcessConfiguration name. + * @param rosettaNetProcessConfiguration The integration account RosettaNet ProcessConfiguration. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName, IntegrationAccountRosettaNetProcessConfigurationInner rosettaNetProcessConfiguration, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, integrationAccountName, rosettaNetProcessConfigurationName, rosettaNetProcessConfiguration), serviceCallback); + } + + /** + * Creates or updates an integration account RosettaNetProcessConfiguration. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param rosettaNetProcessConfigurationName The integration account RosettaNet ProcessConfiguration name. + * @param rosettaNetProcessConfiguration The integration account RosettaNet ProcessConfiguration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationAccountRosettaNetProcessConfigurationInner object + */ + public Observable createOrUpdateAsync(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName, IntegrationAccountRosettaNetProcessConfigurationInner rosettaNetProcessConfiguration) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, integrationAccountName, rosettaNetProcessConfigurationName, rosettaNetProcessConfiguration).map(new Func1, IntegrationAccountRosettaNetProcessConfigurationInner>() { + @Override + public IntegrationAccountRosettaNetProcessConfigurationInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates or updates an integration account RosettaNetProcessConfiguration. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param rosettaNetProcessConfigurationName The integration account RosettaNet ProcessConfiguration name. + * @param rosettaNetProcessConfiguration The integration account RosettaNet ProcessConfiguration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the IntegrationAccountRosettaNetProcessConfigurationInner object + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName, IntegrationAccountRosettaNetProcessConfigurationInner rosettaNetProcessConfiguration) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (integrationAccountName == null) { + throw new IllegalArgumentException("Parameter integrationAccountName is required and cannot be null."); + } + if (rosettaNetProcessConfigurationName == null) { + throw new IllegalArgumentException("Parameter rosettaNetProcessConfigurationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + if (rosettaNetProcessConfiguration == null) { + throw new IllegalArgumentException("Parameter rosettaNetProcessConfiguration is required and cannot be null."); + } + Validator.validate(rosettaNetProcessConfiguration); + return service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, integrationAccountName, rosettaNetProcessConfigurationName, this.client.apiVersion(), rosettaNetProcessConfiguration, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Deletes an integration account RosettaNet ProcessConfiguration. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param rosettaNetProcessConfigurationName The integration account RosettaNetProcessConfiguration name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName) { + deleteWithServiceResponseAsync(resourceGroupName, integrationAccountName, rosettaNetProcessConfigurationName).toBlocking().single().body(); + } + + /** + * Deletes an integration account RosettaNet ProcessConfiguration. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param rosettaNetProcessConfigurationName The integration account RosettaNetProcessConfiguration name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, integrationAccountName, rosettaNetProcessConfigurationName), serviceCallback); + } + + /** + * Deletes an integration account RosettaNet ProcessConfiguration. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param rosettaNetProcessConfigurationName The integration account RosettaNetProcessConfiguration name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName) { + return deleteWithServiceResponseAsync(resourceGroupName, integrationAccountName, rosettaNetProcessConfigurationName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes an integration account RosettaNet ProcessConfiguration. + * + * @param resourceGroupName The resource group name. + * @param integrationAccountName The integration account name. + * @param rosettaNetProcessConfigurationName The integration account RosettaNetProcessConfiguration name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String integrationAccountName, String rosettaNetProcessConfigurationName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (integrationAccountName == null) { + throw new IllegalArgumentException("Parameter integrationAccountName is required and cannot be null."); + } + if (rosettaNetProcessConfigurationName == null) { + throw new IllegalArgumentException("Parameter rosettaNetProcessConfigurationName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), resourceGroupName, integrationAccountName, rosettaNetProcessConfigurationName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<IntegrationAccountRosettaNetProcessConfigurationInner> object if successful. + */ + public PagedList listByIntegrationAccountsNext(final String nextPageLink) { + ServiceResponse> response = listByIntegrationAccountsNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByIntegrationAccountsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByIntegrationAccountsNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByIntegrationAccountsNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByIntegrationAccountsNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<IntegrationAccountRosettaNetProcessConfigurationInner> object + */ + public Observable> listByIntegrationAccountsNextAsync(final String nextPageLink) { + return listByIntegrationAccountsNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<IntegrationAccountRosettaNetProcessConfigurationInner> object + */ + public Observable>> listByIntegrationAccountsNextWithServiceResponseAsync(final String nextPageLink) { + return listByIntegrationAccountsNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByIntegrationAccountsNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets a list of integration account RosettaNet process configurations. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<IntegrationAccountRosettaNetProcessConfigurationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByIntegrationAccountsNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByIntegrationAccountsNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByIntegrationAccountsNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByIntegrationAccountsNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RunWorkflowWorkflowRunImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RunWorkflowWorkflowRunImpl.java index 45dfa28b9f338..472cd14eed585 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RunWorkflowWorkflowRunImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RunWorkflowWorkflowRunImpl.java @@ -29,6 +29,7 @@ class RunWorkflowWorkflowRunImpl extends IndexableRefreshableWrapperImpl getAsync(String resourceGroupName, String integrationAccountName, String schemaName) { SchemasInner client = this.inner(); return client.getAsync(resourceGroupName, integrationAccountName, schemaName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public IntegrationAccountSchema call(IntegrationAccountSchemaInner inner) { - return wrapModel(inner); + public Observable call(IntegrationAccountSchemaInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((IntegrationAccountSchema)wrapModel(inner)); + } } }); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/SessionsImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/SessionsImpl.java index d04c692834cfd..0c6e26ce9dc3e 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/SessionsImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/SessionsImpl.java @@ -64,10 +64,14 @@ public IntegrationAccountSession call(IntegrationAccountSessionInner inner) { public Observable getAsync(String resourceGroupName, String integrationAccountName, String sessionName) { SessionsInner client = this.inner(); return client.getAsync(resourceGroupName, integrationAccountName, sessionName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public IntegrationAccountSession call(IntegrationAccountSessionInner inner) { - return wrapModel(inner); + public Observable call(IntegrationAccountSessionInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((IntegrationAccountSession)wrapModel(inner)); + } } }); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowInner.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowInner.java index e8b5e2054e88f..529eda773123b 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowInner.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowInner.java @@ -80,7 +80,9 @@ public class WorkflowInner extends Resource { private ResourceReference integrationAccount; /** - * The definition. + * The definition. See [Schema reference for Workflow Definition Language + * in Azure Logic + * Apps](https://aka.ms/logic-apps-workflow-definition-language). */ @JsonProperty(value = "properties.definition") private Object definition; @@ -197,7 +199,7 @@ public WorkflowInner withIntegrationAccount(ResourceReference integrationAccount } /** - * Get the definition. + * Get the definition. See [Schema reference for Workflow Definition Language in Azure Logic Apps](https://aka.ms/logic-apps-workflow-definition-language). * * @return the definition value */ @@ -206,7 +208,7 @@ public Object definition() { } /** - * Set the definition. + * Set the definition. See [Schema reference for Workflow Definition Language in Azure Logic Apps](https://aka.ms/logic-apps-workflow-definition-language). * * @param definition the definition value to set * @return the WorkflowInner object itself. diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionImpl.java index 2f865e2f3ce3c..148b7beb6e0ef 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionImpl.java @@ -28,6 +28,7 @@ class WorkflowRunActionImpl extends IndexableRefreshableWrapperImpl getAsync(String resourceGroupName, String workflowName, String runName, String actionName, String repetitionName) { WorkflowRunActionRepetitionsInner client = this.inner(); return client.getAsync(resourceGroupName, workflowName, runName, actionName, repetitionName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public ActionRunWorkflowWorkflowRunActionRepetitionDefinition call(WorkflowRunActionRepetitionDefinitionInner inner) { - return wrapModel(inner); + public Observable call(WorkflowRunActionRepetitionDefinitionInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((ActionRunWorkflowWorkflowRunActionRepetitionDefinition)wrapModel(inner)); + } } }); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRepetitionsRequestHistoriesImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRepetitionsRequestHistoriesImpl.java new file mode 100644 index 0000000000000..755b9cde07d6e --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRepetitionsRequestHistoriesImpl.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * + */ + +package com.microsoft.azure.management.logic.v2016_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.logic.v2016_06_01.WorkflowRunActionRepetitionsRequestHistories; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.logic.v2016_06_01.RepetitionActionRunWorkflowRequestHistory; + +class WorkflowRunActionRepetitionsRequestHistoriesImpl extends WrapperImpl implements WorkflowRunActionRepetitionsRequestHistories { + private final LogicManager manager; + + WorkflowRunActionRepetitionsRequestHistoriesImpl(LogicManager manager) { + super(manager.inner().workflowRunActionRepetitionsRequestHistories()); + this.manager = manager; + } + + public LogicManager manager() { + return this.manager; + } + + private RepetitionActionRunWorkflowRequestHistoryImpl wrapModel(RequestHistoryInner inner) { + return new RepetitionActionRunWorkflowRequestHistoryImpl(inner, manager()); + } + + @Override + public Observable listAsync(final String resourceGroupName, final String workflowName, final String runName, final String actionName, final String repetitionName) { + WorkflowRunActionRepetitionsRequestHistoriesInner client = this.inner(); + return client.listAsync(resourceGroupName, workflowName, runName, actionName, repetitionName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public RepetitionActionRunWorkflowRequestHistory call(RequestHistoryInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String workflowName, String runName, String actionName, String repetitionName, String requestHistoryName) { + WorkflowRunActionRepetitionsRequestHistoriesInner client = this.inner(); + return client.getAsync(resourceGroupName, workflowName, runName, actionName, repetitionName, requestHistoryName) + .flatMap(new Func1>() { + @Override + public Observable call(RequestHistoryInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((RepetitionActionRunWorkflowRequestHistory)wrapModel(inner)); + } + } + }); + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRepetitionsRequestHistoriesInner.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRepetitionsRequestHistoriesInner.java new file mode 100644 index 0000000000000..e4e2f8f176a11 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRepetitionsRequestHistoriesInner.java @@ -0,0 +1,446 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.logic.v2016_06_01.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in WorkflowRunActionRepetitionsRequestHistories. + */ +public class WorkflowRunActionRepetitionsRequestHistoriesInner { + /** The Retrofit service to perform REST calls. */ + private WorkflowRunActionRepetitionsRequestHistoriesService service; + /** The service client containing this operation class. */ + private LogicManagementClientImpl client; + + /** + * Initializes an instance of WorkflowRunActionRepetitionsRequestHistoriesInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public WorkflowRunActionRepetitionsRequestHistoriesInner(Retrofit retrofit, LogicManagementClientImpl client) { + this.service = retrofit.create(WorkflowRunActionRepetitionsRequestHistoriesService.class); + this.client = client; + } + + /** + * The interface defining all the services for WorkflowRunActionRepetitionsRequestHistories to be + * used by Retrofit to perform actually REST calls. + */ + interface WorkflowRunActionRepetitionsRequestHistoriesService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.WorkflowRunActionRepetitionsRequestHistories list" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/requestHistories") + Observable> list(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("workflowName") String workflowName, @Path("runName") String runName, @Path("actionName") String actionName, @Path("repetitionName") String repetitionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.WorkflowRunActionRepetitionsRequestHistories get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/requestHistories/{requestHistoryName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("workflowName") String workflowName, @Path("runName") String runName, @Path("actionName") String actionName, @Path("repetitionName") String repetitionName, @Path("requestHistoryName") String requestHistoryName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.WorkflowRunActionRepetitionsRequestHistories listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * List a workflow run repetition request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param repetitionName The workflow repetition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RequestHistoryInner> object if successful. + */ + public PagedList list(final String resourceGroupName, final String workflowName, final String runName, final String actionName, final String repetitionName) { + ServiceResponse> response = listSinglePageAsync(resourceGroupName, workflowName, runName, actionName, repetitionName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List a workflow run repetition request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param repetitionName The workflow repetition. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final String resourceGroupName, final String workflowName, final String runName, final String actionName, final String repetitionName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(resourceGroupName, workflowName, runName, actionName, repetitionName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List a workflow run repetition request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param repetitionName The workflow repetition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RequestHistoryInner> object + */ + public Observable> listAsync(final String resourceGroupName, final String workflowName, final String runName, final String actionName, final String repetitionName) { + return listWithServiceResponseAsync(resourceGroupName, workflowName, runName, actionName, repetitionName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List a workflow run repetition request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param repetitionName The workflow repetition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RequestHistoryInner> object + */ + public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String workflowName, final String runName, final String actionName, final String repetitionName) { + return listSinglePageAsync(resourceGroupName, workflowName, runName, actionName, repetitionName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List a workflow run repetition request history. + * + ServiceResponse> * @param resourceGroupName The resource group name. + ServiceResponse> * @param workflowName The workflow name. + ServiceResponse> * @param runName The workflow run name. + ServiceResponse> * @param actionName The workflow action name. + ServiceResponse> * @param repetitionName The workflow repetition. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RequestHistoryInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync(final String resourceGroupName, final String workflowName, final String runName, final String actionName, final String repetitionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (workflowName == null) { + throw new IllegalArgumentException("Parameter workflowName is required and cannot be null."); + } + if (runName == null) { + throw new IllegalArgumentException("Parameter runName is required and cannot be null."); + } + if (actionName == null) { + throw new IllegalArgumentException("Parameter actionName is required and cannot be null."); + } + if (repetitionName == null) { + throw new IllegalArgumentException("Parameter repetitionName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), resourceGroupName, workflowName, runName, actionName, repetitionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets a workflow run repetition request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param repetitionName The workflow repetition. + * @param requestHistoryName The request history name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the RequestHistoryInner object if successful. + */ + public RequestHistoryInner get(String resourceGroupName, String workflowName, String runName, String actionName, String repetitionName, String requestHistoryName) { + return getWithServiceResponseAsync(resourceGroupName, workflowName, runName, actionName, repetitionName, requestHistoryName).toBlocking().single().body(); + } + + /** + * Gets a workflow run repetition request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param repetitionName The workflow repetition. + * @param requestHistoryName The request history name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String workflowName, String runName, String actionName, String repetitionName, String requestHistoryName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, workflowName, runName, actionName, repetitionName, requestHistoryName), serviceCallback); + } + + /** + * Gets a workflow run repetition request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param repetitionName The workflow repetition. + * @param requestHistoryName The request history name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RequestHistoryInner object + */ + public Observable getAsync(String resourceGroupName, String workflowName, String runName, String actionName, String repetitionName, String requestHistoryName) { + return getWithServiceResponseAsync(resourceGroupName, workflowName, runName, actionName, repetitionName, requestHistoryName).map(new Func1, RequestHistoryInner>() { + @Override + public RequestHistoryInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets a workflow run repetition request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param repetitionName The workflow repetition. + * @param requestHistoryName The request history name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RequestHistoryInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String workflowName, String runName, String actionName, String repetitionName, String requestHistoryName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (workflowName == null) { + throw new IllegalArgumentException("Parameter workflowName is required and cannot be null."); + } + if (runName == null) { + throw new IllegalArgumentException("Parameter runName is required and cannot be null."); + } + if (actionName == null) { + throw new IllegalArgumentException("Parameter actionName is required and cannot be null."); + } + if (repetitionName == null) { + throw new IllegalArgumentException("Parameter repetitionName is required and cannot be null."); + } + if (requestHistoryName == null) { + throw new IllegalArgumentException("Parameter requestHistoryName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, workflowName, runName, actionName, repetitionName, requestHistoryName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * List a workflow run repetition request history. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RequestHistoryInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List a workflow run repetition request history. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List a workflow run repetition request history. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RequestHistoryInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List a workflow run repetition request history. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RequestHistoryInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List a workflow run repetition request history. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RequestHistoryInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRequestHistoriesImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRequestHistoriesImpl.java new file mode 100644 index 0000000000000..4bc84b6363f14 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRequestHistoriesImpl.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * + */ + +package com.microsoft.azure.management.logic.v2016_06_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.logic.v2016_06_01.WorkflowRunActionRequestHistories; +import rx.Observable; +import rx.functions.Func1; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.logic.v2016_06_01.ActionRunWorkflowRequestHistory; + +class WorkflowRunActionRequestHistoriesImpl extends WrapperImpl implements WorkflowRunActionRequestHistories { + private final LogicManager manager; + + WorkflowRunActionRequestHistoriesImpl(LogicManager manager) { + super(manager.inner().workflowRunActionRequestHistories()); + this.manager = manager; + } + + public LogicManager manager() { + return this.manager; + } + + private ActionRunWorkflowRequestHistoryImpl wrapModel(RequestHistoryInner inner) { + return new ActionRunWorkflowRequestHistoryImpl(inner, manager()); + } + + @Override + public Observable listAsync(final String resourceGroupName, final String workflowName, final String runName, final String actionName) { + WorkflowRunActionRequestHistoriesInner client = this.inner(); + return client.listAsync(resourceGroupName, workflowName, runName, actionName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public ActionRunWorkflowRequestHistory call(RequestHistoryInner inner) { + return wrapModel(inner); + } + }); + } + + @Override + public Observable getAsync(String resourceGroupName, String workflowName, String runName, String actionName, String requestHistoryName) { + WorkflowRunActionRequestHistoriesInner client = this.inner(); + return client.getAsync(resourceGroupName, workflowName, runName, actionName, requestHistoryName) + .flatMap(new Func1>() { + @Override + public Observable call(RequestHistoryInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((ActionRunWorkflowRequestHistory)wrapModel(inner)); + } + } + }); + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRequestHistoriesInner.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRequestHistoriesInner.java new file mode 100644 index 0000000000000..2d03669325ba2 --- /dev/null +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRequestHistoriesInner.java @@ -0,0 +1,431 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.logic.v2016_06_01.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.logic.v2016_06_01.ErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in WorkflowRunActionRequestHistories. + */ +public class WorkflowRunActionRequestHistoriesInner { + /** The Retrofit service to perform REST calls. */ + private WorkflowRunActionRequestHistoriesService service; + /** The service client containing this operation class. */ + private LogicManagementClientImpl client; + + /** + * Initializes an instance of WorkflowRunActionRequestHistoriesInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public WorkflowRunActionRequestHistoriesInner(Retrofit retrofit, LogicManagementClientImpl client) { + this.service = retrofit.create(WorkflowRunActionRequestHistoriesService.class); + this.client = client; + } + + /** + * The interface defining all the services for WorkflowRunActionRequestHistories to be + * used by Retrofit to perform actually REST calls. + */ + interface WorkflowRunActionRequestHistoriesService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.WorkflowRunActionRequestHistories list" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/requestHistories") + Observable> list(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("workflowName") String workflowName, @Path("runName") String runName, @Path("actionName") String actionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.WorkflowRunActionRequestHistories get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/requestHistories/{requestHistoryName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("workflowName") String workflowName, @Path("runName") String runName, @Path("actionName") String actionName, @Path("requestHistoryName") String requestHistoryName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.WorkflowRunActionRequestHistories listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * List a workflow run request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RequestHistoryInner> object if successful. + */ + public PagedList list(final String resourceGroupName, final String workflowName, final String runName, final String actionName) { + ServiceResponse> response = listSinglePageAsync(resourceGroupName, workflowName, runName, actionName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List a workflow run request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final String resourceGroupName, final String workflowName, final String runName, final String actionName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(resourceGroupName, workflowName, runName, actionName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List a workflow run request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RequestHistoryInner> object + */ + public Observable> listAsync(final String resourceGroupName, final String workflowName, final String runName, final String actionName) { + return listWithServiceResponseAsync(resourceGroupName, workflowName, runName, actionName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List a workflow run request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RequestHistoryInner> object + */ + public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String workflowName, final String runName, final String actionName) { + return listSinglePageAsync(resourceGroupName, workflowName, runName, actionName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List a workflow run request history. + * + ServiceResponse> * @param resourceGroupName The resource group name. + ServiceResponse> * @param workflowName The workflow name. + ServiceResponse> * @param runName The workflow run name. + ServiceResponse> * @param actionName The workflow action name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RequestHistoryInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync(final String resourceGroupName, final String workflowName, final String runName, final String actionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (workflowName == null) { + throw new IllegalArgumentException("Parameter workflowName is required and cannot be null."); + } + if (runName == null) { + throw new IllegalArgumentException("Parameter runName is required and cannot be null."); + } + if (actionName == null) { + throw new IllegalArgumentException("Parameter actionName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), resourceGroupName, workflowName, runName, actionName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets a workflow run request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param requestHistoryName The request history name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the RequestHistoryInner object if successful. + */ + public RequestHistoryInner get(String resourceGroupName, String workflowName, String runName, String actionName, String requestHistoryName) { + return getWithServiceResponseAsync(resourceGroupName, workflowName, runName, actionName, requestHistoryName).toBlocking().single().body(); + } + + /** + * Gets a workflow run request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param requestHistoryName The request history name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String workflowName, String runName, String actionName, String requestHistoryName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, workflowName, runName, actionName, requestHistoryName), serviceCallback); + } + + /** + * Gets a workflow run request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param requestHistoryName The request history name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RequestHistoryInner object + */ + public Observable getAsync(String resourceGroupName, String workflowName, String runName, String actionName, String requestHistoryName) { + return getWithServiceResponseAsync(resourceGroupName, workflowName, runName, actionName, requestHistoryName).map(new Func1, RequestHistoryInner>() { + @Override + public RequestHistoryInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets a workflow run request history. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param actionName The workflow action name. + * @param requestHistoryName The request history name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RequestHistoryInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String workflowName, String runName, String actionName, String requestHistoryName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (workflowName == null) { + throw new IllegalArgumentException("Parameter workflowName is required and cannot be null."); + } + if (runName == null) { + throw new IllegalArgumentException("Parameter runName is required and cannot be null."); + } + if (actionName == null) { + throw new IllegalArgumentException("Parameter actionName is required and cannot be null."); + } + if (requestHistoryName == null) { + throw new IllegalArgumentException("Parameter requestHistoryName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), resourceGroupName, workflowName, runName, actionName, requestHistoryName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * List a workflow run request history. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RequestHistoryInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List a workflow run request history. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List a workflow run request history. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RequestHistoryInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List a workflow run request history. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RequestHistoryInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List a workflow run request history. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RequestHistoryInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionScopedRepetitionsImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionScopedRepetitionsImpl.java index 196636a93d97e..6045c366ec4b4 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionScopedRepetitionsImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionScopedRepetitionsImpl.java @@ -48,10 +48,14 @@ public WorkflowRunActionRepetitionDefinitionCollection call(WorkflowRunActionRep public Observable getAsync(String resourceGroupName, String workflowName, String runName, String actionName, String repetitionName) { WorkflowRunActionScopedRepetitionsInner client = this.inner(); return client.getAsync(resourceGroupName, workflowName, runName, actionName, repetitionName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public ActionRunWorkflowWorkflowRunActionRepetitionDefinitionModel call(WorkflowRunActionRepetitionDefinitionInner inner) { - return wrapModel(inner); + public Observable call(WorkflowRunActionRepetitionDefinitionInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((ActionRunWorkflowWorkflowRunActionRepetitionDefinitionModel)wrapModel(inner)); + } } }); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionsImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionsImpl.java index 36d9614f03d74..5f3d748ec159e 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionsImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionsImpl.java @@ -74,10 +74,14 @@ public WorkflowRunAction call(WorkflowRunActionInner inner) { public Observable getAsync(String resourceGroupName, String workflowName, String runName, String actionName) { WorkflowRunActionsInner client = this.inner(); return client.getAsync(resourceGroupName, workflowName, runName, actionName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public WorkflowRunAction call(WorkflowRunActionInner inner) { - return wrapModel(inner); + public Observable call(WorkflowRunActionInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((WorkflowRunAction)wrapModel(inner)); + } } }); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunOperationsImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunOperationsImpl.java index 4a93d66bf4c16..058bddf18d4bf 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunOperationsImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunOperationsImpl.java @@ -35,10 +35,14 @@ private RunWorkflowWorkflowRunImpl wrapModel(WorkflowRunInner inner) { public Observable getAsync(String resourceGroupName, String workflowName, String runName, String operationId) { WorkflowRunOperationsInner client = this.inner(); return client.getAsync(resourceGroupName, workflowName, runName, operationId) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public RunWorkflowWorkflowRun call(WorkflowRunInner inner) { - return wrapModel(inner); + public Observable call(WorkflowRunInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((RunWorkflowWorkflowRun)wrapModel(inner)); + } } }); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunsImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunsImpl.java index 6123aec035f40..12831f5c4f82b 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunsImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunsImpl.java @@ -11,10 +11,10 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; import com.microsoft.azure.management.logic.v2016_06_01.WorkflowRuns; +import rx.Completable; import rx.Observable; import rx.functions.Func1; import com.microsoft.azure.Page; -import rx.Completable; import com.microsoft.azure.management.logic.v2016_06_01.WorkflowWorkflowRun; class WorkflowRunsImpl extends WrapperImpl implements WorkflowRuns { @@ -61,12 +61,22 @@ public WorkflowWorkflowRun call(WorkflowRunInner inner) { public Observable getAsync(String resourceGroupName, String workflowName, String runName) { WorkflowRunsInner client = this.inner(); return client.getAsync(resourceGroupName, workflowName, runName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public WorkflowWorkflowRun call(WorkflowRunInner inner) { - return wrapModel(inner); + public Observable call(WorkflowRunInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((WorkflowWorkflowRun)wrapModel(inner)); + } } }); } + @Override + public Completable deleteAsync(String resourceGroupName, String workflowName, String runName) { + WorkflowRunsInner client = this.inner(); + return client.deleteAsync(resourceGroupName, workflowName, runName).toCompletable(); + } + } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunsInner.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunsInner.java index 549c4b04d1c84..6fc71a61f0b61 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunsInner.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunsInner.java @@ -24,6 +24,7 @@ import retrofit2.http.GET; import retrofit2.http.Header; import retrofit2.http.Headers; +import retrofit2.http.HTTP; import retrofit2.http.Path; import retrofit2.http.POST; import retrofit2.http.Query; @@ -66,6 +67,10 @@ interface WorkflowRunsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}") Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("workflowName") String workflowName, @Path("runName") String runName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.WorkflowRuns delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("workflowName") String workflowName, @Path("runName") String runName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.WorkflowRuns cancel" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/cancel") Observable> cancel(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("workflowName") String workflowName, @Path("runName") String runName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -420,6 +425,99 @@ private ServiceResponse getDelegate(Response res .build(response); } + /** + * Deletes a workflow run. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String workflowName, String runName) { + deleteWithServiceResponseAsync(resourceGroupName, workflowName, runName).toBlocking().single().body(); + } + + /** + * Deletes a workflow run. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String workflowName, String runName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, workflowName, runName), serviceCallback); + } + + /** + * Deletes a workflow run. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteAsync(String resourceGroupName, String workflowName, String runName) { + return deleteWithServiceResponseAsync(resourceGroupName, workflowName, runName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a workflow run. + * + * @param resourceGroupName The resource group name. + * @param workflowName The workflow name. + * @param runName The workflow run name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String workflowName, String runName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (workflowName == null) { + throw new IllegalArgumentException("Parameter workflowName is required and cannot be null."); + } + if (runName == null) { + throw new IllegalArgumentException("Parameter runName is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), resourceGroupName, workflowName, runName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + /** * Cancels a workflow run. * diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggerHistoriesImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggerHistoriesImpl.java index c41c6f6c5b1b9..5c3553dffd8df 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggerHistoriesImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggerHistoriesImpl.java @@ -61,10 +61,14 @@ public WorkflowTriggerHistory call(WorkflowTriggerHistoryInner inner) { public Observable getAsync(String resourceGroupName, String workflowName, String triggerName, String historyName) { WorkflowTriggerHistoriesInner client = this.inner(); return client.getAsync(resourceGroupName, workflowName, triggerName, historyName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public WorkflowTriggerHistory call(WorkflowTriggerHistoryInner inner) { - return wrapModel(inner); + public Observable call(WorkflowTriggerHistoryInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((WorkflowTriggerHistory)wrapModel(inner)); + } } }); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggerHistoryImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggerHistoryImpl.java index 3dd644fa22846..8f964e6f17408 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggerHistoryImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggerHistoryImpl.java @@ -27,6 +27,7 @@ class WorkflowTriggerHistoryImpl extends IndexableRefreshableWrapperImpl getWorkflowTriggerInnerUsingWorkflowTri public Observable getAsync(String resourceGroupName, String workflowName, String triggerName) { WorkflowTriggersInner client = this.inner(); return client.getAsync(resourceGroupName, workflowName, triggerName) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public WorkflowTrigger call(WorkflowTriggerInner inner) { - return wrapWorkflowTriggerModel(inner); + public Observable call(WorkflowTriggerInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((WorkflowTrigger)wrapWorkflowTriggerModel(inner)); + } } }); } @@ -80,10 +84,10 @@ public Completable resetAsync(String resourceGroupName, String workflowName, Str } @Override - public Completable runAsync(String resourceGroupName, String workflowName, String triggerName) { + public Observable runAsync(String resourceGroupName, String workflowName, String triggerName) { WorkflowTriggersInner client = this.inner(); - return client.runAsync(resourceGroupName, workflowName, triggerName).toCompletable(); - } + return client.runAsync(resourceGroupName, workflowName, triggerName) + ;} @Override public Completable setStateAsync(String resourceGroupName, String workflowName, String triggerName, WorkflowTriggerInner source) { diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggersInner.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggersInner.java index bb9bb99e54281..dfeddf0f594b6 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggersInner.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggersInner.java @@ -63,7 +63,7 @@ public WorkflowTriggersInner(Retrofit retrofit, LogicManagementClientImpl client */ interface WorkflowTriggersService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.WorkflowTriggers list" }) - @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/") + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers") Observable> list(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("workflowName") String workflowName, @Query("api-version") String apiVersion, @Query("$top") Integer top, @Query("$filter") String filter, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.v2016_06_01.WorkflowTriggers get" }) diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowVersionImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowVersionImpl.java index 6b5c77362efc1..2909bdc1b03a3 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowVersionImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowVersionImpl.java @@ -27,6 +27,7 @@ class WorkflowVersionImpl extends IndexableRefreshableWrapperImpl getWorkflowVersionInnerUsingWorkflowVer public Observable getAsync(String resourceGroupName, String workflowName, String versionId) { WorkflowVersionsInner client = this.inner(); return client.getAsync(resourceGroupName, workflowName, versionId) - .map(new Func1() { + .flatMap(new Func1>() { @Override - public WorkflowVersion call(WorkflowVersionInner inner) { - return wrapWorkflowVersionModel(inner); + public Observable call(WorkflowVersionInner inner) { + if (inner == null) { + return Observable.empty(); + } else { + return Observable.just((WorkflowVersion)wrapWorkflowVersionModel(inner)); + } } }); } diff --git a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowWorkflowRunImpl.java b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowWorkflowRunImpl.java index bb77dafdba9fc..cca22fa603701 100644 --- a/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowWorkflowRunImpl.java +++ b/sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowWorkflowRunImpl.java @@ -28,6 +28,7 @@ class WorkflowWorkflowRunImpl extends IndexableRefreshableWrapperImpl generateUpgradedDefinitionAsync(String resourceGroupName, String workflowName) { WorkflowsInner client = this.inner(); - return client.generateUpgradedDefinitionAsync(resourceGroupName, workflowName).toCompletable(); - } + return client.generateUpgradedDefinitionAsync(resourceGroupName, workflowName) + ;} @Override public Observable listCallbackUrlAsync(String resourceGroupName, String workflowName, GetCallbackUrlParameters listCallbackUrl) { @@ -158,10 +158,10 @@ public WorkflowTriggerCallbackUrl call(WorkflowTriggerCallbackUrlInner inner) { } @Override - public Completable listSwaggerAsync(String resourceGroupName, String workflowName) { + public Observable listSwaggerAsync(String resourceGroupName, String workflowName) { WorkflowsInner client = this.inner(); - return client.listSwaggerAsync(resourceGroupName, workflowName).toCompletable(); - } + return client.listSwaggerAsync(resourceGroupName, workflowName) + ;} @Override public Completable moveAsync(String resourceGroupName, String workflowName, WorkflowInner move) {