From 5da7cda0004fbacb19f807ca1c702abc4b8481b4 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 1 Aug 2019 00:24:53 +0000 Subject: [PATCH] Generated from 4ee2e9a00005b08cf9dda630a3f9b3b22db9b107 Added ISE APIs --- logic/resource-manager/v2016_06_01/pom.xml | 10 +- .../ActionRunWorkflowRequestHistory.java | 53 +++ .../logic/v2016_06_01/AssemblyDefinition.java | 13 + .../logic/v2016_06_01/BatchConfiguration.java | 13 + .../logic/v2016_06_01/IntegrationAccount.java | 16 +- .../IntegrationAccountAgreement.java | 27 ++ .../IntegrationAccountCertificate.java | 23 + .../v2016_06_01/IntegrationAccountMap.java | 29 ++ .../IntegrationAccountPartner.java | 19 + .../v2016_06_01/IntegrationAccountSchema.java | 37 ++ .../IntegrationAccountSession.java | 15 + ...titionActionRunWorkflowRequestHistory.java | 53 +++ .../management/logic/v2016_06_01/Request.java | 95 ++++ .../v2016_06_01/RequestHistoryProperties.java | 122 +++++ .../logic/v2016_06_01/Response.java | 95 ++++ .../logic/v2016_06_01/Workflow.java | 40 +- ...wRunActionRepetitionsRequestHistories.java | 46 ++ .../WorkflowRunActionRequestHistories.java | 44 ++ .../logic/v2016_06_01/WorkflowTriggers.java | 2 +- .../logic/v2016_06_01/Workflows.java | 4 +- .../ActionRunWorkflowRequestHistoryImpl.java | 79 ++++ ...flowRunActionRepetitionDefinitionImpl.java | 1 + ...unActionRepetitionDefinitionModelImpl.java | 1 + .../AssemblyDefinitionImpl.java | 2 +- .../BatchConfigurationImpl.java | 2 +- .../IntegrationAccountAgreementImpl.java | 2 +- .../IntegrationAccountCertificateImpl.java | 2 +- .../IntegrationAccountMapImpl.java | 2 +- .../IntegrationAccountPartnerImpl.java | 2 +- .../IntegrationAccountSchemaImpl.java | 2 +- .../IntegrationAccountSessionImpl.java | 2 +- .../LogicManagementClientImpl.java | 48 +- .../implementation/LogicManager.java | 24 + ...onActionRunWorkflowRequestHistoryImpl.java | 81 ++++ .../implementation/RequestHistoryInner.java | 47 ++ .../RunWorkflowWorkflowRunImpl.java | 1 + .../implementation/WorkflowRunActionImpl.java | 1 + ...ActionRepetitionsRequestHistoriesImpl.java | 65 +++ ...ctionRepetitionsRequestHistoriesInner.java | 446 ++++++++++++++++++ ...WorkflowRunActionRequestHistoriesImpl.java | 65 +++ ...orkflowRunActionRequestHistoriesInner.java | 431 +++++++++++++++++ .../WorkflowTriggerHistoryImpl.java | 1 + .../implementation/WorkflowTriggerImpl.java | 1 + .../implementation/WorkflowTriggersImpl.java | 6 +- .../implementation/WorkflowTriggersInner.java | 2 +- .../implementation/WorkflowVersionImpl.java | 1 + .../WorkflowWorkflowRunImpl.java | 1 + .../implementation/WorkflowsImpl.java | 12 +- 48 files changed, 2036 insertions(+), 50 deletions(-) create mode 100644 logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/ActionRunWorkflowRequestHistory.java create mode 100644 logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RepetitionActionRunWorkflowRequestHistory.java create mode 100644 logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Request.java create mode 100644 logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RequestHistoryProperties.java create mode 100644 logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Response.java create mode 100644 logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRunActionRepetitionsRequestHistories.java create mode 100644 logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRunActionRequestHistories.java create mode 100644 logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowRequestHistoryImpl.java create mode 100644 logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RepetitionActionRunWorkflowRequestHistoryImpl.java create mode 100644 logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RequestHistoryInner.java create mode 100644 logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRepetitionsRequestHistoriesImpl.java create mode 100644 logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRepetitionsRequestHistoriesInner.java create mode 100644 logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRequestHistoriesImpl.java create mode 100644 logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRequestHistoriesInner.java diff --git a/logic/resource-manager/v2016_06_01/pom.xml b/logic/resource-manager/v2016_06_01/pom.xml index 4a977657812e..812d541a7c29 100644 --- a/logic/resource-manager/v2016_06_01/pom.xml +++ b/logic/resource-manager/v2016_06_01/pom.xml @@ -11,15 +11,15 @@ com.microsoft.azure azure-arm-parent - 1.1.0 - ../../../pom.management.xml + 0.0.3-beta + ../../../pom.xml azure-mgmt-logic 1.0.0-beta 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 diff --git a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/ActionRunWorkflowRequestHistory.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/ActionRunWorkflowRequestHistory.java new file mode 100644 index 000000000000..6bbc26fa28d9 --- /dev/null +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/AssemblyDefinition.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/AssemblyDefinition.java index 4592e25603e5..31558a0260e9 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/AssemblyDefinition.java +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/BatchConfiguration.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/BatchConfiguration.java index 7397ca775da7..5180a4642169 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/BatchConfiguration.java +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccount.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccount.java index f4207b41508f..f55bf28b060d 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccount.java +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountAgreement.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountAgreement.java index 25dcb7491223..49dad8d92286 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountAgreement.java +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountCertificate.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountCertificate.java index 0738ab844428..19e1107b4bc6 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountCertificate.java +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountMap.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountMap.java index 2c135a76758b..aa4f74725b11 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountMap.java +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountPartner.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountPartner.java index 9561a92c22c1..34b5b9a7b4dd 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountPartner.java +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountSchema.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountSchema.java index 606aa5b89c31..62a73a357cd5 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountSchema.java +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountSession.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountSession.java index 1a6ee422b74e..8e26261c2da4 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/IntegrationAccountSession.java +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RepetitionActionRunWorkflowRequestHistory.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RepetitionActionRunWorkflowRequestHistory.java new file mode 100644 index 000000000000..fade1da74b15 --- /dev/null +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Request.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Request.java new file mode 100644 index 000000000000..0c9dad68e0f2 --- /dev/null +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RequestHistoryProperties.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/RequestHistoryProperties.java new file mode 100644 index 000000000000..41984aee405b --- /dev/null +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Response.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Response.java new file mode 100644 index 000000000000..2cdd0f74df76 --- /dev/null +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Workflow.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Workflow.java index bf77ab6f706f..1babe5207718 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Workflow.java +++ b/logic/resource-manager/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 + * @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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRunActionRepetitionsRequestHistories.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRunActionRepetitionsRequestHistories.java new file mode 100644 index 000000000000..257abd53cc86 --- /dev/null +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRunActionRequestHistories.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowRunActionRequestHistories.java new file mode 100644 index 000000000000..04d9ef9ec3b5 --- /dev/null +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowTriggers.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowTriggers.java index 06d9614520b6..6fa8fe68a833 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowTriggers.java +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Workflows.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Workflows.java index 1c0cf8dfb6cc..6e27a9d1df41 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/Workflows.java +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowRequestHistoryImpl.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowRequestHistoryImpl.java new file mode 100644 index 000000000000..cbe3652b148a --- /dev/null +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowWorkflowRunActionRepetitionDefinitionImpl.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowWorkflowRunActionRepetitionDefinitionImpl.java index 7a31861669e4..836b2d272ce1 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowWorkflowRunActionRepetitionDefinitionImpl.java +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowWorkflowRunActionRepetitionDefinitionModelImpl.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowWorkflowRunActionRepetitionDefinitionModelImpl.java index 429bb03e6872..6b0bbda5e63f 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/ActionRunWorkflowWorkflowRunActionRepetitionDefinitionModelImpl.java +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/AssemblyDefinitionImpl.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/AssemblyDefinitionImpl.java index 7f0d1d8c106e..2795b6947f3c 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/AssemblyDefinitionImpl.java +++ b/logic/resource-manager/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 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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RequestHistoryInner.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RequestHistoryInner.java new file mode 100644 index 000000000000..3f951cfe5d99 --- /dev/null +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RunWorkflowWorkflowRunImpl.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RunWorkflowWorkflowRunImpl.java index 45dfa28b9f33..472cd14eed58 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/RunWorkflowWorkflowRunImpl.java +++ b/logic/resource-manager/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 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) + .map(new Func1() { + @Override + public RepetitionActionRunWorkflowRequestHistory call(RequestHistoryInner inner) { + return wrapModel(inner); + } + }); + } + +} diff --git a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRepetitionsRequestHistoriesInner.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRepetitionsRequestHistoriesInner.java new file mode 100644 index 000000000000..e4e2f8f176a1 --- /dev/null +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRequestHistoriesImpl.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRequestHistoriesImpl.java new file mode 100644 index 000000000000..c5eecd007766 --- /dev/null +++ b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRequestHistoriesImpl.java @@ -0,0 +1,65 @@ +/** + * 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) + .map(new Func1() { + @Override + public ActionRunWorkflowRequestHistory call(RequestHistoryInner inner) { + return wrapModel(inner); + } + }); + } + +} diff --git a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRequestHistoriesInner.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRequestHistoriesInner.java new file mode 100644 index 000000000000..2d03669325ba --- /dev/null +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggerHistoryImpl.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggerHistoryImpl.java index 3dd644fa2284..8f964e6f1740 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggerHistoryImpl.java +++ b/logic/resource-manager/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 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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggersInner.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggersInner.java index bb9bb99e5428..dfeddf0f594b 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowTriggersInner.java +++ b/logic/resource-manager/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/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowVersionImpl.java b/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowVersionImpl.java index 6b5c77362efc..2909bdc1b03a 100644 --- a/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowVersionImpl.java +++ b/logic/resource-manager/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 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) {