From 364ba771a96fc4c2d2dc53e01647df880435b3e9 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 1 Mar 2022 20:19:13 +0000 Subject: [PATCH] CodeGen from PR 17726 in Azure/azure-rest-api-specs Merge 9f212f67c8ecbc5652496d4b31d085f94cb68b80 into 953526b78473a894d3f6f40263aa538874626155 --- .../azure-resourcemanager-logic/CHANGELOG.md | 3 +- .../azure-resourcemanager-logic/README.md | 5 +- .../azure-resourcemanager-logic/SAMPLE.md | 3561 +++++++++++++++++ sdk/logic/azure-resourcemanager-logic/pom.xml | 98 +- .../resourcemanager/logic/LogicManager.java | 37 +- .../IntegrationAccountAgreementsClient.java | 12 +- .../IntegrationAccountAssembliesClient.java | 12 +- ...ationAccountBatchConfigurationsClient.java | 10 +- .../IntegrationAccountCertificatesClient.java | 10 +- .../fluent/IntegrationAccountMapsClient.java | 18 +- .../IntegrationAccountPartnersClient.java | 12 +- .../IntegrationAccountSchemasClient.java | 12 +- .../IntegrationAccountSessionsClient.java | 10 +- .../fluent/IntegrationAccountsClient.java | 26 +- ...EnvironmentManagedApiOperationsClient.java | 4 +- ...onServiceEnvironmentManagedApisClient.java | 73 +- ...erviceEnvironmentNetworkHealthsClient.java | 2 +- ...tegrationServiceEnvironmentSkusClient.java | 4 +- .../IntegrationServiceEnvironmentsClient.java | 34 +- .../logic/fluent/OperationsClient.java | 4 +- .../WorkflowRunActionRepetitionsClient.java | 10 +- ...tionRepetitionsRequestHistoriesClient.java | 6 +- ...rkflowRunActionRequestHistoriesClient.java | 6 +- ...rkflowRunActionScopeRepetitionsClient.java | 6 +- .../fluent/WorkflowRunActionsClient.java | 10 +- .../fluent/WorkflowRunOperationsClient.java | 2 +- .../logic/fluent/WorkflowRunsClient.java | 8 +- .../WorkflowTriggerHistoriesClient.java | 8 +- .../logic/fluent/WorkflowTriggersClient.java | 16 +- .../fluent/WorkflowVersionTriggersClient.java | 2 +- .../logic/fluent/WorkflowVersionsClient.java | 6 +- .../logic/fluent/WorkflowsClient.java | 40 +- .../IntegrationAccountAgreementInner.java | 182 +- ...IntegrationAccountAgreementProperties.java | 284 ++ .../IntegrationAccountCertificateInner.java | 97 +- ...tegrationAccountCertificateProperties.java | 137 + .../models/IntegrationAccountInner.java | 81 +- .../models/IntegrationAccountMapInner.java | 134 +- .../IntegrationAccountMapProperties.java | 216 + .../IntegrationAccountPartnerInner.java | 100 +- .../IntegrationAccountPartnerProperties.java | 149 + .../models/IntegrationAccountProperties.java | 82 + .../models/IntegrationAccountSchemaInner.java | 157 +- .../IntegrationAccountSchemaProperties.java | 263 ++ .../IntegrationAccountSessionInner.java | 72 +- .../IntegrationAccountSessionProperties.java | 81 + .../IntegrationServiceEnvironmentInner.java | 30 + ...tionServiceEnvironmentManagedApiInner.java | 225 ++ ...erviceEnvironmentManagedApiProperties.java | 68 + .../logic/fluent/models/ManagedApiInner.java | 70 - .../logic/fluent/models/WorkflowInner.java | 212 +- .../fluent/models/WorkflowProperties.java | 332 ++ .../fluent/models/WorkflowRunActionInner.java | 140 +- .../models/WorkflowRunActionProperties.java | 229 ++ ...lowRunActionRepetitionDefinitionInner.java | 376 +- ...WorkflowRunActionRepetitionProperties.java | 7 +- .../logic/fluent/models/WorkflowRunInner.java | 153 +- .../fluent/models/WorkflowRunProperties.java | 246 ++ .../models/WorkflowTriggerHistoryInner.java | 143 +- .../WorkflowTriggerHistoryProperties.java | 232 ++ .../fluent/models/WorkflowTriggerInner.java | 112 +- .../models/WorkflowTriggerProperties.java | 171 + .../fluent/models/WorkflowVersionInner.java | 182 +- .../models/WorkflowVersionProperties.java | 303 ++ ...ntegrationAccountAgreementsClientImpl.java | 54 +- .../IntegrationAccountAgreementsImpl.java | 2 +- ...ntegrationAccountAssembliesClientImpl.java | 50 +- .../IntegrationAccountAssembliesImpl.java | 4 +- ...nAccountBatchConfigurationsClientImpl.java | 42 +- ...grationAccountBatchConfigurationsImpl.java | 4 +- ...egrationAccountCertificatesClientImpl.java | 46 +- .../IntegrationAccountCertificatesImpl.java | 2 +- .../IntegrationAccountImpl.java | 15 +- .../IntegrationAccountMapsClientImpl.java | 69 +- .../IntegrationAccountMapsImpl.java | 2 +- .../IntegrationAccountPartnersClientImpl.java | 54 +- .../IntegrationAccountPartnersImpl.java | 2 +- .../IntegrationAccountSchemasClientImpl.java | 54 +- .../IntegrationAccountSchemasImpl.java | 2 +- .../IntegrationAccountSessionsClientImpl.java | 46 +- .../IntegrationAccountSessionsImpl.java | 2 +- .../IntegrationAccountsClientImpl.java | 116 +- .../IntegrationAccountsImpl.java | 2 +- .../IntegrationServiceEnvironmentImpl.java | 10 + ...ationServiceEnvironmentManagedApiImpl.java | 261 ++ ...ronmentManagedApiOperationsClientImpl.java | 18 +- ...rviceEnvironmentManagedApisClientImpl.java | 302 +- ...tionServiceEnvironmentManagedApisImpl.java | 173 +- ...ceEnvironmentNetworkHealthsClientImpl.java | 10 +- ...ationServiceEnvironmentSkusClientImpl.java | 20 +- ...egrationServiceEnvironmentsClientImpl.java | 127 +- .../IntegrationServiceEnvironmentsImpl.java | 2 +- .../logic/implementation/ManagedApiImpl.java | 59 - .../implementation/OperationsClientImpl.java | 20 +- .../logic/implementation/WorkflowImpl.java | 10 + ...flowRunActionRepetitionDefinitionImpl.java | 58 +- ...orkflowRunActionRepetitionsClientImpl.java | 34 +- ...RepetitionsRequestHistoriesClientImpl.java | 30 +- ...owRunActionRequestHistoriesClientImpl.java | 28 +- ...owRunActionScopeRepetitionsClientImpl.java | 24 +- .../WorkflowRunActionsClientImpl.java | 40 +- .../WorkflowRunOperationsClientImpl.java | 8 +- .../WorkflowRunsClientImpl.java | 34 +- .../WorkflowTriggerHistoriesClientImpl.java | 38 +- .../WorkflowTriggersClientImpl.java | 68 +- .../WorkflowVersionTriggersClientImpl.java | 12 +- .../WorkflowVersionsClientImpl.java | 26 +- .../implementation/WorkflowsClientImpl.java | 165 +- .../logic/implementation/WorkflowsImpl.java | 2 +- .../ApiOperationPropertiesDefinition.java | 2 + .../logic/models/ApiResourceMetadata.java | 2 + .../logic/models/ApiResourceProperties.java | 160 +- .../ArtifactContentPropertiesDefinition.java | 6 +- .../logic/models/ArtifactProperties.java | 6 +- .../logic/models/AssemblyDefinition.java | 2 +- .../logic/models/ContentLink.java | 52 +- .../logic/models/Expression.java | 6 +- .../logic/models/IntegrationAccount.java | 18 +- .../models/IntegrationAccountAgreement.java | 2 +- .../models/IntegrationAccountAgreements.java | 16 +- .../models/IntegrationAccountAssemblies.java | 16 +- ...IntegrationAccountBatchConfigurations.java | 14 +- .../IntegrationAccountCertificates.java | 14 +- .../logic/models/IntegrationAccountMap.java | 2 +- .../logic/models/IntegrationAccountMaps.java | 16 +- .../models/IntegrationAccountPartner.java | 2 +- .../models/IntegrationAccountPartners.java | 16 +- .../models/IntegrationAccountSchema.java | 2 +- .../models/IntegrationAccountSchemas.java | 16 +- .../models/IntegrationAccountSessions.java | 14 +- .../logic/models/IntegrationAccounts.java | 28 +- .../models/IntegrationServiceEnvironment.java | 37 +- ...tegrationServiceEnvironmentManagedApi.java | 351 ++ ...ronmentManagedApiDeploymentParameters.java | 59 + ...rviceEnvironmentManagedApiListResult.java} | 28 +- ...erviceEnvironmentManagedApiOperations.java | 4 +- ...egrationServiceEnvironmentManagedApis.java | 74 +- ...ationServiceEnvironmentNetworkHealths.java | 2 +- .../IntegrationServiceEnvironmentSkus.java | 4 +- .../IntegrationServiceEnvironments.java | 24 +- .../logic/models/KeyVaultReference.java | 4 +- .../logic/models/ManagedApi.java | 60 - .../logic/models/ManagedServiceIdentity.java | 136 + .../models/ManagedServiceIdentityType.java | 37 + .../OpenAuthenticationAccessPolicies.java | 2 + .../OpenAuthenticationAccessPolicy.java | 13 +- .../models/OperationResultProperties.java | 6 +- .../logic/models/Operations.java | 4 +- .../models/SwaggerCustomDynamicList.java | 2 + .../SwaggerCustomDynamicProperties.java | 2 + .../models/SwaggerCustomDynamicSchema.java | 2 + .../SwaggerCustomDynamicTreeCommand.java | 2 + .../models/SwaggerExternalDocumentation.java | 2 + .../logic/models/SwaggerSchema.java | 2 + .../logic/models/SwaggerXml.java | 2 + .../logic/models/UserAssignedIdentity.java | 54 + .../logic/models/Workflow.java | 43 +- .../logic/models/WorkflowOutputParameter.java | 4 +- .../logic/models/WorkflowReference.java | 4 +- ...WorkflowRunActionRepetitionDefinition.java | 82 +- .../models/WorkflowRunActionRepetitions.java | 10 +- ...wRunActionRepetitionsRequestHistories.java | 6 +- .../WorkflowRunActionRequestHistories.java | 6 +- .../WorkflowRunActionScopeRepetitions.java | 6 +- .../logic/models/WorkflowRunActions.java | 10 +- .../logic/models/WorkflowRunOperations.java | 2 +- .../logic/models/WorkflowRuns.java | 8 +- .../models/WorkflowTriggerHistories.java | 8 +- .../logic/models/WorkflowTriggers.java | 16 +- .../logic/models/WorkflowVersionTriggers.java | 2 +- .../logic/models/WorkflowVersions.java | 6 +- .../logic/models/Workflows.java | 36 +- ...ccountAgreementsCreateOrUpdateSamples.java | 196 + ...grationAccountAgreementsDeleteSamples.java | 24 + ...ntegrationAccountAgreementsGetSamples.java | 24 + ...reementsListContentCallbackUrlSamples.java | 34 + ...tegrationAccountAgreementsListSamples.java | 24 + ...ccountAssembliesCreateOrUpdateSamples.java | 39 + ...grationAccountAssembliesDeleteSamples.java | 24 + ...ntegrationAccountAssembliesGetSamples.java | 24 + ...sembliesListContentCallbackUrlSamples.java | 26 + ...tegrationAccountAssembliesListSamples.java | 22 + ...chConfigurationsCreateOrUpdateSamples.java | 43 + ...countBatchConfigurationsDeleteSamples.java | 24 + ...nAccountBatchConfigurationsGetSamples.java | 24 + ...AccountBatchConfigurationsListSamples.java | 24 + ...ountCertificatesCreateOrUpdateSamples.java | 37 + ...ationAccountCertificatesDeleteSamples.java | 24 + ...egrationAccountCertificatesGetSamples.java | 24 + ...grationAccountCertificatesListSamples.java | 24 + ...ationAccountMapsCreateOrUpdateSamples.java | 130 + .../IntegrationAccountMapsDeleteSamples.java | 24 + .../IntegrationAccountMapsGetSamples.java | 24 + ...ountMapsListContentCallbackUrlSamples.java | 34 + .../IntegrationAccountMapsListSamples.java | 22 + ...nAccountPartnersCreateOrUpdateSamples.java | 59 + ...tegrationAccountPartnersDeleteSamples.java | 24 + .../IntegrationAccountPartnersGetSamples.java | 24 + ...PartnersListContentCallbackUrlSamples.java | 34 + ...IntegrationAccountPartnersListSamples.java | 24 + ...onAccountSchemasCreateOrUpdateSamples.java | 227 ++ ...ntegrationAccountSchemasDeleteSamples.java | 24 + .../IntegrationAccountSchemasGetSamples.java | 24 + ...tSchemasListContentCallbackUrlSamples.java | 34 + .../IntegrationAccountSchemasListSamples.java | 24 + ...nAccountSessionsCreateOrUpdateSamples.java | 37 + ...tegrationAccountSessionsDeleteSamples.java | 24 + .../IntegrationAccountSessionsGetSamples.java | 24 + ...IntegrationAccountSessionsListSamples.java | 22 + ...egrationAccountsCreateOrUpdateSamples.java | 29 + .../IntegrationAccountsDeleteSamples.java | 22 + ...tionAccountsGetByResourceGroupSamples.java | 24 + ...ionAccountsListByResourceGroupSamples.java | 23 + ...grationAccountsListCallbackUrlSamples.java | 33 + ...rationAccountsListKeyVaultKeysSamples.java | 35 + .../IntegrationAccountsListSamples.java | 22 + ...ationAccountsLogTrackingEventsSamples.java | 59 + ...ionAccountsRegenerateAccessKeySamples.java | 30 + .../IntegrationAccountsUpdateSamples.java | 30 + ...onmentManagedApiOperationsListSamples.java | 25 + ...ceEnvironmentManagedApisDeleteSamples.java | 25 + ...rviceEnvironmentManagedApisGetSamples.java | 25 + ...viceEnvironmentManagedApisListSamples.java | 25 + ...rviceEnvironmentManagedApisPutSamples.java | 26 + ...iceEnvironmentNetworkHealthGetSamples.java | 25 + ...tionServiceEnvironmentSkusListSamples.java | 24 + ...viceEnvironmentsCreateOrUpdateSamples.java | 73 + ...ationServiceEnvironmentsDeleteSamples.java | 24 + ...EnvironmentsGetByResourceGroupSamples.java | 24 + ...nvironmentsListByResourceGroupSamples.java | 23 + ...grationServiceEnvironmentsListSamples.java | 23 + ...tionServiceEnvironmentsRestartSamples.java | 24 + ...ationServiceEnvironmentsUpdateSamples.java | 50 + .../generated/OperationsListSamples.java | 22 + ...orkflowRunActionRepetitionsGetSamples.java | 25 + ...epetitionsListExpressionTracesSamples.java | 25 + ...rkflowRunActionRepetitionsListSamples.java | 24 + ...RepetitionsRequestHistoriesGetSamples.java | 31 + ...epetitionsRequestHistoriesListSamples.java | 30 + ...owRunActionRequestHistoriesGetSamples.java | 30 + ...wRunActionRequestHistoriesListSamples.java | 25 + ...owRunActionScopeRepetitionsGetSamples.java | 25 + ...wRunActionScopeRepetitionsListSamples.java | 24 + .../WorkflowRunActionsGetSamples.java | 25 + ...RunActionsListExpressionTracesSamples.java | 25 + .../WorkflowRunActionsListSamples.java | 25 + .../WorkflowRunOperationsGetSamples.java | 29 + .../generated/WorkflowRunsCancelSamples.java | 25 + .../generated/WorkflowRunsGetSamples.java | 24 + .../generated/WorkflowRunsListSamples.java | 22 + .../WorkflowTriggerHistoriesGetSamples.java | 29 + .../WorkflowTriggerHistoriesListSamples.java | 24 + ...rkflowTriggerHistoriesResubmitSamples.java | 26 + .../generated/WorkflowTriggersGetSamples.java | 22 + .../WorkflowTriggersGetSchemaJsonSamples.java | 24 + ...orkflowTriggersListCallbackUrlSamples.java | 24 + .../WorkflowTriggersListSamples.java | 22 + .../WorkflowTriggersResetSamples.java | 22 + .../generated/WorkflowTriggersRunSamples.java | 22 + .../WorkflowTriggersSetStateSamples.java | 35 + ...VersionTriggersListCallbackUrlSamples.java | 36 + .../generated/WorkflowVersionsGetSamples.java | 24 + .../WorkflowVersionsListSamples.java | 22 + .../WorkflowsCreateOrUpdateSamples.java | 68 + .../generated/WorkflowsDeleteSamples.java | 22 + .../generated/WorkflowsDisableSamples.java | 22 + .../generated/WorkflowsEnableSamples.java | 22 + ...lowsGenerateUpgradedDefinitionSamples.java | 29 + .../WorkflowsGetByResourceGroupSamples.java | 22 + .../WorkflowsListByResourceGroupSamples.java | 22 + .../WorkflowsListCallbackUrlSamples.java | 33 + .../logic/generated/WorkflowsListSamples.java | 22 + .../WorkflowsListSwaggerSamples.java | 22 + .../logic/generated/WorkflowsMoveSamples.java | 31 + .../WorkflowsRegenerateAccessKeySamples.java | 31 + .../generated/WorkflowsUpdateSamples.java | 22 + .../WorkflowsValidateByLocationSamples.java | 60 + ...rkflowsValidateByResourceGroupSamples.java | 59 + 278 files changed, 13596 insertions(+), 2936 deletions(-) create mode 100644 sdk/logic/azure-resourcemanager-logic/SAMPLE.md create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementProperties.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateProperties.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapProperties.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerProperties.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountProperties.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaProperties.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionProperties.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiInner.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiProperties.java delete mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/ManagedApiInner.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowProperties.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionProperties.java rename sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/{ => fluent}/models/WorkflowRunActionRepetitionProperties.java (90%) create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunProperties.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryProperties.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerProperties.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionProperties.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiImpl.java delete mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/ManagedApiImpl.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApi.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiDeploymentParameters.java rename sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/{ManagedApiListResult.java => IntegrationServiceEnvironmentManagedApiListResult.java} (56%) delete mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedApi.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedServiceIdentity.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedServiceIdentityType.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/UserAssignedIdentity.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsCreateOrUpdateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsDeleteSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsListContentCallbackUrlSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesCreateOrUpdateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesDeleteSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesListContentCallbackUrlSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsCreateOrUpdateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsDeleteSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesCreateOrUpdateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesDeleteSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsCreateOrUpdateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsDeleteSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsListContentCallbackUrlSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersCreateOrUpdateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersDeleteSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersListContentCallbackUrlSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasCreateOrUpdateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasDeleteSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasListContentCallbackUrlSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsCreateOrUpdateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsDeleteSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsCreateOrUpdateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsDeleteSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsGetByResourceGroupSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListByResourceGroupSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListCallbackUrlSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListKeyVaultKeysSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsLogTrackingEventsSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsRegenerateAccessKeySamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsUpdateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApiOperationsListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisDeleteSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisPutSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentNetworkHealthGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentSkusListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsCreateOrUpdateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsDeleteSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsGetByResourceGroupSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsListByResourceGroupSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsRestartSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsUpdateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/OperationsListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsListExpressionTracesSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsRequestHistoriesGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsRequestHistoriesListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRequestHistoriesGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRequestHistoriesListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionScopeRepetitionsGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionScopeRepetitionsListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsListExpressionTracesSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunOperationsGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsCancelSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesResubmitSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersGetSchemaJsonSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersListCallbackUrlSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersResetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersRunSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersSetStateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionTriggersListCallbackUrlSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionsGetSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionsListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsCreateOrUpdateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsDeleteSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsDisableSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsEnableSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsGenerateUpgradedDefinitionSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsGetByResourceGroupSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListByResourceGroupSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListCallbackUrlSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListSwaggerSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsMoveSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsRegenerateAccessKeySamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsUpdateSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsValidateByLocationSamples.java create mode 100644 sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsValidateByResourceGroupSamples.java diff --git a/sdk/logic/azure-resourcemanager-logic/CHANGELOG.md b/sdk/logic/azure-resourcemanager-logic/CHANGELOG.md index 9ce44b02901d..0ef11107b364 100644 --- a/sdk/logic/azure-resourcemanager-logic/CHANGELOG.md +++ b/sdk/logic/azure-resourcemanager-logic/CHANGELOG.md @@ -1,7 +1,8 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2022-03-01) +- Azure Resource Manager Logic client library for Java. This package contains Microsoft Azure SDK for Logic Management SDK. REST API for Azure Logic Apps. Package tag package-2019-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## 1.0.0-beta.1 (2021-04-16) diff --git a/sdk/logic/azure-resourcemanager-logic/README.md b/sdk/logic/azure-resourcemanager-logic/README.md index 3b4aedf6791b..2d96dfe922a6 100644 --- a/sdk/logic/azure-resourcemanager-logic/README.md +++ b/sdk/logic/azure-resourcemanager-logic/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-logic - 1.0.0-beta.1 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) @@ -74,6 +74,9 @@ See [API design][design] for general introduction on design and key concepts on ## Examples +[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/logic/azure-resourcemanager-logic/SAMPLE.md) + + ## Troubleshooting ## Next steps diff --git a/sdk/logic/azure-resourcemanager-logic/SAMPLE.md b/sdk/logic/azure-resourcemanager-logic/SAMPLE.md new file mode 100644 index 000000000000..3768f1f7bc13 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/SAMPLE.md @@ -0,0 +1,3561 @@ +# Code snippets and samples + + +## IntegrationAccountAgreements + +- [CreateOrUpdate](#integrationaccountagreements_createorupdate) +- [Delete](#integrationaccountagreements_delete) +- [Get](#integrationaccountagreements_get) +- [List](#integrationaccountagreements_list) +- [ListContentCallbackUrl](#integrationaccountagreements_listcontentcallbackurl) + +## IntegrationAccountAssemblies + +- [CreateOrUpdate](#integrationaccountassemblies_createorupdate) +- [Delete](#integrationaccountassemblies_delete) +- [Get](#integrationaccountassemblies_get) +- [List](#integrationaccountassemblies_list) +- [ListContentCallbackUrl](#integrationaccountassemblies_listcontentcallbackurl) + +## IntegrationAccountBatchConfigurations + +- [CreateOrUpdate](#integrationaccountbatchconfigurations_createorupdate) +- [Delete](#integrationaccountbatchconfigurations_delete) +- [Get](#integrationaccountbatchconfigurations_get) +- [List](#integrationaccountbatchconfigurations_list) + +## IntegrationAccountCertificates + +- [CreateOrUpdate](#integrationaccountcertificates_createorupdate) +- [Delete](#integrationaccountcertificates_delete) +- [Get](#integrationaccountcertificates_get) +- [List](#integrationaccountcertificates_list) + +## IntegrationAccountMaps + +- [CreateOrUpdate](#integrationaccountmaps_createorupdate) +- [Delete](#integrationaccountmaps_delete) +- [Get](#integrationaccountmaps_get) +- [List](#integrationaccountmaps_list) +- [ListContentCallbackUrl](#integrationaccountmaps_listcontentcallbackurl) + +## IntegrationAccountPartners + +- [CreateOrUpdate](#integrationaccountpartners_createorupdate) +- [Delete](#integrationaccountpartners_delete) +- [Get](#integrationaccountpartners_get) +- [List](#integrationaccountpartners_list) +- [ListContentCallbackUrl](#integrationaccountpartners_listcontentcallbackurl) + +## IntegrationAccountSchemas + +- [CreateOrUpdate](#integrationaccountschemas_createorupdate) +- [Delete](#integrationaccountschemas_delete) +- [Get](#integrationaccountschemas_get) +- [List](#integrationaccountschemas_list) +- [ListContentCallbackUrl](#integrationaccountschemas_listcontentcallbackurl) + +## IntegrationAccountSessions + +- [CreateOrUpdate](#integrationaccountsessions_createorupdate) +- [Delete](#integrationaccountsessions_delete) +- [Get](#integrationaccountsessions_get) +- [List](#integrationaccountsessions_list) + +## IntegrationAccounts + +- [CreateOrUpdate](#integrationaccounts_createorupdate) +- [Delete](#integrationaccounts_delete) +- [GetByResourceGroup](#integrationaccounts_getbyresourcegroup) +- [List](#integrationaccounts_list) +- [ListByResourceGroup](#integrationaccounts_listbyresourcegroup) +- [ListCallbackUrl](#integrationaccounts_listcallbackurl) +- [ListKeyVaultKeys](#integrationaccounts_listkeyvaultkeys) +- [LogTrackingEvents](#integrationaccounts_logtrackingevents) +- [RegenerateAccessKey](#integrationaccounts_regenerateaccesskey) +- [Update](#integrationaccounts_update) + +## IntegrationServiceEnvironmentManagedApiOperations + +- [List](#integrationserviceenvironmentmanagedapioperations_list) + +## IntegrationServiceEnvironmentManagedApis + +- [Delete](#integrationserviceenvironmentmanagedapis_delete) +- [Get](#integrationserviceenvironmentmanagedapis_get) +- [List](#integrationserviceenvironmentmanagedapis_list) +- [Put](#integrationserviceenvironmentmanagedapis_put) + +## IntegrationServiceEnvironmentNetworkHealth + +- [Get](#integrationserviceenvironmentnetworkhealth_get) + +## IntegrationServiceEnvironmentSkus + +- [List](#integrationserviceenvironmentskus_list) + +## IntegrationServiceEnvironments + +- [CreateOrUpdate](#integrationserviceenvironments_createorupdate) +- [Delete](#integrationserviceenvironments_delete) +- [GetByResourceGroup](#integrationserviceenvironments_getbyresourcegroup) +- [List](#integrationserviceenvironments_list) +- [ListByResourceGroup](#integrationserviceenvironments_listbyresourcegroup) +- [Restart](#integrationserviceenvironments_restart) +- [Update](#integrationserviceenvironments_update) + +## Operations + +- [List](#operations_list) + +## WorkflowRunActionRepetitions + +- [Get](#workflowrunactionrepetitions_get) +- [List](#workflowrunactionrepetitions_list) +- [ListExpressionTraces](#workflowrunactionrepetitions_listexpressiontraces) + +## WorkflowRunActionRepetitionsRequestHistories + +- [Get](#workflowrunactionrepetitionsrequesthistories_get) +- [List](#workflowrunactionrepetitionsrequesthistories_list) + +## WorkflowRunActionRequestHistories + +- [Get](#workflowrunactionrequesthistories_get) +- [List](#workflowrunactionrequesthistories_list) + +## WorkflowRunActionScopeRepetitions + +- [Get](#workflowrunactionscoperepetitions_get) +- [List](#workflowrunactionscoperepetitions_list) + +## WorkflowRunActions + +- [Get](#workflowrunactions_get) +- [List](#workflowrunactions_list) +- [ListExpressionTraces](#workflowrunactions_listexpressiontraces) + +## WorkflowRunOperations + +- [Get](#workflowrunoperations_get) + +## WorkflowRuns + +- [Cancel](#workflowruns_cancel) +- [Get](#workflowruns_get) +- [List](#workflowruns_list) + +## WorkflowTriggerHistories + +- [Get](#workflowtriggerhistories_get) +- [List](#workflowtriggerhistories_list) +- [Resubmit](#workflowtriggerhistories_resubmit) + +## WorkflowTriggers + +- [Get](#workflowtriggers_get) +- [GetSchemaJson](#workflowtriggers_getschemajson) +- [List](#workflowtriggers_list) +- [ListCallbackUrl](#workflowtriggers_listcallbackurl) +- [Reset](#workflowtriggers_reset) +- [Run](#workflowtriggers_run) +- [SetState](#workflowtriggers_setstate) + +## WorkflowVersionTriggers + +- [ListCallbackUrl](#workflowversiontriggers_listcallbackurl) + +## WorkflowVersions + +- [Get](#workflowversions_get) +- [List](#workflowversions_list) + +## Workflows + +- [CreateOrUpdate](#workflows_createorupdate) +- [Delete](#workflows_delete) +- [Disable](#workflows_disable) +- [Enable](#workflows_enable) +- [GenerateUpgradedDefinition](#workflows_generateupgradeddefinition) +- [GetByResourceGroup](#workflows_getbyresourcegroup) +- [List](#workflows_list) +- [ListByResourceGroup](#workflows_listbyresourcegroup) +- [ListCallbackUrl](#workflows_listcallbackurl) +- [ListSwagger](#workflows_listswagger) +- [Move](#workflows_move) +- [RegenerateAccessKey](#workflows_regenerateaccesskey) +- [Update](#workflows_update) +- [ValidateByLocation](#workflows_validatebylocation) +- [ValidateByResourceGroup](#workflows_validatebyresourcegroup) +### IntegrationAccountAgreements_CreateOrUpdate + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.AS2AcknowledgementConnectionSettings; +import com.azure.resourcemanager.logic.models.AS2AgreementContent; +import com.azure.resourcemanager.logic.models.AS2EnvelopeSettings; +import com.azure.resourcemanager.logic.models.AS2ErrorSettings; +import com.azure.resourcemanager.logic.models.AS2MdnSettings; +import com.azure.resourcemanager.logic.models.AS2MessageConnectionSettings; +import com.azure.resourcemanager.logic.models.AS2OneWayAgreement; +import com.azure.resourcemanager.logic.models.AS2ProtocolSettings; +import com.azure.resourcemanager.logic.models.AS2SecuritySettings; +import com.azure.resourcemanager.logic.models.AS2ValidationSettings; +import com.azure.resourcemanager.logic.models.AgreementContent; +import com.azure.resourcemanager.logic.models.AgreementType; +import com.azure.resourcemanager.logic.models.BusinessIdentity; +import com.azure.resourcemanager.logic.models.EncryptionAlgorithm; +import com.azure.resourcemanager.logic.models.HashingAlgorithm; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationAccountAgreements CreateOrUpdate. */ +public final class IntegrationAccountAgreementsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an agreement. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnAgreement(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountAgreements() + .define("testAgreement") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withAgreementType(AgreementType.AS2) + .withHostPartner("HostPartner") + .withGuestPartner("GuestPartner") + .withHostIdentity(new BusinessIdentity().withQualifier("ZZ").withValue("ZZ")) + .withGuestIdentity(new BusinessIdentity().withQualifier("AA").withValue("AA")) + .withContent( + new AgreementContent() + .withAS2( + new AS2AgreementContent() + .withReceiveAgreement( + new AS2OneWayAgreement() + .withSenderBusinessIdentity( + new BusinessIdentity().withQualifier("AA").withValue("AA")) + .withReceiverBusinessIdentity( + new BusinessIdentity().withQualifier("ZZ").withValue("ZZ")) + .withProtocolSettings( + new AS2ProtocolSettings() + .withMessageConnectionSettings( + new AS2MessageConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withAcknowledgementConnectionSettings( + new AS2AcknowledgementConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withMdnSettings( + new AS2MdnSettings() + .withNeedMdn(true) + .withSignMdn(true) + .withSendMdnAsynchronously(true) + .withReceiptDeliveryUrl("http://tempuri.org") + .withDispositionNotificationTo("http://tempuri.org") + .withSignOutboundMdnIfOptional(true) + .withMdnText("Sample") + .withSendInboundMdnToMessageBox(true) + .withMicHashingAlgorithm(HashingAlgorithm.SHA1)) + .withSecuritySettings( + new AS2SecuritySettings() + .withOverrideGroupSigningCertificate(false) + .withEnableNrrForInboundEncodedMessages(true) + .withEnableNrrForInboundDecodedMessages(true) + .withEnableNrrForOutboundMdn(true) + .withEnableNrrForOutboundEncodedMessages(true) + .withEnableNrrForOutboundDecodedMessages(true) + .withEnableNrrForInboundMdn(true)) + .withValidationSettings( + new AS2ValidationSettings() + .withOverrideMessageProperties(true) + .withEncryptMessage(false) + .withSignMessage(false) + .withCompressMessage(true) + .withCheckDuplicateMessage(true) + .withInterchangeDuplicatesValidityDays(100) + .withCheckCertificateRevocationListOnSend(true) + .withCheckCertificateRevocationListOnReceive(true) + .withEncryptionAlgorithm(EncryptionAlgorithm.AES128)) + .withEnvelopeSettings( + new AS2EnvelopeSettings() + .withMessageContentType("text/plain") + .withTransmitFileNameInMimeHeader(true) + .withFileNameTemplate("Test") + .withSuspendMessageOnFileNameGenerationError(true) + .withAutogenerateFileName(true)) + .withErrorSettings( + new AS2ErrorSettings() + .withSuspendDuplicateMessage(true) + .withResendIfMdnNotReceived(true)))) + .withSendAgreement( + new AS2OneWayAgreement() + .withSenderBusinessIdentity( + new BusinessIdentity().withQualifier("ZZ").withValue("ZZ")) + .withReceiverBusinessIdentity( + new BusinessIdentity().withQualifier("AA").withValue("AA")) + .withProtocolSettings( + new AS2ProtocolSettings() + .withMessageConnectionSettings( + new AS2MessageConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withAcknowledgementConnectionSettings( + new AS2AcknowledgementConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withMdnSettings( + new AS2MdnSettings() + .withNeedMdn(true) + .withSignMdn(true) + .withSendMdnAsynchronously(true) + .withReceiptDeliveryUrl("http://tempuri.org") + .withDispositionNotificationTo("http://tempuri.org") + .withSignOutboundMdnIfOptional(true) + .withMdnText("Sample") + .withSendInboundMdnToMessageBox(true) + .withMicHashingAlgorithm(HashingAlgorithm.SHA1)) + .withSecuritySettings( + new AS2SecuritySettings() + .withOverrideGroupSigningCertificate(false) + .withEnableNrrForInboundEncodedMessages(true) + .withEnableNrrForInboundDecodedMessages(true) + .withEnableNrrForOutboundMdn(true) + .withEnableNrrForOutboundEncodedMessages(true) + .withEnableNrrForOutboundDecodedMessages(true) + .withEnableNrrForInboundMdn(true)) + .withValidationSettings( + new AS2ValidationSettings() + .withOverrideMessageProperties(true) + .withEncryptMessage(false) + .withSignMessage(false) + .withCompressMessage(true) + .withCheckDuplicateMessage(true) + .withInterchangeDuplicatesValidityDays(100) + .withCheckCertificateRevocationListOnSend(true) + .withCheckCertificateRevocationListOnReceive(true) + .withEncryptionAlgorithm(EncryptionAlgorithm.AES128)) + .withEnvelopeSettings( + new AS2EnvelopeSettings() + .withMessageContentType("text/plain") + .withTransmitFileNameInMimeHeader(true) + .withFileNameTemplate("Test") + .withSuspendMessageOnFileNameGenerationError(true) + .withAutogenerateFileName(true)) + .withErrorSettings( + new AS2ErrorSettings() + .withSuspendDuplicateMessage(true) + .withResendIfMdnNotReceived(true)))))) + .withTags(mapOf("IntegrationAccountAgreement", "")) + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### IntegrationAccountAgreements_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAgreements Delete. */ +public final class IntegrationAccountAgreementsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_Delete.json + */ + /** + * Sample code: Delete an agreement. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnAgreement(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testAgreement", Context.NONE); + } +} +``` + +### IntegrationAccountAgreements_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAgreements Get. */ +public final class IntegrationAccountAgreementsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_Get.json + */ + /** + * Sample code: Get agreement by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getAgreementByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testAgreement", Context.NONE); + } +} +``` + +### IntegrationAccountAgreements_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAgreements List. */ +public final class IntegrationAccountAgreementsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_List.json + */ + /** + * Sample code: Get agreements by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getAgreementsByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .list("testResourceGroup", "testIntegrationAccount", null, null, Context.NONE); + } +} +``` + +### IntegrationAccountAgreements_ListContentCallbackUrl + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountAgreements ListContentCallbackUrl. */ +public final class IntegrationAccountAgreementsListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testAgreement", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### IntegrationAccountAssemblies_CreateOrUpdate + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.AssemblyProperties; +import java.io.IOException; + +/** Samples for IntegrationAccountAssemblies CreateOrUpdate. */ +public final class IntegrationAccountAssembliesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnAccountAssembly(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountAssemblies() + .define("testAssembly") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withProperties( + new AssemblyProperties() + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .withContent("Base64 encoded Assembly Content") + .withAssemblyName("System.IdentityModel.Tokens.Jwt")) + .create(); + } +} +``` + +### IntegrationAccountAssemblies_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies Delete. */ +public final class IntegrationAccountAssembliesDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_Delete.json + */ + /** + * Sample code: Delete an integration account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccountAssembly(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAssemblies() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testAssembly", Context.NONE); + } +} +``` + +### IntegrationAccountAssemblies_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies Get. */ +public final class IntegrationAccountAssembliesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_Get.json + */ + /** + * Sample code: Get an integration account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void getAnIntegrationAccountAssembly(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAssemblies() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testAssembly", Context.NONE); + } +} +``` + +### IntegrationAccountAssemblies_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies List. */ +public final class IntegrationAccountAssembliesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_List.json + */ + /** + * Sample code: List integration account assemblies. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountAssemblies(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccountAssemblies().list("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} +``` + +### IntegrationAccountAssemblies_ListContentCallbackUrl + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies ListContentCallbackUrl. */ +public final class IntegrationAccountAssembliesListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the callback url for an integration account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheCallbackUrlForAnIntegrationAccountAssembly( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAssemblies() + .listContentCallbackUrlWithResponse( + "testResourceGroup", "testIntegrationAccount", "testAssembly", Context.NONE); + } +} +``` + +### IntegrationAccountBatchConfigurations_CreateOrUpdate + +```java +import com.azure.resourcemanager.logic.models.BatchConfigurationProperties; +import com.azure.resourcemanager.logic.models.BatchReleaseCriteria; +import com.azure.resourcemanager.logic.models.RecurrenceFrequency; +import com.azure.resourcemanager.logic.models.WorkflowTriggerRecurrence; + +/** Samples for IntegrationAccountBatchConfigurations CreateOrUpdate. */ +public final class IntegrationAccountBatchConfigurationsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a batch configuration. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateABatchConfiguration(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .define("testBatchConfiguration") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withProperties( + new BatchConfigurationProperties() + .withBatchGroupName("DEFAULT") + .withReleaseCriteria( + new BatchReleaseCriteria() + .withMessageCount(10) + .withBatchSize(234567) + .withRecurrence( + new WorkflowTriggerRecurrence() + .withFrequency(RecurrenceFrequency.MINUTE) + .withInterval(1) + .withStartTime("2017-03-24T11:43:00") + .withTimeZone("India Standard Time")))) + .create(); + } +} +``` + +### IntegrationAccountBatchConfigurations_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountBatchConfigurations Delete. */ +public final class IntegrationAccountBatchConfigurationsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_Delete.json + */ + /** + * Sample code: Delete a batch configuration. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteABatchConfiguration(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testBatchConfiguration", Context.NONE); + } +} +``` + +### IntegrationAccountBatchConfigurations_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountBatchConfigurations Get. */ +public final class IntegrationAccountBatchConfigurationsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_Get.json + */ + /** + * Sample code: Get a batch configuration. + * + * @param manager Entry point to LogicManager. + */ + public static void getABatchConfiguration(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testBatchConfiguration", Context.NONE); + } +} +``` + +### IntegrationAccountBatchConfigurations_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountBatchConfigurations List. */ +public final class IntegrationAccountBatchConfigurationsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_List.json + */ + /** + * Sample code: List batch configurations. + * + * @param manager Entry point to LogicManager. + */ + public static void listBatchConfigurations(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .list("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} +``` + +### IntegrationAccountCertificates_CreateOrUpdate + +```java +import com.azure.resourcemanager.logic.models.KeyVaultKeyReference; +import com.azure.resourcemanager.logic.models.KeyVaultKeyReferenceKeyVault; + +/** Samples for IntegrationAccountCertificates CreateOrUpdate. */ +public final class IntegrationAccountCertificatesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a certificate. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateACertificate(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .define("testCertificate") + .withRegion("brazilsouth") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withKey( + new KeyVaultKeyReference() + .withKeyVault( + new KeyVaultKeyReferenceKeyVault() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testResourceGroup/providers/microsoft.keyvault/vaults/")) + .withKeyName("") + .withKeyVersion("87d9764197604449b9b8eb7bd8710868")) + .withPublicCertificate("") + .create(); + } +} +``` + +### IntegrationAccountCertificates_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountCertificates Delete. */ +public final class IntegrationAccountCertificatesDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_Delete.json + */ + /** + * Sample code: Delete a certificate. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteACertificate(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testCertificate", Context.NONE); + } +} +``` + +### IntegrationAccountCertificates_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountCertificates Get. */ +public final class IntegrationAccountCertificatesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_Get.json + */ + /** + * Sample code: Get certificate by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getCertificateByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testCertificate", Context.NONE); + } +} +``` + +### IntegrationAccountCertificates_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountCertificates List. */ +public final class IntegrationAccountCertificatesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_List.json + */ + /** + * Sample code: Get certificates by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getCertificatesByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .list("testResourceGroup", "testIntegrationAccount", null, Context.NONE); + } +} +``` + +### IntegrationAccountMaps_CreateOrUpdate + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.MapType; +import java.io.IOException; + +/** Samples for IntegrationAccountMaps CreateOrUpdate. */ +public final class IntegrationAccountMapsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountLargeMaps_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a map larger than 4 MB. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAMapLargerThan4MB(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountMaps() + .define("testMap") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withMapType(MapType.XSLT) + .withContentType("application/xml") + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } + + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a map. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAMap(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccountMaps() + .define("testMap") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withMapType(MapType.XSLT) + .withContent( + "\r\n" + + "\r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + "") + .withContentType("application/xml") + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } +} +``` + +### IntegrationAccountMaps_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountMaps Delete. */ +public final class IntegrationAccountMapsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_Delete.json + */ + /** + * Sample code: Delete a map. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAMap(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountMaps() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testMap", Context.NONE); + } +} +``` + +### IntegrationAccountMaps_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountMaps Get. */ +public final class IntegrationAccountMapsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_Get.json + */ + /** + * Sample code: Get map by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getMapByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountMaps() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testMap", Context.NONE); + } +} +``` + +### IntegrationAccountMaps_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountMaps List. */ +public final class IntegrationAccountMapsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_List.json + */ + /** + * Sample code: Get maps by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getMapsByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccountMaps().list("testResourceGroup", "testIntegrationAccount", null, null, Context.NONE); + } +} +``` + +### IntegrationAccountMaps_ListContentCallbackUrl + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountMaps ListContentCallbackUrl. */ +public final class IntegrationAccountMapsListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountMaps() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testMap", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### IntegrationAccountPartners_CreateOrUpdate + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.B2BPartnerContent; +import com.azure.resourcemanager.logic.models.BusinessIdentity; +import com.azure.resourcemanager.logic.models.PartnerContent; +import com.azure.resourcemanager.logic.models.PartnerType; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationAccountPartners CreateOrUpdate. */ +public final class IntegrationAccountPartnersCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a partner. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAPartner(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccountPartners() + .define("testPartner") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withPartnerType(PartnerType.B2B) + .withContent( + new PartnerContent() + .withB2B( + new B2BPartnerContent() + .withBusinessIdentities( + Arrays.asList(new BusinessIdentity().withQualifier("AA").withValue("ZZ"))))) + .withTags(mapOf()) + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### IntegrationAccountPartners_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountPartners Delete. */ +public final class IntegrationAccountPartnersDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_Delete.json + */ + /** + * Sample code: Delete a partner. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAPartner(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testPartner", Context.NONE); + } +} +``` + +### IntegrationAccountPartners_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountPartners Get. */ +public final class IntegrationAccountPartnersGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_Get.json + */ + /** + * Sample code: Get partner by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getPartnerByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testPartner", Context.NONE); + } +} +``` + +### IntegrationAccountPartners_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountPartners List. */ +public final class IntegrationAccountPartnersListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_List.json + */ + /** + * Sample code: Get partners by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getPartnersByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .list("testResourceGroup", "testIntegrationAccount", null, null, Context.NONE); + } +} +``` + +### IntegrationAccountPartners_ListContentCallbackUrl + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountPartners ListContentCallbackUrl. */ +public final class IntegrationAccountPartnersListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testPartner", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### IntegrationAccountSchemas_CreateOrUpdate + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.SchemaType; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationAccountSchemas CreateOrUpdate. */ +public final class IntegrationAccountSchemasCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_CreateOrUpdate.json + */ + /** + * Sample code: Create or update schema. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateSchema(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccountSchemas() + .define("testSchema") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withSchemaType(SchemaType.XML) + .withTags(mapOf("integrationAccountSchemaName", "IntegrationAccountSchema8120")) + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .withContent( + "\r\n" + + "\r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + "") + .withContentType("application/xml") + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### IntegrationAccountSchemas_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSchemas Delete. */ +public final class IntegrationAccountSchemasDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_Delete.json + */ + /** + * Sample code: Delete a schema by name. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteASchemaByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testSchema", Context.NONE); + } +} +``` + +### IntegrationAccountSchemas_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSchemas Get. */ +public final class IntegrationAccountSchemasGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_Get.json + */ + /** + * Sample code: Get schema by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getSchemaByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testSchema", Context.NONE); + } +} +``` + +### IntegrationAccountSchemas_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSchemas List. */ +public final class IntegrationAccountSchemasListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_List.json + */ + /** + * Sample code: Get schemas by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getSchemasByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .list("testResourceGroup", "", null, null, Context.NONE); + } +} +``` + +### IntegrationAccountSchemas_ListContentCallbackUrl + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountSchemas ListContentCallbackUrl. */ +public final class IntegrationAccountSchemasListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testSchema", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### IntegrationAccountSessions_CreateOrUpdate + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import java.io.IOException; + +/** Samples for IntegrationAccountSessions CreateOrUpdate. */ +public final class IntegrationAccountSessionsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an integration account session. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnIntegrationAccountSession(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountSessions() + .define("testsession123-ICN") + .withRegion((String) null) + .withExistingIntegrationAccount("testrg123", "testia123") + .withContent( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"controlNumber\":\"1234\",\"controlNumberChangedTime\":\"2017-02-21T22:30:11.9923759Z\"}", + Object.class, + SerializerEncoding.JSON)) + .create(); + } +} +``` + +### IntegrationAccountSessions_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSessions Delete. */ +public final class IntegrationAccountSessionsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_Delete.json + */ + /** + * Sample code: Delete an integration account session. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccountSession(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSessions() + .deleteWithResponse("testrg123", "testia123", "testsession123-ICN", Context.NONE); + } +} +``` + +### IntegrationAccountSessions_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSessions Get. */ +public final class IntegrationAccountSessionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_Get.json + */ + /** + * Sample code: Get an integration account session. + * + * @param manager Entry point to LogicManager. + */ + public static void getAnIntegrationAccountSession(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSessions() + .getWithResponse("testrg123", "testia123", "testsession123-ICN", Context.NONE); + } +} +``` + +### IntegrationAccountSessions_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSessions List. */ +public final class IntegrationAccountSessionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_List.json + */ + /** + * Sample code: Get a list of integration account sessions. + * + * @param manager Entry point to LogicManager. + */ + public static void getAListOfIntegrationAccountSessions(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccountSessions().list("testrg123", "testia123", null, null, Context.NONE); + } +} +``` + +### IntegrationAccounts_CreateOrUpdate + +```java +import com.azure.resourcemanager.logic.models.IntegrationAccountSku; +import com.azure.resourcemanager.logic.models.IntegrationAccountSkuName; + +/** Samples for IntegrationAccounts CreateOrUpdate. */ +public final class IntegrationAccountsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .define("testIntegrationAccount") + .withRegion("westus") + .withExistingResourceGroup("testResourceGroup") + .withSku(new IntegrationAccountSku().withName(IntegrationAccountSkuName.STANDARD)) + .create(); + } +} +``` + +### IntegrationAccounts_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts Delete. */ +public final class IntegrationAccountsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_Delete.json + */ + /** + * Sample code: Delete an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccounts().deleteWithResponse("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} +``` + +### IntegrationAccounts_GetByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts GetByResourceGroup. */ +public final class IntegrationAccountsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_Get.json + */ + /** + * Sample code: Get integration account by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getIntegrationAccountByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} +``` + +### IntegrationAccounts_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts List. */ +public final class IntegrationAccountsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListBySubscription.json + */ + /** + * Sample code: List integration accounts by subscription. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountsBySubscription(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccounts().list(null, Context.NONE); + } +} +``` + +### IntegrationAccounts_ListByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts ListByResourceGroup. */ +public final class IntegrationAccountsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListByResourceGroup.json + */ + /** + * Sample code: List integration accounts by resource group name. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountsByResourceGroupName( + com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccounts().listByResourceGroup("testResourceGroup", null, Context.NONE); + } +} +``` + +### IntegrationAccounts_ListCallbackUrl + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccounts ListCallbackUrl. */ +public final class IntegrationAccountsListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListCallbackUrl.json + */ + /** + * Sample code: List IntegrationAccount callback URL. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountCallbackURL(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .listCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2017-03-05T08:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### IntegrationAccounts_ListKeyVaultKeys + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.KeyVaultReference; +import com.azure.resourcemanager.logic.models.ListKeyVaultKeysDefinition; + +/** Samples for IntegrationAccounts ListKeyVaultKeys. */ +public final class IntegrationAccountsListKeyVaultKeysSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListKeyVaultKeys.json + */ + /** + * Sample code: Get Integration Account callback URL. + * + * @param manager Entry point to LogicManager. + */ + public static void getIntegrationAccountCallbackURL(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .listKeyVaultKeys( + "testResourceGroup", + "testIntegrationAccount", + new ListKeyVaultKeysDefinition() + .withKeyVault( + new KeyVaultReference() + .withId( + "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.KeyVault/vaults/testKeyVault")) + .withSkipToken("testSkipToken"), + Context.NONE); + } +} +``` + +### IntegrationAccounts_LogTrackingEvents + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.Context; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.EventLevel; +import com.azure.resourcemanager.logic.models.TrackingEvent; +import com.azure.resourcemanager.logic.models.TrackingEventErrorInfo; +import com.azure.resourcemanager.logic.models.TrackingEventsDefinition; +import com.azure.resourcemanager.logic.models.TrackingRecordType; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; + +/** Samples for IntegrationAccounts LogTrackingEvents. */ +public final class IntegrationAccountsLogTrackingEventsSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_LogTrackingEvents.json + */ + /** + * Sample code: Log a tracked event. + * + * @param manager Entry point to LogicManager. + */ + public static void logATrackedEvent(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccounts() + .logTrackingEventsWithResponse( + "testResourceGroup", + "testIntegrationAccount", + new TrackingEventsDefinition() + .withSourceType("Microsoft.Logic/workflows") + .withEvents( + Arrays + .asList( + new TrackingEvent() + .withEventLevel(EventLevel.INFORMATIONAL) + .withEventTime(OffsetDateTime.parse("2016-08-05T01:54:49.505567Z")) + .withRecordType(TrackingRecordType.AS2MESSAGE) + .withRecord( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"agreementProperties\":{\"agreementName\":\"testAgreement\",\"as2From\":\"testas2from\",\"as2To\":\"testas2to\",\"receiverPartnerName\":\"testPartner2\",\"senderPartnerName\":\"testPartner1\"},\"messageProperties\":{\"IsMessageEncrypted\":false,\"IsMessageSigned\":false,\"correlationMessageId\":\"Unique" + + " message" + + " identifier\",\"direction\":\"Receive\",\"dispositionType\":\"received-success\",\"fileName\":\"test\",\"isMdnExpected\":true,\"isMessageCompressed\":false,\"isMessageFailed\":false,\"isNrrEnabled\":true,\"mdnType\":\"Async\",\"messageId\":\"12345\"}}", + Object.class, + SerializerEncoding.JSON)) + .withError( + new TrackingEventErrorInfo() + .withMessage("Some error occurred") + .withCode("NotFound")))), + Context.NONE); + } +} +``` + +### IntegrationAccounts_RegenerateAccessKey + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.KeyType; +import com.azure.resourcemanager.logic.models.RegenerateActionParameter; + +/** Samples for IntegrationAccounts RegenerateAccessKey. */ +public final class IntegrationAccountsRegenerateAccessKeySamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_RegenerateAccessKey.json + */ + /** + * Sample code: Regenerate access key. + * + * @param manager Entry point to LogicManager. + */ + public static void regenerateAccessKey(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .regenerateAccessKeyWithResponse( + "testResourceGroup", + "testIntegrationAccount", + new RegenerateActionParameter().withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### IntegrationAccounts_Update + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.IntegrationAccount; +import com.azure.resourcemanager.logic.models.IntegrationAccountSku; +import com.azure.resourcemanager.logic.models.IntegrationAccountSkuName; + +/** Samples for IntegrationAccounts Update. */ +public final class IntegrationAccountsUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_Update.json + */ + /** + * Sample code: Patch an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void patchAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + IntegrationAccount resource = + manager + .integrationAccounts() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationAccount", Context.NONE) + .getValue(); + resource.update().withSku(new IntegrationAccountSku().withName(IntegrationAccountSkuName.STANDARD)).apply(); + } +} +``` + +### IntegrationServiceEnvironmentManagedApiOperations_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApiOperations List. */ +public final class IntegrationServiceEnvironmentManagedApiOperationsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_ListApiOperations.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApiOperations() + .list("testResourceGroup", "testIntegrationServiceEnvironment", "servicebus", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironmentManagedApis_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApis Delete. */ +public final class IntegrationServiceEnvironmentManagedApisDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_Delete.json + */ + /** + * Sample code: Deletes the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void deletesTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .delete("testResourceGroup", "testIntegrationServiceEnvironment", "servicebus", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironmentManagedApis_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApis Get. */ +public final class IntegrationServiceEnvironmentManagedApisGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_Get.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .getWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", "servicebus", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironmentManagedApis_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApis List. */ +public final class IntegrationServiceEnvironmentManagedApisListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_List.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .list("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironmentManagedApis_Put + +```java +/** Samples for IntegrationServiceEnvironmentManagedApis Put. */ +public final class IntegrationServiceEnvironmentManagedApisPutSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_Put.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .define("servicebus") + .withRegion("brazilsouth") + .withExistingIntegrationServiceEnvironment("testResourceGroup", "testIntegrationServiceEnvironment") + .create(); + } +} +``` + +### IntegrationServiceEnvironmentNetworkHealth_Get + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentNetworkHealth Get. */ +public final class IntegrationServiceEnvironmentNetworkHealthGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_NetworkHealth.json + */ + /** + * Sample code: Gets the integration service environment network health. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentNetworkHealth( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentNetworkHealths() + .getWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironmentSkus_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentSkus List. */ +public final class IntegrationServiceEnvironmentSkusListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Skus.json + */ + /** + * Sample code: List integration service environment skus. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationServiceEnvironmentSkus(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentSkus() + .list("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironments_CreateOrUpdate + +```java +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmenEncryptionConfiguration; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmenEncryptionKeyReference; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentAccessEndpoint; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentAccessEndpointType; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentProperties; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSku; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSkuName; +import com.azure.resourcemanager.logic.models.NetworkConfiguration; +import com.azure.resourcemanager.logic.models.ResourceReference; +import java.util.Arrays; + +/** Samples for IntegrationServiceEnvironments CreateOrUpdate. */ +public final class IntegrationServiceEnvironmentsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Put.json + */ + /** + * Sample code: Create or update an integration service environment. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnIntegrationServiceEnvironment( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .define("testIntegrationServiceEnvironment") + .withRegion("brazilsouth") + .withExistingResourceGroup("testResourceGroup") + .withProperties( + new IntegrationServiceEnvironmentProperties() + .withNetworkConfiguration( + new NetworkConfiguration() + .withAccessEndpoint( + new IntegrationServiceEnvironmentAccessEndpoint() + .withType(IntegrationServiceEnvironmentAccessEndpointType.INTERNAL)) + .withSubnets( + Arrays + .asList( + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s1"), + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s2"), + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s3"), + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s4")))) + .withEncryptionConfiguration( + new IntegrationServiceEnvironmenEncryptionConfiguration() + .withEncryptionKeyReference( + new IntegrationServiceEnvironmenEncryptionKeyReference() + .withKeyVault( + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.KeyVault/vaults/testKeyVault")) + .withKeyName("testKeyName") + .withKeyVersion("13b261d30b984753869902d7f47f4d55")))) + .withSku( + new IntegrationServiceEnvironmentSku() + .withName(IntegrationServiceEnvironmentSkuName.PREMIUM) + .withCapacity(2)) + .create(); + } +} +``` + +### IntegrationServiceEnvironments_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments Delete. */ +public final class IntegrationServiceEnvironmentsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Delete.json + */ + /** + * Sample code: Delete an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .deleteWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironments_GetByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments GetByResourceGroup. */ +public final class IntegrationServiceEnvironmentsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Get.json + */ + /** + * Sample code: Get integration service environment by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getIntegrationServiceEnvironmentByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironments_List + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments List. */ +public final class IntegrationServiceEnvironmentsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ListBySubscription.json + */ + /** + * Sample code: List integration service environments by subscription. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationServiceEnvironmentsBySubscription( + com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationServiceEnvironments().list(null, Context.NONE); + } +} +``` + +### IntegrationServiceEnvironments_ListByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments ListByResourceGroup. */ +public final class IntegrationServiceEnvironmentsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ListByResourceGroup.json + */ + /** + * Sample code: List integration service environments by resource group name. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationServiceEnvironmentsByResourceGroupName( + com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationServiceEnvironments().listByResourceGroup("testResourceGroup", null, Context.NONE); + } +} +``` + +### IntegrationServiceEnvironments_Restart + +```java +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments Restart. */ +public final class IntegrationServiceEnvironmentsRestartSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Restart.json + */ + /** + * Sample code: Restarts an integration service environment. + * + * @param manager Entry point to LogicManager. + */ + public static void restartsAnIntegrationServiceEnvironment(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .restartWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} +``` + +### IntegrationServiceEnvironments_Update + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironment; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSku; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSkuName; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationServiceEnvironments Update. */ +public final class IntegrationServiceEnvironmentsUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Patch.json + */ + /** + * Sample code: Patch an integration service environment. + * + * @param manager Entry point to LogicManager. + */ + public static void patchAnIntegrationServiceEnvironment(com.azure.resourcemanager.logic.LogicManager manager) { + IntegrationServiceEnvironment resource = + manager + .integrationServiceEnvironments() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE) + .getValue(); + resource + .update() + .withTags(mapOf("tag1", "value1")) + .withSku( + new IntegrationServiceEnvironmentSku() + .withName(IntegrationServiceEnvironmentSkuName.DEVELOPER) + .withCapacity(0)) + .apply(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### Operations_List + +```java +import com.azure.core.util.Context; + +/** Samples for Operations List. */ +public final class OperationsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Operations_List.json + */ + /** + * Sample code: List Microsoft.Logic operations. + * + * @param manager Entry point to LogicManager. + */ + public static void listMicrosoftLogicOperations(com.azure.resourcemanager.logic.LogicManager manager) { + manager.operations().list(Context.NONE); + } +} +``` + +### WorkflowRunActionRepetitions_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitions Get. */ +public final class WorkflowRunActionRepetitionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitions_Get.json + */ + /** + * Sample code: Get a repetition. + * + * @param manager Entry point to LogicManager. + */ + public static void getARepetition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitions() + .getWithResponse( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", "000001", Context.NONE); + } +} +``` + +### WorkflowRunActionRepetitions_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitions List. */ +public final class WorkflowRunActionRepetitionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitions_List.json + */ + /** + * Sample code: List repetitions. + * + * @param manager Entry point to LogicManager. + */ + public static void listRepetitions(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitions() + .list("testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", Context.NONE); + } +} +``` + +### WorkflowRunActionRepetitions_ListExpressionTraces + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitions ListExpressionTraces. */ +public final class WorkflowRunActionRepetitionsListExpressionTracesSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitions_ListExpressionTraces.json + */ + /** + * Sample code: List expression traces for a repetition. + * + * @param manager Entry point to LogicManager. + */ + public static void listExpressionTracesForARepetition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitions() + .listExpressionTraces( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", "000001", Context.NONE); + } +} +``` + +### WorkflowRunActionRepetitionsRequestHistories_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitionsRequestHistories Get. */ +public final class WorkflowRunActionRepetitionsRequestHistoriesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json + */ + /** + * Sample code: Get a repetition request history. + * + * @param manager Entry point to LogicManager. + */ + public static void getARepetitionRequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitionsRequestHistories() + .getWithResponse( + "test-resource-group", + "test-workflow", + "08586776228332053161046300351", + "HTTP_Webhook", + "000001", + "08586611142732800686", + Context.NONE); + } +} +``` + +### WorkflowRunActionRepetitionsRequestHistories_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitionsRequestHistories List. */ +public final class WorkflowRunActionRepetitionsRequestHistoriesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitionsRequestHistories_List.json + */ + /** + * Sample code: List repetition request history. + * + * @param manager Entry point to LogicManager. + */ + public static void listRepetitionRequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitionsRequestHistories() + .list( + "test-resource-group", + "test-workflow", + "08586776228332053161046300351", + "HTTP_Webhook", + "000001", + Context.NONE); + } +} +``` + +### WorkflowRunActionRequestHistories_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRequestHistories Get. */ +public final class WorkflowRunActionRequestHistoriesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRequestHistories_Get.json + */ + /** + * Sample code: Get a request history. + * + * @param manager Entry point to LogicManager. + */ + public static void getARequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRequestHistories() + .getWithResponse( + "test-resource-group", + "test-workflow", + "08586776228332053161046300351", + "HTTP_Webhook", + "08586611142732800686", + Context.NONE); + } +} +``` + +### WorkflowRunActionRequestHistories_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRequestHistories List. */ +public final class WorkflowRunActionRequestHistoriesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRequestHistories_List.json + */ + /** + * Sample code: List a request history. + * + * @param manager Entry point to LogicManager. + */ + public static void listARequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRequestHistories() + .list( + "test-resource-group", "test-workflow", "08586776228332053161046300351", "HTTP_Webhook", Context.NONE); + } +} +``` + +### WorkflowRunActionScopeRepetitions_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionScopeRepetitions Get. */ +public final class WorkflowRunActionScopeRepetitionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionScopeRepetitions_Get.json + */ + /** + * Sample code: Get a scoped repetition. + * + * @param manager Entry point to LogicManager. + */ + public static void getAScopedRepetition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionScopeRepetitions() + .getWithResponse( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "for_each", "000000", Context.NONE); + } +} +``` + +### WorkflowRunActionScopeRepetitions_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionScopeRepetitions List. */ +public final class WorkflowRunActionScopeRepetitionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionScopeRepetitions_List.json + */ + /** + * Sample code: List the scoped repetitions. + * + * @param manager Entry point to LogicManager. + */ + public static void listTheScopedRepetitions(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionScopeRepetitions() + .list("testResourceGroup", "testFlow", "08586776228332053161046300351", "for_each", Context.NONE); + } +} +``` + +### WorkflowRunActions_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActions Get. */ +public final class WorkflowRunActionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActions_Get.json + */ + /** + * Sample code: Get a workflow run action. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowRunAction(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActions() + .getWithResponse( + "test-resource-group", "test-workflow", "08586676746934337772206998657CU22", "HTTP", Context.NONE); + } +} +``` + +### WorkflowRunActions_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActions List. */ +public final class WorkflowRunActionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActions_List.json + */ + /** + * Sample code: List a workflow run actions. + * + * @param manager Entry point to LogicManager. + */ + public static void listAWorkflowRunActions(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActions() + .list( + "test-resource-group", "test-workflow", "08586676746934337772206998657CU22", null, null, Context.NONE); + } +} +``` + +### WorkflowRunActions_ListExpressionTraces + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActions ListExpressionTraces. */ +public final class WorkflowRunActionsListExpressionTracesSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActions_ListExpressionTraces.json + */ + /** + * Sample code: List expression traces. + * + * @param manager Entry point to LogicManager. + */ + public static void listExpressionTraces(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActions() + .listExpressionTraces( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", Context.NONE); + } +} +``` + +### WorkflowRunOperations_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRunOperations Get. */ +public final class WorkflowRunOperationsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunOperations_Get.json + */ + /** + * Sample code: Get a run operation. + * + * @param manager Entry point to LogicManager. + */ + public static void getARunOperation(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunOperations() + .getWithResponse( + "testResourceGroup", + "testFlow", + "08586774142730039209110422528", + "ebdcbbde-c4db-43ec-987c-fd0f7726f43b", + Context.NONE); + } +} +``` + +### WorkflowRuns_Cancel + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRuns Cancel. */ +public final class WorkflowRunsCancelSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRuns_Cancel.json + */ + /** + * Sample code: Cancel a workflow run. + * + * @param manager Entry point to LogicManager. + */ + public static void cancelAWorkflowRun(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRuns() + .cancelWithResponse( + "test-resource-group", "test-workflow", "08586676746934337772206998657CU22", Context.NONE); + } +} +``` + +### WorkflowRuns_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRuns Get. */ +public final class WorkflowRunsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRuns_Get.json + */ + /** + * Sample code: Get a run for a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void getARunForAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRuns() + .getWithResponse("test-resource-group", "test-workflow", "08586676746934337772206998657CU22", Context.NONE); + } +} +``` + +### WorkflowRuns_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowRuns List. */ +public final class WorkflowRunsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRuns_List.json + */ + /** + * Sample code: List workflow runs. + * + * @param manager Entry point to LogicManager. + */ + public static void listWorkflowRuns(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowRuns().list("test-resource-group", "test-workflow", null, null, Context.NONE); + } +} +``` + +### WorkflowTriggerHistories_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggerHistories Get. */ +public final class WorkflowTriggerHistoriesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggerHistories_Get.json + */ + /** + * Sample code: Get a workflow trigger history. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowTriggerHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggerHistories() + .getWithResponse( + "testResourceGroup", + "testWorkflowName", + "testTriggerName", + "08586676746934337772206998657CU22", + Context.NONE); + } +} +``` + +### WorkflowTriggerHistories_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggerHistories List. */ +public final class WorkflowTriggerHistoriesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggerHistories_List.json + */ + /** + * Sample code: List a workflow trigger history. + * + * @param manager Entry point to LogicManager. + */ + public static void listAWorkflowTriggerHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggerHistories() + .list("testResourceGroup", "testWorkflowName", "testTriggerName", null, null, Context.NONE); + } +} +``` + +### WorkflowTriggerHistories_Resubmit + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggerHistories Resubmit. */ +public final class WorkflowTriggerHistoriesResubmitSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggerHistories_Resubmit.json + */ + /** + * Sample code: Resubmit a workflow run based on the trigger history. + * + * @param manager Entry point to LogicManager. + */ + public static void resubmitAWorkflowRunBasedOnTheTriggerHistory( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggerHistories() + .resubmitWithResponse( + "testResourceGroup", "testWorkflowName", "testTriggerName", "testHistoryName", Context.NONE); + } +} +``` + +### WorkflowTriggers_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers Get. */ +public final class WorkflowTriggersGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_Get.json + */ + /** + * Sample code: Get a workflow trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowTrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().getWithResponse("test-resource-group", "test-workflow", "manual", Context.NONE); + } +} +``` + +### WorkflowTriggers_GetSchemaJson + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers GetSchemaJson. */ +public final class WorkflowTriggersGetSchemaJsonSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_GetSchemaJson.json + */ + /** + * Sample code: Get trigger schema. + * + * @param manager Entry point to LogicManager. + */ + public static void getTriggerSchema(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggers() + .getSchemaJsonWithResponse("testResourceGroup", "testWorkflow", "testTrigger", Context.NONE); + } +} +``` + +### WorkflowTriggers_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers List. */ +public final class WorkflowTriggersListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_List.json + */ + /** + * Sample code: List workflow triggers. + * + * @param manager Entry point to LogicManager. + */ + public static void listWorkflowTriggers(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().list("test-resource-group", "test-workflow", null, null, Context.NONE); + } +} +``` + +### WorkflowTriggers_ListCallbackUrl + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers ListCallbackUrl. */ +public final class WorkflowTriggersListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_ListCallbackUrl.json + */ + /** + * Sample code: Get the callback URL for a trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheCallbackURLForATrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggers() + .listCallbackUrlWithResponse("test-resource-group", "test-workflow", "manual", Context.NONE); + } +} +``` + +### WorkflowTriggers_Reset + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers Reset. */ +public final class WorkflowTriggersResetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_Reset.json + */ + /** + * Sample code: Reset trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void resetTrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().resetWithResponse("testResourceGroup", "testWorkflow", "testTrigger", Context.NONE); + } +} +``` + +### WorkflowTriggers_Run + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers Run. */ +public final class WorkflowTriggersRunSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_Run.json + */ + /** + * Sample code: Run a workflow trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void runAWorkflowTrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().runWithResponse("test-resource-group", "test-workflow", "manual", Context.NONE); + } +} +``` + +### WorkflowTriggers_SetState + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.SetTriggerStateActionDefinition; +import com.azure.resourcemanager.logic.models.WorkflowTriggerReference; + +/** Samples for WorkflowTriggers SetState. */ +public final class WorkflowTriggersSetStateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_SetState.json + */ + /** + * Sample code: Set trigger state. + * + * @param manager Entry point to LogicManager. + */ + public static void setTriggerState(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggers() + .setStateWithResponse( + "testResourceGroup", + "testWorkflow", + "testTrigger", + new SetTriggerStateActionDefinition() + .withSource( + new WorkflowTriggerReference() + .withId( + "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sourceResGroup/providers/Microsoft.Logic/workflows/sourceWorkflow/triggers/sourceTrigger")), + Context.NONE); + } +} +``` + +### WorkflowVersionTriggers_ListCallbackUrl + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for WorkflowVersionTriggers ListCallbackUrl. */ +public final class WorkflowVersionTriggersListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowVersionTriggers_ListCallbackUrl.json + */ + /** + * Sample code: Get the callback url for a trigger of a workflow version. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheCallbackUrlForATriggerOfAWorkflowVersion( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowVersionTriggers() + .listCallbackUrlWithResponse( + "testResourceGroup", + "testWorkflowName", + "testWorkflowVersionId", + "testTriggerName", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2017-03-05T08:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### WorkflowVersions_Get + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowVersions Get. */ +public final class WorkflowVersionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowVersions_Get.json + */ + /** + * Sample code: Get a workflow version. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowVersion(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowVersions() + .getWithResponse("test-resource-group", "test-workflow", "08586676824806722526", Context.NONE); + } +} +``` + +### WorkflowVersions_List + +```java +import com.azure.core.util.Context; + +/** Samples for WorkflowVersions List. */ +public final class WorkflowVersionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowVersions_List.json + */ + /** + * Sample code: List a workflows versions. + * + * @param manager Entry point to LogicManager. + */ + public static void listAWorkflowsVersions(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowVersions().list("test-resource-group", "test-workflow", null, Context.NONE); + } +} +``` + +### Workflows_CreateOrUpdate + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowParameter; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for Workflows CreateOrUpdate. */ +public final class WorkflowsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .workflows() + .define("test-workflow") + .withRegion("brazilsouth") + .withExistingResourceGroup("test-resource-group") + .withTags(mapOf()) + .withIntegrationAccount( + new ResourceReference() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account")) + .withDefinition( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{\"Find_pet_by_ID\":{\"type\":\"ApiConnection\",\"inputs\":{\"path\":\"/pet/@{encodeURIComponent('1')}\",\"method\":\"get\",\"host\":{\"connection\":{\"name\":\"@parameters('$connections')['test-custom-connector']['connectionId']\"}}},\"runAfter\":{}}},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"parameters\":{\"$connections\":{\"type\":\"Object\",\"defaultValue\":{}}},\"triggers\":{\"manual\":{\"type\":\"Request\",\"inputs\":{\"schema\":{}},\"kind\":\"Http\"}}}", + Object.class, + SerializerEncoding.JSON)) + .withParameters( + mapOf( + "$connections", + new WorkflowParameter() + .withValue( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"test-custom-connector\":{\"connectionId\":\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Web/connections/test-custom-connector\",\"connectionName\":\"test-custom-connector\",\"id\":\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/test-custom-connector\"}}", + Object.class, + SerializerEncoding.JSON)))) + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### Workflows_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows Delete. */ +public final class WorkflowsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Delete.json + */ + /** + * Sample code: Delete a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().deleteWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} +``` + +### Workflows_Disable + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows Disable. */ +public final class WorkflowsDisableSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Disable.json + */ + /** + * Sample code: Disable a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void disableAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().disableWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} +``` + +### Workflows_Enable + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows Enable. */ +public final class WorkflowsEnableSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Enable.json + */ + /** + * Sample code: Enable a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void enableAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().enableWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} +``` + +### Workflows_GenerateUpgradedDefinition + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GenerateUpgradedDefinitionParameters; + +/** Samples for Workflows GenerateUpgradedDefinition. */ +public final class WorkflowsGenerateUpgradedDefinitionSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_GenerateUpgradedDefinition.json + */ + /** + * Sample code: Generate an upgraded definition. + * + * @param manager Entry point to LogicManager. + */ + public static void generateAnUpgradedDefinition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .generateUpgradedDefinitionWithResponse( + "test-resource-group", + "test-workflow", + new GenerateUpgradedDefinitionParameters().withTargetSchemaVersion("2016-06-01"), + Context.NONE); + } +} +``` + +### Workflows_GetByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows GetByResourceGroup. */ +public final class WorkflowsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Get.json + */ + /** + * Sample code: Get a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().getByResourceGroupWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} +``` + +### Workflows_List + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows List. */ +public final class WorkflowsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListBySubscription.json + */ + /** + * Sample code: List all workflows in a subscription. + * + * @param manager Entry point to LogicManager. + */ + public static void listAllWorkflowsInASubscription(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().list(null, null, Context.NONE); + } +} +``` + +### Workflows_ListByResourceGroup + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows ListByResourceGroup. */ +public final class WorkflowsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListByResourceGroup.json + */ + /** + * Sample code: List all workflows in a resource group. + * + * @param manager Entry point to LogicManager. + */ + public static void listAllWorkflowsInAResourceGroup(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().listByResourceGroup("test-resource-group", null, null, Context.NONE); + } +} +``` + +### Workflows_ListCallbackUrl + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for Workflows ListCallbackUrl. */ +public final class WorkflowsListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListCallbackUrl.json + */ + /** + * Sample code: Get callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .listCallbackUrlWithResponse( + "testResourceGroup", + "testWorkflow", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### Workflows_ListSwagger + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows ListSwagger. */ +public final class WorkflowsListSwaggerSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListSwagger.json + */ + /** + * Sample code: Get the swagger for a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheSwaggerForAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().listSwaggerWithResponse("testResourceGroup", "testWorkflowName", Context.NONE); + } +} +``` + +### Workflows_Move + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.WorkflowReference; + +/** Samples for Workflows Move. */ +public final class WorkflowsMoveSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Move.json + */ + /** + * Sample code: Move a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void moveAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .move( + "testResourceGroup", + "testWorkflow", + new WorkflowReference() + .withId( + "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/newResourceGroup/providers/Microsoft.Logic/workflows/newWorkflowName"), + Context.NONE); + } +} +``` + +### Workflows_RegenerateAccessKey + +```java +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.KeyType; +import com.azure.resourcemanager.logic.models.RegenerateActionParameter; + +/** Samples for Workflows RegenerateAccessKey. */ +public final class WorkflowsRegenerateAccessKeySamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_RegenerateAccessKey.json + */ + /** + * Sample code: Regenerate the callback URL access key for request triggers. + * + * @param manager Entry point to LogicManager. + */ + public static void regenerateTheCallbackURLAccessKeyForRequestTriggers( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .regenerateAccessKeyWithResponse( + "testResourceGroup", + "testWorkflowName", + new RegenerateActionParameter().withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} +``` + +### Workflows_Update + +```java +import com.azure.core.util.Context; + +/** Samples for Workflows Update. */ +public final class WorkflowsUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Update.json + */ + /** + * Sample code: Patch a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void patchAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().updateWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} +``` + +### Workflows_ValidateByLocation + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.Context; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.fluent.models.WorkflowInner; +import com.azure.resourcemanager.logic.models.ResourceReference; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for Workflows ValidateByLocation. */ +public final class WorkflowsValidateByLocationSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ValidateByLocation.json + */ + /** + * Sample code: Validate a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void validateAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .workflows() + .validateByLocationWithResponse( + "test-resource-group", + "brazilsouth", + "test-workflow", + new WorkflowInner() + .withLocation("brazilsouth") + .withTags(mapOf()) + .withIntegrationAccount( + new ResourceReference() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account")) + .withDefinition( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"parameters\":{},\"triggers\":{}}", + Object.class, + SerializerEncoding.JSON)), + Context.NONE); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### Workflows_ValidateByResourceGroup + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.Context; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.fluent.models.WorkflowInner; +import com.azure.resourcemanager.logic.models.ResourceReference; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for Workflows ValidateByResourceGroup. */ +public final class WorkflowsValidateByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ValidateByResourceGroup.json + */ + /** + * Sample code: Validate a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void validateAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .workflows() + .validateByResourceGroupWithResponse( + "test-resource-group", + "test-workflow", + new WorkflowInner() + .withLocation("brazilsouth") + .withTags(mapOf()) + .withIntegrationAccount( + new ResourceReference() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account")) + .withDefinition( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"parameters\":{},\"triggers\":{}}", + Object.class, + SerializerEncoding.JSON)), + Context.NONE); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + diff --git a/sdk/logic/azure-resourcemanager-logic/pom.xml b/sdk/logic/azure-resourcemanager-logic/pom.xml index 4a3e5535c1c1..9e50680c6679 100644 --- a/sdk/logic/azure-resourcemanager-logic/pom.xml +++ b/sdk/logic/azure-resourcemanager-logic/pom.xml @@ -1,55 +1,55 @@ - 4.0.0 - - com.azure - azure-client-sdk-parent - 1.7.0 - ../../parents/azure-client-sdk-parent - + 4.0.0 + + com.azure + azure-client-sdk-parent + 1.7.0 + ../../parents/azure-client-sdk-parent + - com.azure.resourcemanager - azure-resourcemanager-logic - 1.0.0-beta.2 - jar + com.azure.resourcemanager + azure-resourcemanager-logic + 1.0.0-beta.2 + jar - Microsoft Azure SDK for Logic Management - This package contains Microsoft Azure SDK for Logic Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for Azure Logic Apps. Package tag package-2019-05. - https://github.com/Azure/azure-sdk-for-java + Microsoft Azure SDK for Logic Management + This package contains Microsoft Azure SDK for Logic Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for Azure Logic Apps. Package tag package-2019-05. + https://github.com/Azure/azure-sdk-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + - - https://github.com/Azure/azure-sdk-for-java - scm:git:git@github.com:Azure/azure-sdk-for-java.git - scm:git:git@github.com:Azure/azure-sdk-for-java.git - HEAD - - - - microsoft - Microsoft - - - - UTF-8 - true - - - - com.azure - azure-core - 1.25.0 - - - com.azure - azure-core-management - 1.5.2 - - + + https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + + microsoft + Microsoft + + + + UTF-8 + true + + + + com.azure + azure-core + 1.25.0 + + + com.azure + azure-core-management + 1.5.2 + + diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/LogicManager.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/LogicManager.java index a41e824594a7..da0c867f43c6 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/LogicManager.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/LogicManager.java @@ -8,8 +8,8 @@ import com.azure.core.http.HttpClient; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; -import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; @@ -17,6 +17,7 @@ import com.azure.core.http.policy.RequestIdPolicy; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; +import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; @@ -81,6 +82,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; +import java.util.stream.Collectors; /** Entry point to LogicManager. REST API for Azure Logic Apps. */ public final class LogicManager { @@ -181,6 +183,7 @@ public static final class Configurable { private HttpClient httpClient; private HttpLogOptions httpLogOptions; private final List policies = new ArrayList<>(); + private final List scopes = new ArrayList<>(); private RetryPolicy retryPolicy; private Duration defaultPollInterval; @@ -220,6 +223,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) { return this; } + /** + * Adds the scope to permission sets. + * + * @param scope the scope. + * @return the configurable object itself. + */ + public Configurable withScope(String scope) { + this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null.")); + return this; + } + /** * Sets the retry policy to the HTTP pipeline. * @@ -276,20 +290,33 @@ public LogicManager authenticate(TokenCredential credential, AzureProfile profil userAgentBuilder.append(" (auto-generated)"); } + if (scopes.isEmpty()) { + scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default"); + } if (retryPolicy == null) { retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); } List policies = new ArrayList<>(); policies.add(new UserAgentPolicy(userAgentBuilder.toString())); policies.add(new RequestIdPolicy()); + policies + .addAll( + this + .policies + .stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .collect(Collectors.toList())); HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); + policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); policies - .add( - new BearerTokenAuthenticationPolicy( - credential, profile.getEnvironment().getManagementEndpoint() + "/.default")); - policies.addAll(this.policies); + .addAll( + this + .policies + .stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) + .collect(Collectors.toList())); HttpPolicyProviders.addAfterRetryPolicies(policies); policies.add(new HttpLoggingPolicy(httpLogOptions)); HttpPipeline httpPipeline = diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAgreementsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAgreementsClient.java index ef871c4a2b1b..4bac5569ec48 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAgreementsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAgreementsClient.java @@ -23,7 +23,7 @@ public interface IntegrationAccountAgreementsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -39,7 +39,7 @@ public interface IntegrationAccountAgreementsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -69,7 +69,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -105,7 +105,7 @@ IntegrationAccountAgreementInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account agreement. + * @return the integration account agreement along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -138,7 +138,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( @@ -174,7 +174,7 @@ WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listContentCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAssembliesClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAssembliesClient.java index b4a73aca4ba2..f2b9653aa068 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAssembliesClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAssembliesClient.java @@ -22,7 +22,7 @@ public interface IntegrationAccountAssembliesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -36,7 +36,7 @@ public interface IntegrationAccountAssembliesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -66,7 +66,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -102,7 +102,7 @@ AssemblyDefinitionInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the assembly definition. + * @return the assembly definition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -135,7 +135,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( @@ -166,7 +166,7 @@ WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url for an integration account assembly. + * @return the content callback url for an integration account assembly along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listContentCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountBatchConfigurationsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountBatchConfigurationsClient.java index 41f4a3b8f27b..63a927120fdf 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountBatchConfigurationsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountBatchConfigurationsClient.java @@ -24,7 +24,7 @@ public interface IntegrationAccountBatchConfigurationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -38,7 +38,7 @@ public interface IntegrationAccountBatchConfigurationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -68,7 +68,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -104,7 +104,7 @@ BatchConfigurationInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the batch configuration resource definition. + * @return the batch configuration resource definition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -137,7 +137,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountCertificatesClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountCertificatesClient.java index 2de63e608397..3d0d3f337d64 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountCertificatesClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountCertificatesClient.java @@ -21,7 +21,7 @@ public interface IntegrationAccountCertificatesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -36,7 +36,7 @@ public interface IntegrationAccountCertificatesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -67,7 +67,7 @@ IntegrationAccountCertificateInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -103,7 +103,7 @@ IntegrationAccountCertificateInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account certificate. + * @return the integration account certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -136,7 +136,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountMapsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountMapsClient.java index 03dfae63b1a0..9bf481f5b718 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountMapsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountMapsClient.java @@ -23,7 +23,7 @@ public interface IntegrationAccountMapsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -39,7 +39,7 @@ public interface IntegrationAccountMapsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -69,14 +69,15 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( String resourceGroupName, String integrationAccountName, String mapName, Context context); /** - * Creates or updates an integration account map. + * Creates or updates an integration account map. If the map is larger than 4 MB, you need to store the map in an + * Azure blob and use the blob's Shared Access Signature (SAS) URL as the 'contentLink' property value. * * @param resourceGroupName The resource group name. * @param integrationAccountName The integration account name. @@ -92,7 +93,8 @@ IntegrationAccountMapInner createOrUpdate( String resourceGroupName, String integrationAccountName, String mapName, IntegrationAccountMapInner map); /** - * Creates or updates an integration account map. + * Creates or updates an integration account map. If the map is larger than 4 MB, you need to store the map in an + * Azure blob and use the blob's Shared Access Signature (SAS) URL as the 'contentLink' property value. * * @param resourceGroupName The resource group name. * @param integrationAccountName The integration account name. @@ -102,7 +104,7 @@ IntegrationAccountMapInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account map. + * @return the integration account map along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -135,7 +137,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( @@ -171,7 +173,7 @@ WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listContentCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountPartnersClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountPartnersClient.java index 3a1f5880b7ae..636f7b617fd3 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountPartnersClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountPartnersClient.java @@ -23,7 +23,7 @@ public interface IntegrationAccountPartnersClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -39,7 +39,7 @@ public interface IntegrationAccountPartnersClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -69,7 +69,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -105,7 +105,7 @@ IntegrationAccountPartnerInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account partner. + * @return the integration account partner along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -138,7 +138,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( @@ -174,7 +174,7 @@ WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listContentCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSchemasClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSchemasClient.java index 0b2ed3442082..a2a0f2bf005f 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSchemasClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSchemasClient.java @@ -23,7 +23,7 @@ public interface IntegrationAccountSchemasClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -39,7 +39,7 @@ public interface IntegrationAccountSchemasClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -69,7 +69,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -105,7 +105,7 @@ IntegrationAccountSchemaInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account schema. + * @return the integration account schema along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -138,7 +138,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( @@ -174,7 +174,7 @@ WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listContentCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSessionsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSessionsClient.java index 2536b3d22052..ace0c66e853c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSessionsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountSessionsClient.java @@ -21,7 +21,7 @@ public interface IntegrationAccountSessionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -37,7 +37,7 @@ public interface IntegrationAccountSessionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -67,7 +67,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -103,7 +103,7 @@ IntegrationAccountSessionInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account session. + * @return the integration account session along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -136,7 +136,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountsClient.java index eb7c0cf3cb6f..62d508d35912 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountsClient.java @@ -24,7 +24,7 @@ public interface IntegrationAccountsClient { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -37,7 +37,7 @@ public interface IntegrationAccountsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Integer top, Context context); @@ -49,7 +49,7 @@ public interface IntegrationAccountsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); @@ -63,7 +63,7 @@ public interface IntegrationAccountsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Integer top, Context context); @@ -90,7 +90,7 @@ public interface IntegrationAccountsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByResourceGroupWithResponse( @@ -121,7 +121,7 @@ IntegrationAccountInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -155,7 +155,7 @@ IntegrationAccountInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse( @@ -185,7 +185,7 @@ Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse(String resourceGroupName, String integrationAccountName, Context context); @@ -215,7 +215,7 @@ CallbackUrlInner listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account callback URL. + * @return the integration account callback URL along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listCallbackUrlWithResponse( @@ -230,7 +230,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listKeyVaultKeys( @@ -246,7 +246,7 @@ PagedIterable listKeyVaultKeys( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listKeyVaultKeys( @@ -279,7 +279,7 @@ void logTrackingEvents( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response logTrackingEventsWithResponse( @@ -313,7 +313,7 @@ IntegrationAccountInner regenerateAccessKey( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response regenerateAccessKeyWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApiOperationsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApiOperationsClient.java index 2afc3696b39e..85b8f69d76bc 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApiOperationsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApiOperationsClient.java @@ -24,7 +24,7 @@ public interface IntegrationServiceEnvironmentManagedApiOperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -40,7 +40,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApisClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApisClient.java index afc4aeea327b..b44f85b5fb11 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApisClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentManagedApisClient.java @@ -11,7 +11,7 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.logic.fluent.models.ManagedApiInner; +import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner; /** * An instance of this class provides access to all the operations defined in @@ -26,10 +26,11 @@ public interface IntegrationServiceEnvironmentManagedApisClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName); + PagedIterable list( + String resourceGroup, String integrationServiceEnvironmentName); /** * Gets the integration service environment managed Apis. @@ -40,10 +41,10 @@ public interface IntegrationServiceEnvironmentManagedApisClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( + PagedIterable list( String resourceGroup, String integrationServiceEnvironmentName, Context context); /** @@ -58,7 +59,8 @@ PagedIterable list( * @return the integration service environment managed Api. */ @ServiceMethod(returns = ReturnType.SINGLE) - ManagedApiInner get(String resourceGroup, String integrationServiceEnvironmentName, String apiName); + IntegrationServiceEnvironmentManagedApiInner get( + String resourceGroup, String integrationServiceEnvironmentName, String apiName); /** * Gets the integration service environment managed Api. @@ -70,10 +72,10 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Api. + * @return the integration service environment managed Api along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + Response getWithResponse( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); /** @@ -82,14 +84,19 @@ Response getWithResponse( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the {@link SyncPoller} for polling of the integration service environment managed api. */ - @ServiceMethod(returns = ReturnType.SINGLE) - SyncPoller, ManagedApiInner> beginPut( - String resourceGroup, String integrationServiceEnvironmentName, String apiName); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, IntegrationServiceEnvironmentManagedApiInner> + beginPut( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi); /** * Puts the integration service environment managed Api. @@ -97,15 +104,21 @@ SyncPoller, ManagedApiInner> beginPut( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the {@link SyncPoller} for polling of the integration service environment managed api. */ - @ServiceMethod(returns = ReturnType.SINGLE) - SyncPoller, ManagedApiInner> beginPut( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, IntegrationServiceEnvironmentManagedApiInner> + beginPut( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, + Context context); /** * Puts the integration service environment managed Api. @@ -113,13 +126,18 @@ SyncPoller, ManagedApiInner> beginPut( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api. */ @ServiceMethod(returns = ReturnType.SINGLE) - ManagedApiInner put(String resourceGroup, String integrationServiceEnvironmentName, String apiName); + IntegrationServiceEnvironmentManagedApiInner put( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi); /** * Puts the integration service environment managed Api. @@ -127,15 +145,20 @@ SyncPoller, ManagedApiInner> beginPut( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api. */ @ServiceMethod(returns = ReturnType.SINGLE) - ManagedApiInner put( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); + IntegrationServiceEnvironmentManagedApiInner put( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, + Context context); /** * Deletes the integration service environment managed Api. @@ -146,9 +169,9 @@ ManagedApiInner put( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroup, String integrationServiceEnvironmentName, String apiName); @@ -162,9 +185,9 @@ SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentNetworkHealthsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentNetworkHealthsClient.java index b3b9c6393c74..d4ceed28f1bf 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentNetworkHealthsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentNetworkHealthsClient.java @@ -39,7 +39,7 @@ Map get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment network health. + * @return the integration service environment network health along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response> getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentSkusClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentSkusClient.java index f72ef85f4499..f41ca435fecd 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentSkusClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentSkusClient.java @@ -22,7 +22,7 @@ public interface IntegrationServiceEnvironmentSkusClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -37,7 +37,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentsClient.java index 1751c7e4cd96..09bee934b264 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationServiceEnvironmentsClient.java @@ -20,7 +20,8 @@ public interface IntegrationServiceEnvironmentsClient { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -33,7 +34,8 @@ public interface IntegrationServiceEnvironmentsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Integer top, Context context); @@ -45,7 +47,8 @@ public interface IntegrationServiceEnvironmentsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroup); @@ -59,7 +62,8 @@ public interface IntegrationServiceEnvironmentsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup( @@ -88,7 +92,7 @@ IntegrationServiceEnvironmentInner getByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByResourceGroupWithResponse( @@ -103,9 +107,9 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationServiceEnvironmentInner> beginCreateOrUpdate( String resourceGroup, String integrationServiceEnvironmentName, @@ -121,9 +125,9 @@ SyncPoller, IntegrationServiceEnv * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationServiceEnvironmentInner> beginCreateOrUpdate( String resourceGroup, String integrationServiceEnvironmentName, @@ -175,9 +179,9 @@ IntegrationServiceEnvironmentInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationServiceEnvironmentInner> beginUpdate( String resourceGroup, String integrationServiceEnvironmentName, @@ -193,9 +197,9 @@ SyncPoller, IntegrationServiceEnv * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationServiceEnvironmentInner> beginUpdate( String resourceGroup, String integrationServiceEnvironmentName, @@ -259,7 +263,7 @@ IntegrationServiceEnvironmentInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse(String resourceGroup, String integrationServiceEnvironmentName, Context context); @@ -285,7 +289,7 @@ IntegrationServiceEnvironmentInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response restartWithResponse(String resourceGroup, String integrationServiceEnvironmentName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/OperationsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/OperationsClient.java index ff353084183a..de2648426be8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/OperationsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/OperationsClient.java @@ -17,7 +17,7 @@ public interface OperationsClient { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -29,7 +29,7 @@ public interface OperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsClient.java index 5957f396754f..00c3761c7bc4 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsClient.java @@ -24,7 +24,7 @@ public interface WorkflowRunActionRepetitionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -41,7 +41,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -76,7 +76,7 @@ WorkflowRunActionRepetitionDefinitionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action repetition. + * @return a workflow run action repetition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -98,7 +98,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listExpressionTraces( @@ -116,7 +116,7 @@ PagedIterable listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listExpressionTraces( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsRequestHistoriesClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsRequestHistoriesClient.java index 3c9157740d53..ef92ad20686c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsRequestHistoriesClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRepetitionsRequestHistoriesClient.java @@ -27,7 +27,7 @@ public interface WorkflowRunActionRepetitionsRequestHistoriesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -45,7 +45,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -92,7 +92,7 @@ RequestHistoryInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run repetition request history. + * @return a workflow run repetition request history along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRequestHistoriesClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRequestHistoriesClient.java index 94963ee7f578..222d9122fb82 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRequestHistoriesClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionRequestHistoriesClient.java @@ -25,7 +25,7 @@ public interface WorkflowRunActionRequestHistoriesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -42,7 +42,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -77,7 +77,7 @@ RequestHistoryInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run request history. + * @return a workflow run request history along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionScopeRepetitionsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionScopeRepetitionsClient.java index 41e6fd9505ca..56071b7d5976 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionScopeRepetitionsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionScopeRepetitionsClient.java @@ -25,7 +25,7 @@ public interface WorkflowRunActionScopeRepetitionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -42,7 +42,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -77,7 +77,7 @@ WorkflowRunActionRepetitionDefinitionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action scoped repetition. + * @return a workflow run action scoped repetition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionsClient.java index fa8a1c8007c2..d3abc42bcffe 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunActionsClient.java @@ -23,7 +23,7 @@ public interface WorkflowRunActionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workflowName, String runName); @@ -40,7 +40,7 @@ public interface WorkflowRunActionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -72,7 +72,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action. + * @return a workflow run action along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -88,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listExpressionTraces( @@ -105,7 +105,7 @@ PagedIterable listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listExpressionTraces( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunOperationsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunOperationsClient.java index c5d66ccf924d..4bb5cce6d26d 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunOperationsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunOperationsClient.java @@ -38,7 +38,7 @@ public interface WorkflowRunOperationsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an operation for a run. + * @return an operation for a run along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunsClient.java index 212c5c0f8f0b..17b1093614c8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowRunsClient.java @@ -21,7 +21,7 @@ public interface WorkflowRunsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workflowName); @@ -38,7 +38,7 @@ public interface WorkflowRunsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -68,7 +68,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run. + * @return a workflow run along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -97,7 +97,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response cancelWithResponse(String resourceGroupName, String workflowName, String runName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggerHistoriesClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggerHistoriesClient.java index d401dc6aee91..434088c18a80 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggerHistoriesClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggerHistoriesClient.java @@ -22,7 +22,7 @@ public interface WorkflowTriggerHistoriesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workflowName, String triggerName); @@ -40,7 +40,7 @@ public interface WorkflowTriggerHistoriesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -75,7 +75,7 @@ WorkflowTriggerHistoryInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger history. + * @return a workflow trigger history along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -108,7 +108,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response resubmitWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggersClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggersClient.java index 28c3500738ad..ee85e4725bf4 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggersClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowTriggersClient.java @@ -24,7 +24,7 @@ public interface WorkflowTriggersClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workflowName); @@ -40,7 +40,7 @@ public interface WorkflowTriggersClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -70,7 +70,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger. + * @return a workflow trigger along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -99,7 +99,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response resetWithResponse( @@ -128,7 +128,7 @@ Response resetWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response runWithResponse(String resourceGroupName, String workflowName, String triggerName, Context context); @@ -157,7 +157,7 @@ Response resetWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the trigger schema as JSON. + * @return the trigger schema as JSON along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getSchemaJsonWithResponse( @@ -189,7 +189,7 @@ void setState( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response setStateWithResponse( @@ -223,7 +223,7 @@ Response setStateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback URL for a workflow trigger. + * @return the callback URL for a workflow trigger along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionTriggersClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionTriggersClient.java index 92f75c88297d..55dc5ae9a283 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionTriggersClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionTriggersClient.java @@ -41,7 +41,7 @@ WorkflowTriggerCallbackUrlInner listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback url for a trigger of a workflow version. + * @return the callback url for a trigger of a workflow version along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionsClient.java index 83b3633ba3ab..44786db3dba2 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowVersionsClient.java @@ -21,7 +21,7 @@ public interface WorkflowVersionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workflowName); @@ -36,7 +36,7 @@ public interface WorkflowVersionsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list( @@ -66,7 +66,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow version. + * @return a workflow version along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowsClient.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowsClient.java index fc9193bed4e4..98144c8662f3 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowsClient.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/WorkflowsClient.java @@ -25,7 +25,7 @@ public interface WorkflowsClient { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); @@ -40,7 +40,7 @@ public interface WorkflowsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Integer top, String filter, Context context); @@ -52,7 +52,7 @@ public interface WorkflowsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); @@ -68,7 +68,7 @@ public interface WorkflowsClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup( @@ -96,7 +96,7 @@ PagedIterable listByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByResourceGroupWithResponse( @@ -126,7 +126,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response createOrUpdateWithResponse( @@ -154,7 +154,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse(String resourceGroupName, String workflowName, Context context); @@ -180,7 +180,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response deleteWithResponse(String resourceGroupName, String workflowName, Context context); @@ -206,7 +206,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response disableWithResponse(String resourceGroupName, String workflowName, Context context); @@ -232,7 +232,7 @@ Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response enableWithResponse(String resourceGroupName, String workflowName, Context context); @@ -262,7 +262,7 @@ Object generateUpgradedDefinition( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return any object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response generateUpgradedDefinitionWithResponse( @@ -296,7 +296,7 @@ WorkflowTriggerCallbackUrlInner listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow callback Url. + * @return the workflow callback Url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listCallbackUrlWithResponse( @@ -324,7 +324,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an OpenAPI definition for the workflow. + * @return an OpenAPI definition for the workflow along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response listSwaggerWithResponse(String resourceGroupName, String workflowName, Context context); @@ -338,9 +338,9 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginMove(String resourceGroupName, String workflowName, WorkflowReference move); /** @@ -353,9 +353,9 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginMove( String resourceGroupName, String workflowName, WorkflowReference move, Context context); @@ -409,7 +409,7 @@ SyncPoller, Void> beginMove( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response regenerateAccessKeyWithResponse( @@ -438,7 +438,7 @@ Response regenerateAccessKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response validateByResourceGroupWithResponse( @@ -469,7 +469,7 @@ Response validateByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response validateByLocationWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementInner.java index 315615b8b873..96fc8fcb0875 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.AgreementContent; @@ -17,66 +16,38 @@ import java.util.Map; /** The integration account agreement. */ -@JsonFlatten @Fluent -public class IntegrationAccountAgreementInner extends Resource { +public final class IntegrationAccountAgreementInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountAgreementInner.class); /* - * The created time. + * The integration account agreement properties. */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; + @JsonProperty(value = "properties", required = true) + private IntegrationAccountAgreementProperties innerProperties = new IntegrationAccountAgreementProperties(); - /* - * The changed time. - */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; - - /* - * The metadata. - */ - @JsonProperty(value = "properties.metadata") - private Object metadata; - - /* - * The agreement type. - */ - @JsonProperty(value = "properties.agreementType", required = true) - private AgreementType agreementType; - - /* - * The integration account partner that is set as host partner for this - * agreement. - */ - @JsonProperty(value = "properties.hostPartner", required = true) - private String hostPartner; - - /* - * The integration account partner that is set as guest partner for this - * agreement. - */ - @JsonProperty(value = "properties.guestPartner", required = true) - private String guestPartner; - - /* - * The business identity of the host partner. + /** + * Get the innerProperties property: The integration account agreement properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.hostIdentity", required = true) - private BusinessIdentity hostIdentity; + private IntegrationAccountAgreementProperties innerProperties() { + return this.innerProperties; + } - /* - * The business identity of the guest partner. - */ - @JsonProperty(value = "properties.guestIdentity", required = true) - private BusinessIdentity guestIdentity; + /** {@inheritDoc} */ + @Override + public IntegrationAccountAgreementInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The agreement content. - */ - @JsonProperty(value = "properties.content", required = true) - private AgreementContent content; + /** {@inheritDoc} */ + @Override + public IntegrationAccountAgreementInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the createdTime property: The created time. @@ -84,7 +55,7 @@ public class IntegrationAccountAgreementInner extends Resource { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -93,7 +64,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -102,7 +73,7 @@ public OffsetDateTime changedTime() { * @return the metadata value. */ public Object metadata() { - return this.metadata; + return this.innerProperties() == null ? null : this.innerProperties().metadata(); } /** @@ -112,7 +83,10 @@ public Object metadata() { * @return the IntegrationAccountAgreementInner object itself. */ public IntegrationAccountAgreementInner withMetadata(Object metadata) { - this.metadata = metadata; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountAgreementProperties(); + } + this.innerProperties().withMetadata(metadata); return this; } @@ -122,7 +96,7 @@ public IntegrationAccountAgreementInner withMetadata(Object metadata) { * @return the agreementType value. */ public AgreementType agreementType() { - return this.agreementType; + return this.innerProperties() == null ? null : this.innerProperties().agreementType(); } /** @@ -132,7 +106,10 @@ public AgreementType agreementType() { * @return the IntegrationAccountAgreementInner object itself. */ public IntegrationAccountAgreementInner withAgreementType(AgreementType agreementType) { - this.agreementType = agreementType; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountAgreementProperties(); + } + this.innerProperties().withAgreementType(agreementType); return this; } @@ -142,7 +119,7 @@ public IntegrationAccountAgreementInner withAgreementType(AgreementType agreemen * @return the hostPartner value. */ public String hostPartner() { - return this.hostPartner; + return this.innerProperties() == null ? null : this.innerProperties().hostPartner(); } /** @@ -152,7 +129,10 @@ public String hostPartner() { * @return the IntegrationAccountAgreementInner object itself. */ public IntegrationAccountAgreementInner withHostPartner(String hostPartner) { - this.hostPartner = hostPartner; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountAgreementProperties(); + } + this.innerProperties().withHostPartner(hostPartner); return this; } @@ -162,7 +142,7 @@ public IntegrationAccountAgreementInner withHostPartner(String hostPartner) { * @return the guestPartner value. */ public String guestPartner() { - return this.guestPartner; + return this.innerProperties() == null ? null : this.innerProperties().guestPartner(); } /** @@ -172,7 +152,10 @@ public String guestPartner() { * @return the IntegrationAccountAgreementInner object itself. */ public IntegrationAccountAgreementInner withGuestPartner(String guestPartner) { - this.guestPartner = guestPartner; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountAgreementProperties(); + } + this.innerProperties().withGuestPartner(guestPartner); return this; } @@ -182,7 +165,7 @@ public IntegrationAccountAgreementInner withGuestPartner(String guestPartner) { * @return the hostIdentity value. */ public BusinessIdentity hostIdentity() { - return this.hostIdentity; + return this.innerProperties() == null ? null : this.innerProperties().hostIdentity(); } /** @@ -192,7 +175,10 @@ public BusinessIdentity hostIdentity() { * @return the IntegrationAccountAgreementInner object itself. */ public IntegrationAccountAgreementInner withHostIdentity(BusinessIdentity hostIdentity) { - this.hostIdentity = hostIdentity; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountAgreementProperties(); + } + this.innerProperties().withHostIdentity(hostIdentity); return this; } @@ -202,7 +188,7 @@ public IntegrationAccountAgreementInner withHostIdentity(BusinessIdentity hostId * @return the guestIdentity value. */ public BusinessIdentity guestIdentity() { - return this.guestIdentity; + return this.innerProperties() == null ? null : this.innerProperties().guestIdentity(); } /** @@ -212,7 +198,10 @@ public BusinessIdentity guestIdentity() { * @return the IntegrationAccountAgreementInner object itself. */ public IntegrationAccountAgreementInner withGuestIdentity(BusinessIdentity guestIdentity) { - this.guestIdentity = guestIdentity; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountAgreementProperties(); + } + this.innerProperties().withGuestIdentity(guestIdentity); return this; } @@ -222,7 +211,7 @@ public IntegrationAccountAgreementInner withGuestIdentity(BusinessIdentity guest * @return the content value. */ public AgreementContent content() { - return this.content; + return this.innerProperties() == null ? null : this.innerProperties().content(); } /** @@ -232,21 +221,10 @@ public AgreementContent content() { * @return the IntegrationAccountAgreementInner object itself. */ public IntegrationAccountAgreementInner withContent(AgreementContent content) { - this.content = content; - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountAgreementInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountAgreementInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountAgreementProperties(); + } + this.innerProperties().withContent(content); return this; } @@ -256,47 +234,13 @@ public IntegrationAccountAgreementInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (agreementType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property agreementType in model IntegrationAccountAgreementInner")); - } - if (hostPartner() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property hostPartner in model IntegrationAccountAgreementInner")); - } - if (guestPartner() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property guestPartner in model IntegrationAccountAgreementInner")); - } - if (hostIdentity() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property hostIdentity in model IntegrationAccountAgreementInner")); - } else { - hostIdentity().validate(); - } - if (guestIdentity() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property guestIdentity in model IntegrationAccountAgreementInner")); - } else { - guestIdentity().validate(); - } - if (content() == null) { + if (innerProperties() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property content in model IntegrationAccountAgreementInner")); + "Missing required property innerProperties in model IntegrationAccountAgreementInner")); } else { - content().validate(); + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementProperties.java new file mode 100644 index 000000000000..5f3c8464e42f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountAgreementProperties.java @@ -0,0 +1,284 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.AgreementContent; +import com.azure.resourcemanager.logic.models.AgreementType; +import com.azure.resourcemanager.logic.models.BusinessIdentity; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The integration account agreement properties. */ +@Fluent +public final class IntegrationAccountAgreementProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountAgreementProperties.class); + + /* + * The created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * The changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The metadata. + */ + @JsonProperty(value = "metadata") + private Object metadata; + + /* + * The agreement type. + */ + @JsonProperty(value = "agreementType", required = true) + private AgreementType agreementType; + + /* + * The integration account partner that is set as host partner for this + * agreement. + */ + @JsonProperty(value = "hostPartner", required = true) + private String hostPartner; + + /* + * The integration account partner that is set as guest partner for this + * agreement. + */ + @JsonProperty(value = "guestPartner", required = true) + private String guestPartner; + + /* + * The business identity of the host partner. + */ + @JsonProperty(value = "hostIdentity", required = true) + private BusinessIdentity hostIdentity; + + /* + * The business identity of the guest partner. + */ + @JsonProperty(value = "guestIdentity", required = true) + private BusinessIdentity guestIdentity; + + /* + * The agreement content. + */ + @JsonProperty(value = "content", required = true) + private AgreementContent content; + + /** + * Get the createdTime property: The created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: The changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the metadata property: The metadata. + * + * @return the metadata value. + */ + public Object metadata() { + return this.metadata; + } + + /** + * Set the metadata property: The metadata. + * + * @param metadata the metadata value to set. + * @return the IntegrationAccountAgreementProperties object itself. + */ + public IntegrationAccountAgreementProperties withMetadata(Object metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get the agreementType property: The agreement type. + * + * @return the agreementType value. + */ + public AgreementType agreementType() { + return this.agreementType; + } + + /** + * Set the agreementType property: The agreement type. + * + * @param agreementType the agreementType value to set. + * @return the IntegrationAccountAgreementProperties object itself. + */ + public IntegrationAccountAgreementProperties withAgreementType(AgreementType agreementType) { + this.agreementType = agreementType; + return this; + } + + /** + * Get the hostPartner property: The integration account partner that is set as host partner for this agreement. + * + * @return the hostPartner value. + */ + public String hostPartner() { + return this.hostPartner; + } + + /** + * Set the hostPartner property: The integration account partner that is set as host partner for this agreement. + * + * @param hostPartner the hostPartner value to set. + * @return the IntegrationAccountAgreementProperties object itself. + */ + public IntegrationAccountAgreementProperties withHostPartner(String hostPartner) { + this.hostPartner = hostPartner; + return this; + } + + /** + * Get the guestPartner property: The integration account partner that is set as guest partner for this agreement. + * + * @return the guestPartner value. + */ + public String guestPartner() { + return this.guestPartner; + } + + /** + * Set the guestPartner property: The integration account partner that is set as guest partner for this agreement. + * + * @param guestPartner the guestPartner value to set. + * @return the IntegrationAccountAgreementProperties object itself. + */ + public IntegrationAccountAgreementProperties withGuestPartner(String guestPartner) { + this.guestPartner = guestPartner; + return this; + } + + /** + * Get the hostIdentity property: The business identity of the host partner. + * + * @return the hostIdentity value. + */ + public BusinessIdentity hostIdentity() { + return this.hostIdentity; + } + + /** + * Set the hostIdentity property: The business identity of the host partner. + * + * @param hostIdentity the hostIdentity value to set. + * @return the IntegrationAccountAgreementProperties object itself. + */ + public IntegrationAccountAgreementProperties withHostIdentity(BusinessIdentity hostIdentity) { + this.hostIdentity = hostIdentity; + return this; + } + + /** + * Get the guestIdentity property: The business identity of the guest partner. + * + * @return the guestIdentity value. + */ + public BusinessIdentity guestIdentity() { + return this.guestIdentity; + } + + /** + * Set the guestIdentity property: The business identity of the guest partner. + * + * @param guestIdentity the guestIdentity value to set. + * @return the IntegrationAccountAgreementProperties object itself. + */ + public IntegrationAccountAgreementProperties withGuestIdentity(BusinessIdentity guestIdentity) { + this.guestIdentity = guestIdentity; + return this; + } + + /** + * Get the content property: The agreement content. + * + * @return the content value. + */ + public AgreementContent content() { + return this.content; + } + + /** + * Set the content property: The agreement content. + * + * @param content the content value to set. + * @return the IntegrationAccountAgreementProperties object itself. + */ + public IntegrationAccountAgreementProperties withContent(AgreementContent content) { + this.content = content; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (agreementType() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property agreementType in model IntegrationAccountAgreementProperties")); + } + if (hostPartner() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property hostPartner in model IntegrationAccountAgreementProperties")); + } + if (guestPartner() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property guestPartner in model IntegrationAccountAgreementProperties")); + } + if (hostIdentity() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property hostIdentity in model IntegrationAccountAgreementProperties")); + } else { + hostIdentity().validate(); + } + if (guestIdentity() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property guestIdentity in model IntegrationAccountAgreementProperties")); + } else { + guestIdentity().validate(); + } + if (content() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property content in model IntegrationAccountAgreementProperties")); + } else { + content().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateInner.java index 8ec46df03ada..e6e4618b04a9 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.KeyVaultKeyReference; @@ -15,40 +14,38 @@ import java.util.Map; /** The integration account certificate. */ -@JsonFlatten @Fluent -public class IntegrationAccountCertificateInner extends Resource { +public final class IntegrationAccountCertificateInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountCertificateInner.class); /* - * The created time. + * The integration account certificate properties. */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; + @JsonProperty(value = "properties", required = true) + private IntegrationAccountCertificateProperties innerProperties = new IntegrationAccountCertificateProperties(); - /* - * The changed time. - */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; - - /* - * The metadata. + /** + * Get the innerProperties property: The integration account certificate properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.metadata") - private Object metadata; + private IntegrationAccountCertificateProperties innerProperties() { + return this.innerProperties; + } - /* - * The key details in the key vault. - */ - @JsonProperty(value = "properties.key") - private KeyVaultKeyReference key; + /** {@inheritDoc} */ + @Override + public IntegrationAccountCertificateInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The public certificate. - */ - @JsonProperty(value = "properties.publicCertificate") - private String publicCertificate; + /** {@inheritDoc} */ + @Override + public IntegrationAccountCertificateInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the createdTime property: The created time. @@ -56,7 +53,7 @@ public class IntegrationAccountCertificateInner extends Resource { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -65,7 +62,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -74,7 +71,7 @@ public OffsetDateTime changedTime() { * @return the metadata value. */ public Object metadata() { - return this.metadata; + return this.innerProperties() == null ? null : this.innerProperties().metadata(); } /** @@ -84,7 +81,10 @@ public Object metadata() { * @return the IntegrationAccountCertificateInner object itself. */ public IntegrationAccountCertificateInner withMetadata(Object metadata) { - this.metadata = metadata; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountCertificateProperties(); + } + this.innerProperties().withMetadata(metadata); return this; } @@ -94,7 +94,7 @@ public IntegrationAccountCertificateInner withMetadata(Object metadata) { * @return the key value. */ public KeyVaultKeyReference key() { - return this.key; + return this.innerProperties() == null ? null : this.innerProperties().key(); } /** @@ -104,7 +104,10 @@ public KeyVaultKeyReference key() { * @return the IntegrationAccountCertificateInner object itself. */ public IntegrationAccountCertificateInner withKey(KeyVaultKeyReference key) { - this.key = key; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountCertificateProperties(); + } + this.innerProperties().withKey(key); return this; } @@ -114,7 +117,7 @@ public IntegrationAccountCertificateInner withKey(KeyVaultKeyReference key) { * @return the publicCertificate value. */ public String publicCertificate() { - return this.publicCertificate; + return this.innerProperties() == null ? null : this.innerProperties().publicCertificate(); } /** @@ -124,21 +127,10 @@ public String publicCertificate() { * @return the IntegrationAccountCertificateInner object itself. */ public IntegrationAccountCertificateInner withPublicCertificate(String publicCertificate) { - this.publicCertificate = publicCertificate; - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountCertificateInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountCertificateInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountCertificateProperties(); + } + this.innerProperties().withPublicCertificate(publicCertificate); return this; } @@ -148,8 +140,13 @@ public IntegrationAccountCertificateInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (key() != null) { - key().validate(); + if (innerProperties() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerProperties in model IntegrationAccountCertificateInner")); + } else { + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateProperties.java new file mode 100644 index 000000000000..22226bcff21c --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountCertificateProperties.java @@ -0,0 +1,137 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.KeyVaultKeyReference; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The integration account certificate properties. */ +@Fluent +public final class IntegrationAccountCertificateProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountCertificateProperties.class); + + /* + * The created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * The changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The metadata. + */ + @JsonProperty(value = "metadata") + private Object metadata; + + /* + * The key details in the key vault. + */ + @JsonProperty(value = "key") + private KeyVaultKeyReference key; + + /* + * The public certificate. + */ + @JsonProperty(value = "publicCertificate") + private String publicCertificate; + + /** + * Get the createdTime property: The created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: The changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the metadata property: The metadata. + * + * @return the metadata value. + */ + public Object metadata() { + return this.metadata; + } + + /** + * Set the metadata property: The metadata. + * + * @param metadata the metadata value to set. + * @return the IntegrationAccountCertificateProperties object itself. + */ + public IntegrationAccountCertificateProperties withMetadata(Object metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get the key property: The key details in the key vault. + * + * @return the key value. + */ + public KeyVaultKeyReference key() { + return this.key; + } + + /** + * Set the key property: The key details in the key vault. + * + * @param key the key value to set. + * @return the IntegrationAccountCertificateProperties object itself. + */ + public IntegrationAccountCertificateProperties withKey(KeyVaultKeyReference key) { + this.key = key; + return this; + } + + /** + * Get the publicCertificate property: The public certificate. + * + * @return the publicCertificate value. + */ + public String publicCertificate() { + return this.publicCertificate; + } + + /** + * Set the publicCertificate property: The public certificate. + * + * @param publicCertificate the publicCertificate value to set. + * @return the IntegrationAccountCertificateProperties object itself. + */ + public IntegrationAccountCertificateProperties withPublicCertificate(String publicCertificate) { + this.publicCertificate = publicCertificate; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (key() != null) { + key().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountInner.java index b0ad2cdb2b8b..a46eb22a70ff 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountInner.java @@ -5,38 +5,40 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.IntegrationAccountSku; +import com.azure.resourcemanager.logic.models.ResourceReference; import com.azure.resourcemanager.logic.models.WorkflowState; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The integration account. */ -@JsonFlatten @Fluent -public class IntegrationAccountInner extends Resource { +public final class IntegrationAccountInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountInner.class); /* - * The sku. + * The integration account properties. */ - @JsonProperty(value = "sku") - private IntegrationAccountSku sku; + @JsonProperty(value = "properties") + private IntegrationAccountProperties innerProperties; /* - * The integration service environment. + * The sku. */ - @JsonProperty(value = "properties.integrationServiceEnvironment") - private IntegrationServiceEnvironmentInner integrationServiceEnvironment; + @JsonProperty(value = "sku") + private IntegrationAccountSku sku; - /* - * The workflow state. + /** + * Get the innerProperties property: The integration account properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.state") - private WorkflowState state; + private IntegrationAccountProperties innerProperties() { + return this.innerProperties; + } /** * Get the sku property: The sku. @@ -58,13 +60,27 @@ public IntegrationAccountInner withSku(IntegrationAccountSku sku) { return this; } + /** {@inheritDoc} */ + @Override + public IntegrationAccountInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public IntegrationAccountInner withTags(Map tags) { + super.withTags(tags); + return this; + } + /** * Get the integrationServiceEnvironment property: The integration service environment. * * @return the integrationServiceEnvironment value. */ - public IntegrationServiceEnvironmentInner integrationServiceEnvironment() { - return this.integrationServiceEnvironment; + public ResourceReference integrationServiceEnvironment() { + return this.innerProperties() == null ? null : this.innerProperties().integrationServiceEnvironment(); } /** @@ -73,9 +89,11 @@ public IntegrationServiceEnvironmentInner integrationServiceEnvironment() { * @param integrationServiceEnvironment the integrationServiceEnvironment value to set. * @return the IntegrationAccountInner object itself. */ - public IntegrationAccountInner withIntegrationServiceEnvironment( - IntegrationServiceEnvironmentInner integrationServiceEnvironment) { - this.integrationServiceEnvironment = integrationServiceEnvironment; + public IntegrationAccountInner withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment) { + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountProperties(); + } + this.innerProperties().withIntegrationServiceEnvironment(integrationServiceEnvironment); return this; } @@ -85,7 +103,7 @@ public IntegrationAccountInner withIntegrationServiceEnvironment( * @return the state value. */ public WorkflowState state() { - return this.state; + return this.innerProperties() == null ? null : this.innerProperties().state(); } /** @@ -95,21 +113,10 @@ public WorkflowState state() { * @return the IntegrationAccountInner object itself. */ public IntegrationAccountInner withState(WorkflowState state) { - this.state = state; - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountProperties(); + } + this.innerProperties().withState(state); return this; } @@ -119,11 +126,11 @@ public IntegrationAccountInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } if (sku() != null) { sku().validate(); } - if (integrationServiceEnvironment() != null) { - integrationServiceEnvironment().validate(); - } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapInner.java index 9c57c5d6bf88..37d90cb2707e 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.ContentLink; @@ -17,58 +16,38 @@ import java.util.Map; /** The integration account map. */ -@JsonFlatten @Fluent -public class IntegrationAccountMapInner extends Resource { +public final class IntegrationAccountMapInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountMapInner.class); /* - * The map type. + * The integration account map properties. */ - @JsonProperty(value = "properties.mapType", required = true) - private MapType mapType; + @JsonProperty(value = "properties", required = true) + private IntegrationAccountMapProperties innerProperties = new IntegrationAccountMapProperties(); - /* - * The parameters schema of integration account map. - */ - @JsonProperty(value = "properties.parametersSchema") - private IntegrationAccountMapPropertiesParametersSchema parametersSchema; - - /* - * The created time. - */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; - - /* - * The changed time. - */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; - - /* - * The content. - */ - @JsonProperty(value = "properties.content") - private String content; - - /* - * The content type. + /** + * Get the innerProperties property: The integration account map properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.contentType") - private String contentType; + private IntegrationAccountMapProperties innerProperties() { + return this.innerProperties; + } - /* - * The content link. - */ - @JsonProperty(value = "properties.contentLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink contentLink; + /** {@inheritDoc} */ + @Override + public IntegrationAccountMapInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The metadata. - */ - @JsonProperty(value = "properties.metadata") - private Object metadata; + /** {@inheritDoc} */ + @Override + public IntegrationAccountMapInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the mapType property: The map type. @@ -76,7 +55,7 @@ public class IntegrationAccountMapInner extends Resource { * @return the mapType value. */ public MapType mapType() { - return this.mapType; + return this.innerProperties() == null ? null : this.innerProperties().mapType(); } /** @@ -86,7 +65,10 @@ public MapType mapType() { * @return the IntegrationAccountMapInner object itself. */ public IntegrationAccountMapInner withMapType(MapType mapType) { - this.mapType = mapType; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountMapProperties(); + } + this.innerProperties().withMapType(mapType); return this; } @@ -96,7 +78,7 @@ public IntegrationAccountMapInner withMapType(MapType mapType) { * @return the parametersSchema value. */ public IntegrationAccountMapPropertiesParametersSchema parametersSchema() { - return this.parametersSchema; + return this.innerProperties() == null ? null : this.innerProperties().parametersSchema(); } /** @@ -107,7 +89,10 @@ public IntegrationAccountMapPropertiesParametersSchema parametersSchema() { */ public IntegrationAccountMapInner withParametersSchema( IntegrationAccountMapPropertiesParametersSchema parametersSchema) { - this.parametersSchema = parametersSchema; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountMapProperties(); + } + this.innerProperties().withParametersSchema(parametersSchema); return this; } @@ -117,7 +102,7 @@ public IntegrationAccountMapInner withParametersSchema( * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -126,7 +111,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -135,7 +120,7 @@ public OffsetDateTime changedTime() { * @return the content value. */ public String content() { - return this.content; + return this.innerProperties() == null ? null : this.innerProperties().content(); } /** @@ -145,7 +130,10 @@ public String content() { * @return the IntegrationAccountMapInner object itself. */ public IntegrationAccountMapInner withContent(String content) { - this.content = content; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountMapProperties(); + } + this.innerProperties().withContent(content); return this; } @@ -155,7 +143,7 @@ public IntegrationAccountMapInner withContent(String content) { * @return the contentType value. */ public String contentType() { - return this.contentType; + return this.innerProperties() == null ? null : this.innerProperties().contentType(); } /** @@ -165,7 +153,10 @@ public String contentType() { * @return the IntegrationAccountMapInner object itself. */ public IntegrationAccountMapInner withContentType(String contentType) { - this.contentType = contentType; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountMapProperties(); + } + this.innerProperties().withContentType(contentType); return this; } @@ -175,7 +166,7 @@ public IntegrationAccountMapInner withContentType(String contentType) { * @return the contentLink value. */ public ContentLink contentLink() { - return this.contentLink; + return this.innerProperties() == null ? null : this.innerProperties().contentLink(); } /** @@ -184,7 +175,7 @@ public ContentLink contentLink() { * @return the metadata value. */ public Object metadata() { - return this.metadata; + return this.innerProperties() == null ? null : this.innerProperties().metadata(); } /** @@ -194,21 +185,10 @@ public Object metadata() { * @return the IntegrationAccountMapInner object itself. */ public IntegrationAccountMapInner withMetadata(Object metadata) { - this.metadata = metadata; - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountMapInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountMapInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountMapProperties(); + } + this.innerProperties().withMetadata(metadata); return this; } @@ -218,17 +198,13 @@ public IntegrationAccountMapInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (mapType() == null) { + if (innerProperties() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property mapType in model IntegrationAccountMapInner")); - } - if (parametersSchema() != null) { - parametersSchema().validate(); - } - if (contentLink() != null) { - contentLink().validate(); + "Missing required property innerProperties in model IntegrationAccountMapInner")); + } else { + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapProperties.java new file mode 100644 index 000000000000..339073e05ed7 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountMapProperties.java @@ -0,0 +1,216 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.ContentLink; +import com.azure.resourcemanager.logic.models.IntegrationAccountMapPropertiesParametersSchema; +import com.azure.resourcemanager.logic.models.MapType; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The integration account map. */ +@Fluent +public final class IntegrationAccountMapProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountMapProperties.class); + + /* + * The map type. + */ + @JsonProperty(value = "mapType", required = true) + private MapType mapType; + + /* + * The parameters schema of integration account map. + */ + @JsonProperty(value = "parametersSchema") + private IntegrationAccountMapPropertiesParametersSchema parametersSchema; + + /* + * The created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * The changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The content. + */ + @JsonProperty(value = "content") + private String content; + + /* + * The content type. + */ + @JsonProperty(value = "contentType") + private String contentType; + + /* + * The content link. + */ + @JsonProperty(value = "contentLink", access = JsonProperty.Access.WRITE_ONLY) + private ContentLink contentLink; + + /* + * The metadata. + */ + @JsonProperty(value = "metadata") + private Object metadata; + + /** + * Get the mapType property: The map type. + * + * @return the mapType value. + */ + public MapType mapType() { + return this.mapType; + } + + /** + * Set the mapType property: The map type. + * + * @param mapType the mapType value to set. + * @return the IntegrationAccountMapProperties object itself. + */ + public IntegrationAccountMapProperties withMapType(MapType mapType) { + this.mapType = mapType; + return this; + } + + /** + * Get the parametersSchema property: The parameters schema of integration account map. + * + * @return the parametersSchema value. + */ + public IntegrationAccountMapPropertiesParametersSchema parametersSchema() { + return this.parametersSchema; + } + + /** + * Set the parametersSchema property: The parameters schema of integration account map. + * + * @param parametersSchema the parametersSchema value to set. + * @return the IntegrationAccountMapProperties object itself. + */ + public IntegrationAccountMapProperties withParametersSchema( + IntegrationAccountMapPropertiesParametersSchema parametersSchema) { + this.parametersSchema = parametersSchema; + return this; + } + + /** + * Get the createdTime property: The created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: The changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the content property: The content. + * + * @return the content value. + */ + public String content() { + return this.content; + } + + /** + * Set the content property: The content. + * + * @param content the content value to set. + * @return the IntegrationAccountMapProperties object itself. + */ + public IntegrationAccountMapProperties withContent(String content) { + this.content = content; + return this; + } + + /** + * Get the contentType property: The content type. + * + * @return the contentType value. + */ + public String contentType() { + return this.contentType; + } + + /** + * Set the contentType property: The content type. + * + * @param contentType the contentType value to set. + * @return the IntegrationAccountMapProperties object itself. + */ + public IntegrationAccountMapProperties withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * Get the contentLink property: The content link. + * + * @return the contentLink value. + */ + public ContentLink contentLink() { + return this.contentLink; + } + + /** + * Get the metadata property: The metadata. + * + * @return the metadata value. + */ + public Object metadata() { + return this.metadata; + } + + /** + * Set the metadata property: The metadata. + * + * @param metadata the metadata value to set. + * @return the IntegrationAccountMapProperties object itself. + */ + public IntegrationAccountMapProperties withMetadata(Object metadata) { + this.metadata = metadata; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (mapType() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property mapType in model IntegrationAccountMapProperties")); + } + if (parametersSchema() != null) { + parametersSchema().validate(); + } + if (contentLink() != null) { + contentLink().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerInner.java index 58b64de353ca..310db3eeee58 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.PartnerContent; @@ -16,40 +15,38 @@ import java.util.Map; /** The integration account partner. */ -@JsonFlatten @Fluent -public class IntegrationAccountPartnerInner extends Resource { +public final class IntegrationAccountPartnerInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountPartnerInner.class); /* - * The partner type. + * The integration account partner properties. */ - @JsonProperty(value = "properties.partnerType", required = true) - private PartnerType partnerType; + @JsonProperty(value = "properties", required = true) + private IntegrationAccountPartnerProperties innerProperties = new IntegrationAccountPartnerProperties(); - /* - * The created time. - */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; - - /* - * The changed time. + /** + * Get the innerProperties property: The integration account partner properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; + private IntegrationAccountPartnerProperties innerProperties() { + return this.innerProperties; + } - /* - * The metadata. - */ - @JsonProperty(value = "properties.metadata") - private Object metadata; + /** {@inheritDoc} */ + @Override + public IntegrationAccountPartnerInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The partner content. - */ - @JsonProperty(value = "properties.content", required = true) - private PartnerContent content; + /** {@inheritDoc} */ + @Override + public IntegrationAccountPartnerInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the partnerType property: The partner type. @@ -57,7 +54,7 @@ public class IntegrationAccountPartnerInner extends Resource { * @return the partnerType value. */ public PartnerType partnerType() { - return this.partnerType; + return this.innerProperties() == null ? null : this.innerProperties().partnerType(); } /** @@ -67,7 +64,10 @@ public PartnerType partnerType() { * @return the IntegrationAccountPartnerInner object itself. */ public IntegrationAccountPartnerInner withPartnerType(PartnerType partnerType) { - this.partnerType = partnerType; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountPartnerProperties(); + } + this.innerProperties().withPartnerType(partnerType); return this; } @@ -77,7 +77,7 @@ public IntegrationAccountPartnerInner withPartnerType(PartnerType partnerType) { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -86,7 +86,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -95,7 +95,7 @@ public OffsetDateTime changedTime() { * @return the metadata value. */ public Object metadata() { - return this.metadata; + return this.innerProperties() == null ? null : this.innerProperties().metadata(); } /** @@ -105,7 +105,10 @@ public Object metadata() { * @return the IntegrationAccountPartnerInner object itself. */ public IntegrationAccountPartnerInner withMetadata(Object metadata) { - this.metadata = metadata; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountPartnerProperties(); + } + this.innerProperties().withMetadata(metadata); return this; } @@ -115,7 +118,7 @@ public IntegrationAccountPartnerInner withMetadata(Object metadata) { * @return the content value. */ public PartnerContent content() { - return this.content; + return this.innerProperties() == null ? null : this.innerProperties().content(); } /** @@ -125,21 +128,10 @@ public PartnerContent content() { * @return the IntegrationAccountPartnerInner object itself. */ public IntegrationAccountPartnerInner withContent(PartnerContent content) { - this.content = content; - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountPartnerInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountPartnerInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountPartnerProperties(); + } + this.innerProperties().withContent(content); return this; } @@ -149,19 +141,13 @@ public IntegrationAccountPartnerInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (partnerType() == null) { - throw logger - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property partnerType in model IntegrationAccountPartnerInner")); - } - if (content() == null) { + if (innerProperties() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property content in model IntegrationAccountPartnerInner")); + "Missing required property innerProperties in model IntegrationAccountPartnerInner")); } else { - content().validate(); + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerProperties.java new file mode 100644 index 000000000000..e7eb9a4523c2 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountPartnerProperties.java @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.PartnerContent; +import com.azure.resourcemanager.logic.models.PartnerType; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The integration account partner properties. */ +@Fluent +public final class IntegrationAccountPartnerProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountPartnerProperties.class); + + /* + * The partner type. + */ + @JsonProperty(value = "partnerType", required = true) + private PartnerType partnerType; + + /* + * The created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * The changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The metadata. + */ + @JsonProperty(value = "metadata") + private Object metadata; + + /* + * The partner content. + */ + @JsonProperty(value = "content", required = true) + private PartnerContent content; + + /** + * Get the partnerType property: The partner type. + * + * @return the partnerType value. + */ + public PartnerType partnerType() { + return this.partnerType; + } + + /** + * Set the partnerType property: The partner type. + * + * @param partnerType the partnerType value to set. + * @return the IntegrationAccountPartnerProperties object itself. + */ + public IntegrationAccountPartnerProperties withPartnerType(PartnerType partnerType) { + this.partnerType = partnerType; + return this; + } + + /** + * Get the createdTime property: The created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: The changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the metadata property: The metadata. + * + * @return the metadata value. + */ + public Object metadata() { + return this.metadata; + } + + /** + * Set the metadata property: The metadata. + * + * @param metadata the metadata value to set. + * @return the IntegrationAccountPartnerProperties object itself. + */ + public IntegrationAccountPartnerProperties withMetadata(Object metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get the content property: The partner content. + * + * @return the content value. + */ + public PartnerContent content() { + return this.content; + } + + /** + * Set the content property: The partner content. + * + * @param content the content value to set. + * @return the IntegrationAccountPartnerProperties object itself. + */ + public IntegrationAccountPartnerProperties withContent(PartnerContent content) { + this.content = content; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (partnerType() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property partnerType in model IntegrationAccountPartnerProperties")); + } + if (content() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property content in model IntegrationAccountPartnerProperties")); + } else { + content().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountProperties.java new file mode 100644 index 000000000000..743bc55525e9 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountProperties.java @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowState; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The integration account properties. */ +@Fluent +public final class IntegrationAccountProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountProperties.class); + + /* + * The integration service environment. + */ + @JsonProperty(value = "integrationServiceEnvironment") + private ResourceReference integrationServiceEnvironment; + + /* + * The workflow state. + */ + @JsonProperty(value = "state") + private WorkflowState state; + + /** + * Get the integrationServiceEnvironment property: The integration service environment. + * + * @return the integrationServiceEnvironment value. + */ + public ResourceReference integrationServiceEnvironment() { + return this.integrationServiceEnvironment; + } + + /** + * Set the integrationServiceEnvironment property: The integration service environment. + * + * @param integrationServiceEnvironment the integrationServiceEnvironment value to set. + * @return the IntegrationAccountProperties object itself. + */ + public IntegrationAccountProperties withIntegrationServiceEnvironment( + ResourceReference integrationServiceEnvironment) { + this.integrationServiceEnvironment = integrationServiceEnvironment; + return this; + } + + /** + * Get the state property: The workflow state. + * + * @return the state value. + */ + public WorkflowState state() { + return this.state; + } + + /** + * Set the state property: The workflow state. + * + * @param state the state value to set. + * @return the IntegrationAccountProperties object itself. + */ + public IntegrationAccountProperties withState(WorkflowState state) { + this.state = state; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (integrationServiceEnvironment() != null) { + integrationServiceEnvironment().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaInner.java index bfc95501d80c..10e8c8116087 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.ContentLink; @@ -16,70 +15,38 @@ import java.util.Map; /** The integration account schema. */ -@JsonFlatten @Fluent -public class IntegrationAccountSchemaInner extends Resource { +public final class IntegrationAccountSchemaInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountSchemaInner.class); /* - * The schema type. + * The integration account schema properties. */ - @JsonProperty(value = "properties.schemaType", required = true) - private SchemaType schemaType; + @JsonProperty(value = "properties", required = true) + private IntegrationAccountSchemaProperties innerProperties = new IntegrationAccountSchemaProperties(); - /* - * The target namespace of the schema. - */ - @JsonProperty(value = "properties.targetNamespace") - private String targetNamespace; - - /* - * The document name. - */ - @JsonProperty(value = "properties.documentName") - private String documentName; - - /* - * The file name. - */ - @JsonProperty(value = "properties.fileName") - private String fileName; - - /* - * The created time. - */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; - - /* - * The changed time. - */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; - - /* - * The metadata. - */ - @JsonProperty(value = "properties.metadata") - private Object metadata; - - /* - * The content. + /** + * Get the innerProperties property: The integration account schema properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.content") - private String content; + private IntegrationAccountSchemaProperties innerProperties() { + return this.innerProperties; + } - /* - * The content type. - */ - @JsonProperty(value = "properties.contentType") - private String contentType; + /** {@inheritDoc} */ + @Override + public IntegrationAccountSchemaInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The content link. - */ - @JsonProperty(value = "properties.contentLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink contentLink; + /** {@inheritDoc} */ + @Override + public IntegrationAccountSchemaInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the schemaType property: The schema type. @@ -87,7 +54,7 @@ public class IntegrationAccountSchemaInner extends Resource { * @return the schemaType value. */ public SchemaType schemaType() { - return this.schemaType; + return this.innerProperties() == null ? null : this.innerProperties().schemaType(); } /** @@ -97,7 +64,10 @@ public SchemaType schemaType() { * @return the IntegrationAccountSchemaInner object itself. */ public IntegrationAccountSchemaInner withSchemaType(SchemaType schemaType) { - this.schemaType = schemaType; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSchemaProperties(); + } + this.innerProperties().withSchemaType(schemaType); return this; } @@ -107,7 +77,7 @@ public IntegrationAccountSchemaInner withSchemaType(SchemaType schemaType) { * @return the targetNamespace value. */ public String targetNamespace() { - return this.targetNamespace; + return this.innerProperties() == null ? null : this.innerProperties().targetNamespace(); } /** @@ -117,7 +87,10 @@ public String targetNamespace() { * @return the IntegrationAccountSchemaInner object itself. */ public IntegrationAccountSchemaInner withTargetNamespace(String targetNamespace) { - this.targetNamespace = targetNamespace; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSchemaProperties(); + } + this.innerProperties().withTargetNamespace(targetNamespace); return this; } @@ -127,7 +100,7 @@ public IntegrationAccountSchemaInner withTargetNamespace(String targetNamespace) * @return the documentName value. */ public String documentName() { - return this.documentName; + return this.innerProperties() == null ? null : this.innerProperties().documentName(); } /** @@ -137,7 +110,10 @@ public String documentName() { * @return the IntegrationAccountSchemaInner object itself. */ public IntegrationAccountSchemaInner withDocumentName(String documentName) { - this.documentName = documentName; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSchemaProperties(); + } + this.innerProperties().withDocumentName(documentName); return this; } @@ -147,7 +123,7 @@ public IntegrationAccountSchemaInner withDocumentName(String documentName) { * @return the fileName value. */ public String fileName() { - return this.fileName; + return this.innerProperties() == null ? null : this.innerProperties().fileName(); } /** @@ -157,7 +133,10 @@ public String fileName() { * @return the IntegrationAccountSchemaInner object itself. */ public IntegrationAccountSchemaInner withFileName(String fileName) { - this.fileName = fileName; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSchemaProperties(); + } + this.innerProperties().withFileName(fileName); return this; } @@ -167,7 +146,7 @@ public IntegrationAccountSchemaInner withFileName(String fileName) { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -176,7 +155,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -185,7 +164,7 @@ public OffsetDateTime changedTime() { * @return the metadata value. */ public Object metadata() { - return this.metadata; + return this.innerProperties() == null ? null : this.innerProperties().metadata(); } /** @@ -195,7 +174,10 @@ public Object metadata() { * @return the IntegrationAccountSchemaInner object itself. */ public IntegrationAccountSchemaInner withMetadata(Object metadata) { - this.metadata = metadata; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSchemaProperties(); + } + this.innerProperties().withMetadata(metadata); return this; } @@ -205,7 +187,7 @@ public IntegrationAccountSchemaInner withMetadata(Object metadata) { * @return the content value. */ public String content() { - return this.content; + return this.innerProperties() == null ? null : this.innerProperties().content(); } /** @@ -215,7 +197,10 @@ public String content() { * @return the IntegrationAccountSchemaInner object itself. */ public IntegrationAccountSchemaInner withContent(String content) { - this.content = content; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSchemaProperties(); + } + this.innerProperties().withContent(content); return this; } @@ -225,7 +210,7 @@ public IntegrationAccountSchemaInner withContent(String content) { * @return the contentType value. */ public String contentType() { - return this.contentType; + return this.innerProperties() == null ? null : this.innerProperties().contentType(); } /** @@ -235,7 +220,10 @@ public String contentType() { * @return the IntegrationAccountSchemaInner object itself. */ public IntegrationAccountSchemaInner withContentType(String contentType) { - this.contentType = contentType; + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSchemaProperties(); + } + this.innerProperties().withContentType(contentType); return this; } @@ -245,21 +233,7 @@ public IntegrationAccountSchemaInner withContentType(String contentType) { * @return the contentLink value. */ public ContentLink contentLink() { - return this.contentLink; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountSchemaInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountSchemaInner withTags(Map tags) { - super.withTags(tags); - return this; + return this.innerProperties() == null ? null : this.innerProperties().contentLink(); } /** @@ -268,14 +242,13 @@ public IntegrationAccountSchemaInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (schemaType() == null) { + if (innerProperties() == null) { throw logger .logExceptionAsError( new IllegalArgumentException( - "Missing required property schemaType in model IntegrationAccountSchemaInner")); - } - if (contentLink() != null) { - contentLink().validate(); + "Missing required property innerProperties in model IntegrationAccountSchemaInner")); + } else { + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaProperties.java new file mode 100644 index 000000000000..e2f88abd23eb --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSchemaProperties.java @@ -0,0 +1,263 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.ContentLink; +import com.azure.resourcemanager.logic.models.SchemaType; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The integration account schema properties. */ +@Fluent +public final class IntegrationAccountSchemaProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountSchemaProperties.class); + + /* + * The schema type. + */ + @JsonProperty(value = "schemaType", required = true) + private SchemaType schemaType; + + /* + * The target namespace of the schema. + */ + @JsonProperty(value = "targetNamespace") + private String targetNamespace; + + /* + * The document name. + */ + @JsonProperty(value = "documentName") + private String documentName; + + /* + * The file name. + */ + @JsonProperty(value = "fileName") + private String fileName; + + /* + * The created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * The changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The metadata. + */ + @JsonProperty(value = "metadata") + private Object metadata; + + /* + * The content. + */ + @JsonProperty(value = "content") + private String content; + + /* + * The content type. + */ + @JsonProperty(value = "contentType") + private String contentType; + + /* + * The content link. + */ + @JsonProperty(value = "contentLink", access = JsonProperty.Access.WRITE_ONLY) + private ContentLink contentLink; + + /** + * Get the schemaType property: The schema type. + * + * @return the schemaType value. + */ + public SchemaType schemaType() { + return this.schemaType; + } + + /** + * Set the schemaType property: The schema type. + * + * @param schemaType the schemaType value to set. + * @return the IntegrationAccountSchemaProperties object itself. + */ + public IntegrationAccountSchemaProperties withSchemaType(SchemaType schemaType) { + this.schemaType = schemaType; + return this; + } + + /** + * Get the targetNamespace property: The target namespace of the schema. + * + * @return the targetNamespace value. + */ + public String targetNamespace() { + return this.targetNamespace; + } + + /** + * Set the targetNamespace property: The target namespace of the schema. + * + * @param targetNamespace the targetNamespace value to set. + * @return the IntegrationAccountSchemaProperties object itself. + */ + public IntegrationAccountSchemaProperties withTargetNamespace(String targetNamespace) { + this.targetNamespace = targetNamespace; + return this; + } + + /** + * Get the documentName property: The document name. + * + * @return the documentName value. + */ + public String documentName() { + return this.documentName; + } + + /** + * Set the documentName property: The document name. + * + * @param documentName the documentName value to set. + * @return the IntegrationAccountSchemaProperties object itself. + */ + public IntegrationAccountSchemaProperties withDocumentName(String documentName) { + this.documentName = documentName; + return this; + } + + /** + * Get the fileName property: The file name. + * + * @return the fileName value. + */ + public String fileName() { + return this.fileName; + } + + /** + * Set the fileName property: The file name. + * + * @param fileName the fileName value to set. + * @return the IntegrationAccountSchemaProperties object itself. + */ + public IntegrationAccountSchemaProperties withFileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * Get the createdTime property: The created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: The changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the metadata property: The metadata. + * + * @return the metadata value. + */ + public Object metadata() { + return this.metadata; + } + + /** + * Set the metadata property: The metadata. + * + * @param metadata the metadata value to set. + * @return the IntegrationAccountSchemaProperties object itself. + */ + public IntegrationAccountSchemaProperties withMetadata(Object metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get the content property: The content. + * + * @return the content value. + */ + public String content() { + return this.content; + } + + /** + * Set the content property: The content. + * + * @param content the content value to set. + * @return the IntegrationAccountSchemaProperties object itself. + */ + public IntegrationAccountSchemaProperties withContent(String content) { + this.content = content; + return this; + } + + /** + * Get the contentType property: The content type. + * + * @return the contentType value. + */ + public String contentType() { + return this.contentType; + } + + /** + * Set the contentType property: The content type. + * + * @param contentType the contentType value to set. + * @return the IntegrationAccountSchemaProperties object itself. + */ + public IntegrationAccountSchemaProperties withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * Get the contentLink property: The content link. + * + * @return the contentLink value. + */ + public ContentLink contentLink() { + return this.contentLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (schemaType() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property schemaType in model IntegrationAccountSchemaProperties")); + } + if (contentLink() != null) { + contentLink().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionInner.java index 4d89faa530cc..8c108d27e3f4 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -14,28 +13,38 @@ import java.util.Map; /** The integration account session. */ -@JsonFlatten @Fluent -public class IntegrationAccountSessionInner extends Resource { +public final class IntegrationAccountSessionInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountSessionInner.class); /* - * The created time. + * The integration account session properties. */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; + @JsonProperty(value = "properties", required = true) + private IntegrationAccountSessionProperties innerProperties = new IntegrationAccountSessionProperties(); - /* - * The changed time. + /** + * Get the innerProperties property: The integration account session properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; + private IntegrationAccountSessionProperties innerProperties() { + return this.innerProperties; + } - /* - * The session content. - */ - @JsonProperty(value = "properties.content") - private Object content; + /** {@inheritDoc} */ + @Override + public IntegrationAccountSessionInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public IntegrationAccountSessionInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the createdTime property: The created time. @@ -43,7 +52,7 @@ public class IntegrationAccountSessionInner extends Resource { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -52,7 +61,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -61,7 +70,7 @@ public OffsetDateTime changedTime() { * @return the content value. */ public Object content() { - return this.content; + return this.innerProperties() == null ? null : this.innerProperties().content(); } /** @@ -71,21 +80,10 @@ public Object content() { * @return the IntegrationAccountSessionInner object itself. */ public IntegrationAccountSessionInner withContent(Object content) { - this.content = content; - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountSessionInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public IntegrationAccountSessionInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationAccountSessionProperties(); + } + this.innerProperties().withContent(content); return this; } @@ -95,5 +93,13 @@ public IntegrationAccountSessionInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (innerProperties() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerProperties in model IntegrationAccountSessionInner")); + } else { + innerProperties().validate(); + } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionProperties.java new file mode 100644 index 000000000000..50b7a56564a6 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationAccountSessionProperties.java @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The integration account session properties. */ +@Fluent +public final class IntegrationAccountSessionProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(IntegrationAccountSessionProperties.class); + + /* + * The created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * The changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The session content. + */ + @JsonProperty(value = "content") + private Object content; + + /** + * Get the createdTime property: The created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: The changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the content property: The session content. + * + * @return the content value. + */ + public Object content() { + return this.content; + } + + /** + * Set the content property: The session content. + * + * @param content the content value to set. + * @return the IntegrationAccountSessionProperties object itself. + */ + public IntegrationAccountSessionProperties withContent(Object content) { + this.content = content; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentInner.java index e993be37c0fa..8e93148756c6 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentInner.java @@ -9,6 +9,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentProperties; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSku; +import com.azure.resourcemanager.logic.models.ManagedServiceIdentity; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -30,6 +31,12 @@ public final class IntegrationServiceEnvironmentInner extends Resource { @JsonProperty(value = "sku") private IntegrationServiceEnvironmentSku sku; + /* + * Managed service identity properties. + */ + @JsonProperty(value = "identity") + private ManagedServiceIdentity identity; + /** * Get the properties property: The integration service environment properties. * @@ -70,6 +77,26 @@ public IntegrationServiceEnvironmentInner withSku(IntegrationServiceEnvironmentS return this; } + /** + * Get the identity property: Managed service identity properties. + * + * @return the identity value. + */ + public ManagedServiceIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: Managed service identity properties. + * + * @param identity the identity value to set. + * @return the IntegrationServiceEnvironmentInner object itself. + */ + public IntegrationServiceEnvironmentInner withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; + return this; + } + /** {@inheritDoc} */ @Override public IntegrationServiceEnvironmentInner withLocation(String location) { @@ -96,5 +123,8 @@ public void validate() { if (sku() != null) { sku().validate(); } + if (identity() != null) { + identity().validate(); + } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiInner.java new file mode 100644 index 000000000000..3956a07b66d6 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiInner.java @@ -0,0 +1,225 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.ApiResourceBackendService; +import com.azure.resourcemanager.logic.models.ApiResourceDefinitions; +import com.azure.resourcemanager.logic.models.ApiResourceGeneralInformation; +import com.azure.resourcemanager.logic.models.ApiResourceMetadata; +import com.azure.resourcemanager.logic.models.ApiResourcePolicies; +import com.azure.resourcemanager.logic.models.ApiTier; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApiDeploymentParameters; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowProvisioningState; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import java.util.Map; + +/** The integration service environment managed api. */ +@Fluent +public final class IntegrationServiceEnvironmentManagedApiInner extends Resource { + @JsonIgnore + private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentManagedApiInner.class); + + /* + * The integration service environment managed api properties. + */ + @JsonProperty(value = "properties") + private IntegrationServiceEnvironmentManagedApiProperties innerProperties; + + /** + * Get the innerProperties property: The integration service environment managed api properties. + * + * @return the innerProperties value. + */ + private IntegrationServiceEnvironmentManagedApiProperties innerProperties() { + return this.innerProperties; + } + + /** {@inheritDoc} */ + @Override + public IntegrationServiceEnvironmentManagedApiInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public IntegrationServiceEnvironmentManagedApiInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Get the deploymentParameters property: The integration service environment managed api deployment parameters. + * + * @return the deploymentParameters value. + */ + public IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters() { + return this.innerProperties() == null ? null : this.innerProperties().deploymentParameters(); + } + + /** + * Set the deploymentParameters property: The integration service environment managed api deployment parameters. + * + * @param deploymentParameters the deploymentParameters value to set. + * @return the IntegrationServiceEnvironmentManagedApiInner object itself. + */ + public IntegrationServiceEnvironmentManagedApiInner withDeploymentParameters( + IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters) { + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationServiceEnvironmentManagedApiProperties(); + } + this.innerProperties().withDeploymentParameters(deploymentParameters); + return this; + } + + /** + * Get the name property: The name. + * + * @return the name value. + */ + public String namePropertiesName() { + return this.innerProperties() == null ? null : this.innerProperties().name(); + } + + /** + * Get the connectionParameters property: The connection parameters. + * + * @return the connectionParameters value. + */ + public Map connectionParameters() { + return this.innerProperties() == null ? null : this.innerProperties().connectionParameters(); + } + + /** + * Get the metadata property: The metadata. + * + * @return the metadata value. + */ + public ApiResourceMetadata metadata() { + return this.innerProperties() == null ? null : this.innerProperties().metadata(); + } + + /** + * Get the runtimeUrls property: The runtime urls. + * + * @return the runtimeUrls value. + */ + public List runtimeUrls() { + return this.innerProperties() == null ? null : this.innerProperties().runtimeUrls(); + } + + /** + * Get the generalInformation property: The api general information. + * + * @return the generalInformation value. + */ + public ApiResourceGeneralInformation generalInformation() { + return this.innerProperties() == null ? null : this.innerProperties().generalInformation(); + } + + /** + * Get the capabilities property: The capabilities. + * + * @return the capabilities value. + */ + public List capabilities() { + return this.innerProperties() == null ? null : this.innerProperties().capabilities(); + } + + /** + * Get the backendService property: The backend service. + * + * @return the backendService value. + */ + public ApiResourceBackendService backendService() { + return this.innerProperties() == null ? null : this.innerProperties().backendService(); + } + + /** + * Get the policies property: The policies for the API. + * + * @return the policies value. + */ + public ApiResourcePolicies policies() { + return this.innerProperties() == null ? null : this.innerProperties().policies(); + } + + /** + * Get the apiDefinitionUrl property: The API definition. + * + * @return the apiDefinitionUrl value. + */ + public String apiDefinitionUrl() { + return this.innerProperties() == null ? null : this.innerProperties().apiDefinitionUrl(); + } + + /** + * Get the apiDefinitions property: The api definitions. + * + * @return the apiDefinitions value. + */ + public ApiResourceDefinitions apiDefinitions() { + return this.innerProperties() == null ? null : this.innerProperties().apiDefinitions(); + } + + /** + * Get the integrationServiceEnvironment property: The integration service environment reference. + * + * @return the integrationServiceEnvironment value. + */ + public ResourceReference integrationServiceEnvironment() { + return this.innerProperties() == null ? null : this.innerProperties().integrationServiceEnvironment(); + } + + /** + * Set the integrationServiceEnvironment property: The integration service environment reference. + * + * @param integrationServiceEnvironment the integrationServiceEnvironment value to set. + * @return the IntegrationServiceEnvironmentManagedApiInner object itself. + */ + public IntegrationServiceEnvironmentManagedApiInner withIntegrationServiceEnvironment( + ResourceReference integrationServiceEnvironment) { + if (this.innerProperties() == null) { + this.innerProperties = new IntegrationServiceEnvironmentManagedApiProperties(); + } + this.innerProperties().withIntegrationServiceEnvironment(integrationServiceEnvironment); + return this; + } + + /** + * Get the provisioningState property: The provisioning state. + * + * @return the provisioningState value. + */ + public WorkflowProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the category property: The category. + * + * @return the category value. + */ + public ApiTier category() { + return this.innerProperties() == null ? null : this.innerProperties().category(); + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiProperties.java new file mode 100644 index 000000000000..8bbc71ce6e62 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiProperties.java @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.ApiResourceProperties; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApiDeploymentParameters; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The integration service environment managed api properties. */ +@Fluent +public final class IntegrationServiceEnvironmentManagedApiProperties extends ApiResourceProperties { + @JsonIgnore + private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentManagedApiProperties.class); + + /* + * The integration service environment managed api deployment parameters. + */ + @JsonProperty(value = "deploymentParameters") + private IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters; + + /** + * Get the deploymentParameters property: The integration service environment managed api deployment parameters. + * + * @return the deploymentParameters value. + */ + public IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters() { + return this.deploymentParameters; + } + + /** + * Set the deploymentParameters property: The integration service environment managed api deployment parameters. + * + * @param deploymentParameters the deploymentParameters value to set. + * @return the IntegrationServiceEnvironmentManagedApiProperties object itself. + */ + public IntegrationServiceEnvironmentManagedApiProperties withDeploymentParameters( + IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters) { + this.deploymentParameters = deploymentParameters; + return this; + } + + /** {@inheritDoc} */ + @Override + public IntegrationServiceEnvironmentManagedApiProperties withIntegrationServiceEnvironment( + ResourceReference integrationServiceEnvironment) { + super.withIntegrationServiceEnvironment(integrationServiceEnvironment); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + if (deploymentParameters() != null) { + deploymentParameters().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/ManagedApiInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/ManagedApiInner.java deleted file mode 100644 index a42e762bd786..000000000000 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/ManagedApiInner.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.logic.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.logic.models.ApiResourceProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; - -/** The managed api definition. */ -@Fluent -public final class ManagedApiInner extends Resource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedApiInner.class); - - /* - * The api resource properties. - */ - @JsonProperty(value = "properties") - private ApiResourceProperties properties; - - /** - * Get the properties property: The api resource properties. - * - * @return the properties value. - */ - public ApiResourceProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The api resource properties. - * - * @param properties the properties value to set. - * @return the ManagedApiInner object itself. - */ - public ManagedApiInner withProperties(ApiResourceProperties properties) { - this.properties = properties; - return this; - } - - /** {@inheritDoc} */ - @Override - public ManagedApiInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public ManagedApiInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } -} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowInner.java index 699a05ca0b98..d77f43bbc00c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowInner.java @@ -5,11 +5,11 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.FlowAccessControlConfiguration; import com.azure.resourcemanager.logic.models.FlowEndpointsConfiguration; +import com.azure.resourcemanager.logic.models.ManagedServiceIdentity; import com.azure.resourcemanager.logic.models.ResourceReference; import com.azure.resourcemanager.logic.models.Sku; import com.azure.resourcemanager.logic.models.WorkflowParameter; @@ -21,88 +21,64 @@ import java.util.Map; /** The workflow type. */ -@JsonFlatten @Fluent -public class WorkflowInner extends Resource { +public final class WorkflowInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowInner.class); /* - * Gets the provisioning state. + * The workflow properties. */ - @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowProvisioningState provisioningState; + @JsonProperty(value = "properties") + private WorkflowProperties innerProperties; /* - * Gets the created time. + * Managed service identity properties. */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; + @JsonProperty(value = "identity") + private ManagedServiceIdentity identity; - /* - * Gets the changed time. - */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; - - /* - * The state. - */ - @JsonProperty(value = "properties.state") - private WorkflowState state; - - /* - * Gets the version. - */ - @JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY) - private String version; - - /* - * Gets the access endpoint. - */ - @JsonProperty(value = "properties.accessEndpoint", access = JsonProperty.Access.WRITE_ONLY) - private String accessEndpoint; - - /* - * The endpoints configuration. - */ - @JsonProperty(value = "properties.endpointsConfiguration") - private FlowEndpointsConfiguration endpointsConfiguration; - - /* - * The access control configuration. - */ - @JsonProperty(value = "properties.accessControl") - private FlowAccessControlConfiguration accessControl; - - /* - * The sku. + /** + * Get the innerProperties property: The workflow properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.sku", access = JsonProperty.Access.WRITE_ONLY) - private Sku sku; + private WorkflowProperties innerProperties() { + return this.innerProperties; + } - /* - * The integration account. + /** + * Get the identity property: Managed service identity properties. + * + * @return the identity value. */ - @JsonProperty(value = "properties.integrationAccount") - private ResourceReference integrationAccount; + public ManagedServiceIdentity identity() { + return this.identity; + } - /* - * The integration service environment. + /** + * Set the identity property: Managed service identity properties. + * + * @param identity the identity value to set. + * @return the WorkflowInner object itself. */ - @JsonProperty(value = "properties.integrationServiceEnvironment") - private ResourceReference integrationServiceEnvironment; + public WorkflowInner withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; + return this; + } - /* - * The definition. - */ - @JsonProperty(value = "properties.definition") - private Object definition; + /** {@inheritDoc} */ + @Override + public WorkflowInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The parameters. - */ - @JsonProperty(value = "properties.parameters") - private Map parameters; + /** {@inheritDoc} */ + @Override + public WorkflowInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the provisioningState property: Gets the provisioning state. @@ -110,7 +86,7 @@ public class WorkflowInner extends Resource { * @return the provisioningState value. */ public WorkflowProvisioningState provisioningState() { - return this.provisioningState; + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } /** @@ -119,7 +95,7 @@ public WorkflowProvisioningState provisioningState() { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -128,7 +104,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -137,7 +113,7 @@ public OffsetDateTime changedTime() { * @return the state value. */ public WorkflowState state() { - return this.state; + return this.innerProperties() == null ? null : this.innerProperties().state(); } /** @@ -147,7 +123,10 @@ public WorkflowState state() { * @return the WorkflowInner object itself. */ public WorkflowInner withState(WorkflowState state) { - this.state = state; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowProperties(); + } + this.innerProperties().withState(state); return this; } @@ -157,7 +136,7 @@ public WorkflowInner withState(WorkflowState state) { * @return the version value. */ public String version() { - return this.version; + return this.innerProperties() == null ? null : this.innerProperties().version(); } /** @@ -166,7 +145,7 @@ public String version() { * @return the accessEndpoint value. */ public String accessEndpoint() { - return this.accessEndpoint; + return this.innerProperties() == null ? null : this.innerProperties().accessEndpoint(); } /** @@ -175,7 +154,7 @@ public String accessEndpoint() { * @return the endpointsConfiguration value. */ public FlowEndpointsConfiguration endpointsConfiguration() { - return this.endpointsConfiguration; + return this.innerProperties() == null ? null : this.innerProperties().endpointsConfiguration(); } /** @@ -185,7 +164,10 @@ public FlowEndpointsConfiguration endpointsConfiguration() { * @return the WorkflowInner object itself. */ public WorkflowInner withEndpointsConfiguration(FlowEndpointsConfiguration endpointsConfiguration) { - this.endpointsConfiguration = endpointsConfiguration; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowProperties(); + } + this.innerProperties().withEndpointsConfiguration(endpointsConfiguration); return this; } @@ -195,7 +177,7 @@ public WorkflowInner withEndpointsConfiguration(FlowEndpointsConfiguration endpo * @return the accessControl value. */ public FlowAccessControlConfiguration accessControl() { - return this.accessControl; + return this.innerProperties() == null ? null : this.innerProperties().accessControl(); } /** @@ -205,7 +187,10 @@ public FlowAccessControlConfiguration accessControl() { * @return the WorkflowInner object itself. */ public WorkflowInner withAccessControl(FlowAccessControlConfiguration accessControl) { - this.accessControl = accessControl; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowProperties(); + } + this.innerProperties().withAccessControl(accessControl); return this; } @@ -215,7 +200,7 @@ public WorkflowInner withAccessControl(FlowAccessControlConfiguration accessCont * @return the sku value. */ public Sku sku() { - return this.sku; + return this.innerProperties() == null ? null : this.innerProperties().sku(); } /** @@ -224,7 +209,7 @@ public Sku sku() { * @return the integrationAccount value. */ public ResourceReference integrationAccount() { - return this.integrationAccount; + return this.innerProperties() == null ? null : this.innerProperties().integrationAccount(); } /** @@ -234,7 +219,10 @@ public ResourceReference integrationAccount() { * @return the WorkflowInner object itself. */ public WorkflowInner withIntegrationAccount(ResourceReference integrationAccount) { - this.integrationAccount = integrationAccount; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowProperties(); + } + this.innerProperties().withIntegrationAccount(integrationAccount); return this; } @@ -244,7 +232,7 @@ public WorkflowInner withIntegrationAccount(ResourceReference integrationAccount * @return the integrationServiceEnvironment value. */ public ResourceReference integrationServiceEnvironment() { - return this.integrationServiceEnvironment; + return this.innerProperties() == null ? null : this.innerProperties().integrationServiceEnvironment(); } /** @@ -254,7 +242,10 @@ public ResourceReference integrationServiceEnvironment() { * @return the WorkflowInner object itself. */ public WorkflowInner withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment) { - this.integrationServiceEnvironment = integrationServiceEnvironment; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowProperties(); + } + this.innerProperties().withIntegrationServiceEnvironment(integrationServiceEnvironment); return this; } @@ -264,7 +255,7 @@ public WorkflowInner withIntegrationServiceEnvironment(ResourceReference integra * @return the definition value. */ public Object definition() { - return this.definition; + return this.innerProperties() == null ? null : this.innerProperties().definition(); } /** @@ -274,7 +265,10 @@ public Object definition() { * @return the WorkflowInner object itself. */ public WorkflowInner withDefinition(Object definition) { - this.definition = definition; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowProperties(); + } + this.innerProperties().withDefinition(definition); return this; } @@ -284,7 +278,7 @@ public WorkflowInner withDefinition(Object definition) { * @return the parameters value. */ public Map parameters() { - return this.parameters; + return this.innerProperties() == null ? null : this.innerProperties().parameters(); } /** @@ -294,21 +288,10 @@ public Map parameters() { * @return the WorkflowInner object itself. */ public WorkflowInner withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** {@inheritDoc} */ - @Override - public WorkflowInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public WorkflowInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowProperties(); + } + this.innerProperties().withParameters(parameters); return this; } @@ -318,30 +301,11 @@ public WorkflowInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (endpointsConfiguration() != null) { - endpointsConfiguration().validate(); - } - if (accessControl() != null) { - accessControl().validate(); - } - if (sku() != null) { - sku().validate(); - } - if (integrationAccount() != null) { - integrationAccount().validate(); - } - if (integrationServiceEnvironment() != null) { - integrationServiceEnvironment().validate(); + if (innerProperties() != null) { + innerProperties().validate(); } - if (parameters() != null) { - parameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); + if (identity() != null) { + identity().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowProperties.java new file mode 100644 index 000000000000..eb59c3dc4789 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowProperties.java @@ -0,0 +1,332 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.FlowAccessControlConfiguration; +import com.azure.resourcemanager.logic.models.FlowEndpointsConfiguration; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.Sku; +import com.azure.resourcemanager.logic.models.WorkflowParameter; +import com.azure.resourcemanager.logic.models.WorkflowProvisioningState; +import com.azure.resourcemanager.logic.models.WorkflowState; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** The workflow properties. */ +@Fluent +public final class WorkflowProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowProperties.class); + + /* + * Gets the provisioning state. + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowProvisioningState provisioningState; + + /* + * Gets the created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * Gets the changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The state. + */ + @JsonProperty(value = "state") + private WorkflowState state; + + /* + * Gets the version. + */ + @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY) + private String version; + + /* + * Gets the access endpoint. + */ + @JsonProperty(value = "accessEndpoint", access = JsonProperty.Access.WRITE_ONLY) + private String accessEndpoint; + + /* + * The endpoints configuration. + */ + @JsonProperty(value = "endpointsConfiguration") + private FlowEndpointsConfiguration endpointsConfiguration; + + /* + * The access control configuration. + */ + @JsonProperty(value = "accessControl") + private FlowAccessControlConfiguration accessControl; + + /* + * The sku. + */ + @JsonProperty(value = "sku", access = JsonProperty.Access.WRITE_ONLY) + private Sku sku; + + /* + * The integration account. + */ + @JsonProperty(value = "integrationAccount") + private ResourceReference integrationAccount; + + /* + * The integration service environment. + */ + @JsonProperty(value = "integrationServiceEnvironment") + private ResourceReference integrationServiceEnvironment; + + /* + * The definition. + */ + @JsonProperty(value = "definition") + private Object definition; + + /* + * The parameters. + */ + @JsonProperty(value = "parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map parameters; + + /** + * Get the provisioningState property: Gets the provisioning state. + * + * @return the provisioningState value. + */ + public WorkflowProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the createdTime property: Gets the created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: Gets the changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the state property: The state. + * + * @return the state value. + */ + public WorkflowState state() { + return this.state; + } + + /** + * Set the state property: The state. + * + * @param state the state value to set. + * @return the WorkflowProperties object itself. + */ + public WorkflowProperties withState(WorkflowState state) { + this.state = state; + return this; + } + + /** + * Get the version property: Gets the version. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * Get the accessEndpoint property: Gets the access endpoint. + * + * @return the accessEndpoint value. + */ + public String accessEndpoint() { + return this.accessEndpoint; + } + + /** + * Get the endpointsConfiguration property: The endpoints configuration. + * + * @return the endpointsConfiguration value. + */ + public FlowEndpointsConfiguration endpointsConfiguration() { + return this.endpointsConfiguration; + } + + /** + * Set the endpointsConfiguration property: The endpoints configuration. + * + * @param endpointsConfiguration the endpointsConfiguration value to set. + * @return the WorkflowProperties object itself. + */ + public WorkflowProperties withEndpointsConfiguration(FlowEndpointsConfiguration endpointsConfiguration) { + this.endpointsConfiguration = endpointsConfiguration; + return this; + } + + /** + * Get the accessControl property: The access control configuration. + * + * @return the accessControl value. + */ + public FlowAccessControlConfiguration accessControl() { + return this.accessControl; + } + + /** + * Set the accessControl property: The access control configuration. + * + * @param accessControl the accessControl value to set. + * @return the WorkflowProperties object itself. + */ + public WorkflowProperties withAccessControl(FlowAccessControlConfiguration accessControl) { + this.accessControl = accessControl; + return this; + } + + /** + * Get the sku property: The sku. + * + * @return the sku value. + */ + public Sku sku() { + return this.sku; + } + + /** + * Get the integrationAccount property: The integration account. + * + * @return the integrationAccount value. + */ + public ResourceReference integrationAccount() { + return this.integrationAccount; + } + + /** + * Set the integrationAccount property: The integration account. + * + * @param integrationAccount the integrationAccount value to set. + * @return the WorkflowProperties object itself. + */ + public WorkflowProperties withIntegrationAccount(ResourceReference integrationAccount) { + this.integrationAccount = integrationAccount; + return this; + } + + /** + * Get the integrationServiceEnvironment property: The integration service environment. + * + * @return the integrationServiceEnvironment value. + */ + public ResourceReference integrationServiceEnvironment() { + return this.integrationServiceEnvironment; + } + + /** + * Set the integrationServiceEnvironment property: The integration service environment. + * + * @param integrationServiceEnvironment the integrationServiceEnvironment value to set. + * @return the WorkflowProperties object itself. + */ + public WorkflowProperties withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment) { + this.integrationServiceEnvironment = integrationServiceEnvironment; + return this; + } + + /** + * Get the definition property: The definition. + * + * @return the definition value. + */ + public Object definition() { + return this.definition; + } + + /** + * Set the definition property: The definition. + * + * @param definition the definition value to set. + * @return the WorkflowProperties object itself. + */ + public WorkflowProperties withDefinition(Object definition) { + this.definition = definition; + return this; + } + + /** + * Get the parameters property: The parameters. + * + * @return the parameters value. + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set the parameters property: The parameters. + * + * @param parameters the parameters value to set. + * @return the WorkflowProperties object itself. + */ + public WorkflowProperties withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (endpointsConfiguration() != null) { + endpointsConfiguration().validate(); + } + if (accessControl() != null) { + accessControl().validate(); + } + if (sku() != null) { + sku().validate(); + } + if (integrationAccount() != null) { + integrationAccount().validate(); + } + if (integrationServiceEnvironment() != null) { + integrationServiceEnvironment().validate(); + } + if (parameters() != null) { + parameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionInner.java index d869a2b7dc99..baafb3d90284 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.ContentLink; @@ -18,11 +17,16 @@ import java.util.List; /** The workflow run action. */ -@JsonFlatten @Fluent -public class WorkflowRunActionInner extends SubResource { +public final class WorkflowRunActionInner extends SubResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunActionInner.class); + /* + * The workflow run action properties. + */ + @JsonProperty(value = "properties") + private WorkflowRunActionProperties innerProperties; + /* * Gets the workflow run action name. */ @@ -35,71 +39,14 @@ public class WorkflowRunActionInner extends SubResource { @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; - /* - * Gets the start time. - */ - @JsonProperty(value = "properties.startTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime startTime; - - /* - * Gets the end time. - */ - @JsonProperty(value = "properties.endTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime endTime; - - /* - * Gets the status. - */ - @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowStatus status; - - /* - * Gets the code. - */ - @JsonProperty(value = "properties.code", access = JsonProperty.Access.WRITE_ONLY) - private String code; - - /* - * Gets the error. - */ - @JsonProperty(value = "properties.error", access = JsonProperty.Access.WRITE_ONLY) - private Object error; - - /* - * Gets the tracking id. - */ - @JsonProperty(value = "properties.trackingId", access = JsonProperty.Access.WRITE_ONLY) - private String trackingId; - - /* - * The correlation properties. - */ - @JsonProperty(value = "properties.correlation") - private RunActionCorrelation correlation; - - /* - * Gets the link to inputs. - */ - @JsonProperty(value = "properties.inputsLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink inputsLink; - - /* - * Gets the link to outputs. - */ - @JsonProperty(value = "properties.outputsLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink outputsLink; - - /* - * Gets the tracked properties. - */ - @JsonProperty(value = "properties.trackedProperties", access = JsonProperty.Access.WRITE_ONLY) - private Object trackedProperties; - - /* - * Gets the retry histories. + /** + * Get the innerProperties property: The workflow run action properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.retryHistory") - private List retryHistory; + private WorkflowRunActionProperties innerProperties() { + return this.innerProperties; + } /** * Get the name property: Gets the workflow run action name. @@ -119,13 +66,20 @@ public String type() { return this.type; } + /** {@inheritDoc} */ + @Override + public WorkflowRunActionInner withId(String id) { + super.withId(id); + return this; + } + /** * Get the startTime property: Gets the start time. * * @return the startTime value. */ public OffsetDateTime startTime() { - return this.startTime; + return this.innerProperties() == null ? null : this.innerProperties().startTime(); } /** @@ -134,7 +88,7 @@ public OffsetDateTime startTime() { * @return the endTime value. */ public OffsetDateTime endTime() { - return this.endTime; + return this.innerProperties() == null ? null : this.innerProperties().endTime(); } /** @@ -143,7 +97,7 @@ public OffsetDateTime endTime() { * @return the status value. */ public WorkflowStatus status() { - return this.status; + return this.innerProperties() == null ? null : this.innerProperties().status(); } /** @@ -152,7 +106,7 @@ public WorkflowStatus status() { * @return the code value. */ public String code() { - return this.code; + return this.innerProperties() == null ? null : this.innerProperties().code(); } /** @@ -161,7 +115,7 @@ public String code() { * @return the error value. */ public Object error() { - return this.error; + return this.innerProperties() == null ? null : this.innerProperties().error(); } /** @@ -170,7 +124,7 @@ public Object error() { * @return the trackingId value. */ public String trackingId() { - return this.trackingId; + return this.innerProperties() == null ? null : this.innerProperties().trackingId(); } /** @@ -179,7 +133,7 @@ public String trackingId() { * @return the correlation value. */ public RunActionCorrelation correlation() { - return this.correlation; + return this.innerProperties() == null ? null : this.innerProperties().correlation(); } /** @@ -189,7 +143,10 @@ public RunActionCorrelation correlation() { * @return the WorkflowRunActionInner object itself. */ public WorkflowRunActionInner withCorrelation(RunActionCorrelation correlation) { - this.correlation = correlation; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionProperties(); + } + this.innerProperties().withCorrelation(correlation); return this; } @@ -199,7 +156,7 @@ public WorkflowRunActionInner withCorrelation(RunActionCorrelation correlation) * @return the inputsLink value. */ public ContentLink inputsLink() { - return this.inputsLink; + return this.innerProperties() == null ? null : this.innerProperties().inputsLink(); } /** @@ -208,7 +165,7 @@ public ContentLink inputsLink() { * @return the outputsLink value. */ public ContentLink outputsLink() { - return this.outputsLink; + return this.innerProperties() == null ? null : this.innerProperties().outputsLink(); } /** @@ -217,7 +174,7 @@ public ContentLink outputsLink() { * @return the trackedProperties value. */ public Object trackedProperties() { - return this.trackedProperties; + return this.innerProperties() == null ? null : this.innerProperties().trackedProperties(); } /** @@ -226,7 +183,7 @@ public Object trackedProperties() { * @return the retryHistory value. */ public List retryHistory() { - return this.retryHistory; + return this.innerProperties() == null ? null : this.innerProperties().retryHistory(); } /** @@ -236,14 +193,10 @@ public List retryHistory() { * @return the WorkflowRunActionInner object itself. */ public WorkflowRunActionInner withRetryHistory(List retryHistory) { - this.retryHistory = retryHistory; - return this; - } - - /** {@inheritDoc} */ - @Override - public WorkflowRunActionInner withId(String id) { - super.withId(id); + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionProperties(); + } + this.innerProperties().withRetryHistory(retryHistory); return this; } @@ -253,17 +206,8 @@ public WorkflowRunActionInner withId(String id) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (correlation() != null) { - correlation().validate(); - } - if (inputsLink() != null) { - inputsLink().validate(); - } - if (outputsLink() != null) { - outputsLink().validate(); - } - if (retryHistory() != null) { - retryHistory().forEach(e -> e.validate()); + if (innerProperties() != null) { + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionProperties.java new file mode 100644 index 000000000000..117ddd4b4f8f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionProperties.java @@ -0,0 +1,229 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.ContentLink; +import com.azure.resourcemanager.logic.models.RetryHistory; +import com.azure.resourcemanager.logic.models.RunActionCorrelation; +import com.azure.resourcemanager.logic.models.WorkflowStatus; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.List; + +/** The workflow run action properties. */ +@Fluent +public final class WorkflowRunActionProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunActionProperties.class); + + /* + * Gets the start time. + */ + @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime startTime; + + /* + * Gets the end time. + */ + @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime endTime; + + /* + * Gets the status. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowStatus status; + + /* + * Gets the code. + */ + @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) + private String code; + + /* + * Gets the error. + */ + @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY) + private Object error; + + /* + * Gets the tracking id. + */ + @JsonProperty(value = "trackingId", access = JsonProperty.Access.WRITE_ONLY) + private String trackingId; + + /* + * The correlation properties. + */ + @JsonProperty(value = "correlation") + private RunActionCorrelation correlation; + + /* + * Gets the link to inputs. + */ + @JsonProperty(value = "inputsLink", access = JsonProperty.Access.WRITE_ONLY) + private ContentLink inputsLink; + + /* + * Gets the link to outputs. + */ + @JsonProperty(value = "outputsLink", access = JsonProperty.Access.WRITE_ONLY) + private ContentLink outputsLink; + + /* + * Gets the tracked properties. + */ + @JsonProperty(value = "trackedProperties", access = JsonProperty.Access.WRITE_ONLY) + private Object trackedProperties; + + /* + * Gets the retry histories. + */ + @JsonProperty(value = "retryHistory") + private List retryHistory; + + /** + * Get the startTime property: Gets the start time. + * + * @return the startTime value. + */ + public OffsetDateTime startTime() { + return this.startTime; + } + + /** + * Get the endTime property: Gets the end time. + * + * @return the endTime value. + */ + public OffsetDateTime endTime() { + return this.endTime; + } + + /** + * Get the status property: Gets the status. + * + * @return the status value. + */ + public WorkflowStatus status() { + return this.status; + } + + /** + * Get the code property: Gets the code. + * + * @return the code value. + */ + public String code() { + return this.code; + } + + /** + * Get the error property: Gets the error. + * + * @return the error value. + */ + public Object error() { + return this.error; + } + + /** + * Get the trackingId property: Gets the tracking id. + * + * @return the trackingId value. + */ + public String trackingId() { + return this.trackingId; + } + + /** + * Get the correlation property: The correlation properties. + * + * @return the correlation value. + */ + public RunActionCorrelation correlation() { + return this.correlation; + } + + /** + * Set the correlation property: The correlation properties. + * + * @param correlation the correlation value to set. + * @return the WorkflowRunActionProperties object itself. + */ + public WorkflowRunActionProperties withCorrelation(RunActionCorrelation correlation) { + this.correlation = correlation; + return this; + } + + /** + * Get the inputsLink property: Gets the link to inputs. + * + * @return the inputsLink value. + */ + public ContentLink inputsLink() { + return this.inputsLink; + } + + /** + * Get the outputsLink property: Gets the link to outputs. + * + * @return the outputsLink value. + */ + public ContentLink outputsLink() { + return this.outputsLink; + } + + /** + * Get the trackedProperties property: Gets the tracked properties. + * + * @return the trackedProperties value. + */ + public Object trackedProperties() { + return this.trackedProperties; + } + + /** + * Get the retryHistory property: Gets the retry histories. + * + * @return the retryHistory value. + */ + public List retryHistory() { + return this.retryHistory; + } + + /** + * Set the retryHistory property: Gets the retry histories. + * + * @param retryHistory the retryHistory value to set. + * @return the WorkflowRunActionProperties object itself. + */ + public WorkflowRunActionProperties withRetryHistory(List retryHistory) { + this.retryHistory = retryHistory; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (correlation() != null) { + correlation().validate(); + } + if (inputsLink() != null) { + inputsLink().validate(); + } + if (outputsLink() != null) { + outputsLink().validate(); + } + if (retryHistory() != null) { + retryHistory().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionRepetitionDefinitionInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionRepetitionDefinitionInner.java index 905c805d3cb6..0de32d3f02aa 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionRepetitionDefinitionInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionRepetitionDefinitionInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.ContentLink; @@ -20,346 +19,297 @@ import java.util.Map; /** The workflow run action repetition definition. */ -@JsonFlatten @Fluent -public class WorkflowRunActionRepetitionDefinitionInner extends Resource { +public final class WorkflowRunActionRepetitionDefinitionInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunActionRepetitionDefinitionInner.class); /* - * The start time of the workflow scope repetition. + * The workflow run action repetition properties definition. */ - @JsonProperty(value = "properties.startTime") - private OffsetDateTime startTime; + @JsonProperty(value = "properties", required = true) + private WorkflowRunActionRepetitionProperties innerProperties = new WorkflowRunActionRepetitionProperties(); - /* - * The end time of the workflow scope repetition. - */ - @JsonProperty(value = "properties.endTime") - private OffsetDateTime endTime; - - /* - * The correlation properties. - */ - @JsonProperty(value = "properties.correlation") - private RunActionCorrelation correlation; - - /* - * The status of the workflow scope repetition. - */ - @JsonProperty(value = "properties.status") - private WorkflowStatus status; - - /* - * The workflow scope repetition code. - */ - @JsonProperty(value = "properties.code") - private String code; - - /* - * Any object - */ - @JsonProperty(value = "properties.error") - private Object error; - - /* - * Gets the tracking id. - */ - @JsonProperty(value = "properties.trackingId", access = JsonProperty.Access.WRITE_ONLY) - private String trackingId; - - /* - * Gets the inputs. - */ - @JsonProperty(value = "properties.inputs", access = JsonProperty.Access.WRITE_ONLY) - private Object inputs; - - /* - * Gets the link to inputs. - */ - @JsonProperty(value = "properties.inputsLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink inputsLink; - - /* - * Gets the outputs. - */ - @JsonProperty(value = "properties.outputs", access = JsonProperty.Access.WRITE_ONLY) - private Object outputs; - - /* - * Gets the link to outputs. - */ - @JsonProperty(value = "properties.outputsLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink outputsLink; - - /* - * Gets the tracked properties. - */ - @JsonProperty(value = "properties.trackedProperties", access = JsonProperty.Access.WRITE_ONLY) - private Object trackedProperties; - - /* - * Gets the retry histories. + /** + * Get the innerProperties property: The workflow run action repetition properties definition. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.retryHistory") - private List retryHistory; + private WorkflowRunActionRepetitionProperties innerProperties() { + return this.innerProperties; + } - /* - * The iterationCount property. - */ - @JsonProperty(value = "properties.iterationCount") - private Integer iterationCount; + /** {@inheritDoc} */ + @Override + public WorkflowRunActionRepetitionDefinitionInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The repetition indexes. - */ - @JsonProperty(value = "properties.repetitionIndexes") - private List repetitionIndexes; + /** {@inheritDoc} */ + @Override + public WorkflowRunActionRepetitionDefinitionInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** - * Get the startTime property: The start time of the workflow scope repetition. + * Get the repetitionIndexes property: The repetition indexes. * - * @return the startTime value. + * @return the repetitionIndexes value. */ - public OffsetDateTime startTime() { - return this.startTime; + public List repetitionIndexes() { + return this.innerProperties() == null ? null : this.innerProperties().repetitionIndexes(); } /** - * Set the startTime property: The start time of the workflow scope repetition. + * Set the repetitionIndexes property: The repetition indexes. * - * @param startTime the startTime value to set. + * @param repetitionIndexes the repetitionIndexes value to set. * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public WorkflowRunActionRepetitionDefinitionInner withStartTime(OffsetDateTime startTime) { - this.startTime = startTime; + public WorkflowRunActionRepetitionDefinitionInner withRepetitionIndexes(List repetitionIndexes) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withRepetitionIndexes(repetitionIndexes); return this; } /** - * Get the endTime property: The end time of the workflow scope repetition. + * Get the trackingId property: Gets the tracking id. * - * @return the endTime value. + * @return the trackingId value. */ - public OffsetDateTime endTime() { - return this.endTime; + public String trackingId() { + return this.innerProperties() == null ? null : this.innerProperties().trackingId(); } /** - * Set the endTime property: The end time of the workflow scope repetition. + * Get the inputs property: Gets the inputs. * - * @param endTime the endTime value to set. - * @return the WorkflowRunActionRepetitionDefinitionInner object itself. + * @return the inputs value. */ - public WorkflowRunActionRepetitionDefinitionInner withEndTime(OffsetDateTime endTime) { - this.endTime = endTime; - return this; + public Object inputs() { + return this.innerProperties() == null ? null : this.innerProperties().inputs(); } /** - * Get the correlation property: The correlation properties. + * Get the inputsLink property: Gets the link to inputs. * - * @return the correlation value. + * @return the inputsLink value. */ - public RunActionCorrelation correlation() { - return this.correlation; + public ContentLink inputsLink() { + return this.innerProperties() == null ? null : this.innerProperties().inputsLink(); } /** - * Set the correlation property: The correlation properties. + * Get the outputs property: Gets the outputs. * - * @param correlation the correlation value to set. - * @return the WorkflowRunActionRepetitionDefinitionInner object itself. + * @return the outputs value. */ - public WorkflowRunActionRepetitionDefinitionInner withCorrelation(RunActionCorrelation correlation) { - this.correlation = correlation; - return this; + public Object outputs() { + return this.innerProperties() == null ? null : this.innerProperties().outputs(); } /** - * Get the status property: The status of the workflow scope repetition. + * Get the outputsLink property: Gets the link to outputs. * - * @return the status value. + * @return the outputsLink value. */ - public WorkflowStatus status() { - return this.status; + public ContentLink outputsLink() { + return this.innerProperties() == null ? null : this.innerProperties().outputsLink(); } /** - * Set the status property: The status of the workflow scope repetition. + * Get the trackedProperties property: Gets the tracked properties. * - * @param status the status value to set. - * @return the WorkflowRunActionRepetitionDefinitionInner object itself. + * @return the trackedProperties value. */ - public WorkflowRunActionRepetitionDefinitionInner withStatus(WorkflowStatus status) { - this.status = status; - return this; + public Object trackedProperties() { + return this.innerProperties() == null ? null : this.innerProperties().trackedProperties(); } /** - * Get the code property: The workflow scope repetition code. + * Get the retryHistory property: Gets the retry histories. * - * @return the code value. + * @return the retryHistory value. */ - public String code() { - return this.code; + public List retryHistory() { + return this.innerProperties() == null ? null : this.innerProperties().retryHistory(); } /** - * Set the code property: The workflow scope repetition code. + * Set the retryHistory property: Gets the retry histories. * - * @param code the code value to set. + * @param retryHistory the retryHistory value to set. * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public WorkflowRunActionRepetitionDefinitionInner withCode(String code) { - this.code = code; + public WorkflowRunActionRepetitionDefinitionInner withRetryHistory(List retryHistory) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withRetryHistory(retryHistory); return this; } /** - * Get the error property: Any object. + * Get the iterationCount property: The iterationCount property. * - * @return the error value. + * @return the iterationCount value. */ - public Object error() { - return this.error; + public Integer iterationCount() { + return this.innerProperties() == null ? null : this.innerProperties().iterationCount(); } /** - * Set the error property: Any object. + * Set the iterationCount property: The iterationCount property. * - * @param error the error value to set. + * @param iterationCount the iterationCount value to set. * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public WorkflowRunActionRepetitionDefinitionInner withError(Object error) { - this.error = error; + public WorkflowRunActionRepetitionDefinitionInner withIterationCount(Integer iterationCount) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withIterationCount(iterationCount); return this; } /** - * Get the trackingId property: Gets the tracking id. + * Get the startTime property: The start time of the workflow scope repetition. * - * @return the trackingId value. + * @return the startTime value. */ - public String trackingId() { - return this.trackingId; + public OffsetDateTime startTime() { + return this.innerProperties() == null ? null : this.innerProperties().startTime(); } /** - * Get the inputs property: Gets the inputs. + * Set the startTime property: The start time of the workflow scope repetition. * - * @return the inputs value. + * @param startTime the startTime value to set. + * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public Object inputs() { - return this.inputs; + public WorkflowRunActionRepetitionDefinitionInner withStartTime(OffsetDateTime startTime) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withStartTime(startTime); + return this; } /** - * Get the inputsLink property: Gets the link to inputs. + * Get the endTime property: The end time of the workflow scope repetition. * - * @return the inputsLink value. + * @return the endTime value. */ - public ContentLink inputsLink() { - return this.inputsLink; + public OffsetDateTime endTime() { + return this.innerProperties() == null ? null : this.innerProperties().endTime(); } /** - * Get the outputs property: Gets the outputs. + * Set the endTime property: The end time of the workflow scope repetition. * - * @return the outputs value. + * @param endTime the endTime value to set. + * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public Object outputs() { - return this.outputs; + public WorkflowRunActionRepetitionDefinitionInner withEndTime(OffsetDateTime endTime) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withEndTime(endTime); + return this; } /** - * Get the outputsLink property: Gets the link to outputs. + * Get the correlation property: The correlation properties. * - * @return the outputsLink value. + * @return the correlation value. */ - public ContentLink outputsLink() { - return this.outputsLink; + public RunActionCorrelation correlation() { + return this.innerProperties() == null ? null : this.innerProperties().correlation(); } /** - * Get the trackedProperties property: Gets the tracked properties. + * Set the correlation property: The correlation properties. * - * @return the trackedProperties value. + * @param correlation the correlation value to set. + * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public Object trackedProperties() { - return this.trackedProperties; + public WorkflowRunActionRepetitionDefinitionInner withCorrelation(RunActionCorrelation correlation) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withCorrelation(correlation); + return this; } /** - * Get the retryHistory property: Gets the retry histories. + * Get the status property: The status of the workflow scope repetition. * - * @return the retryHistory value. + * @return the status value. */ - public List retryHistory() { - return this.retryHistory; + public WorkflowStatus status() { + return this.innerProperties() == null ? null : this.innerProperties().status(); } /** - * Set the retryHistory property: Gets the retry histories. + * Set the status property: The status of the workflow scope repetition. * - * @param retryHistory the retryHistory value to set. + * @param status the status value to set. * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public WorkflowRunActionRepetitionDefinitionInner withRetryHistory(List retryHistory) { - this.retryHistory = retryHistory; + public WorkflowRunActionRepetitionDefinitionInner withStatus(WorkflowStatus status) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withStatus(status); return this; } /** - * Get the iterationCount property: The iterationCount property. + * Get the code property: The workflow scope repetition code. * - * @return the iterationCount value. + * @return the code value. */ - public Integer iterationCount() { - return this.iterationCount; + public String code() { + return this.innerProperties() == null ? null : this.innerProperties().code(); } /** - * Set the iterationCount property: The iterationCount property. + * Set the code property: The workflow scope repetition code. * - * @param iterationCount the iterationCount value to set. + * @param code the code value to set. * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public WorkflowRunActionRepetitionDefinitionInner withIterationCount(Integer iterationCount) { - this.iterationCount = iterationCount; + public WorkflowRunActionRepetitionDefinitionInner withCode(String code) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withCode(code); return this; } /** - * Get the repetitionIndexes property: The repetition indexes. + * Get the error property: Anything. * - * @return the repetitionIndexes value. + * @return the error value. */ - public List repetitionIndexes() { - return this.repetitionIndexes; + public Object error() { + return this.innerProperties() == null ? null : this.innerProperties().error(); } /** - * Set the repetitionIndexes property: The repetition indexes. + * Set the error property: Anything. * - * @param repetitionIndexes the repetitionIndexes value to set. + * @param error the error value to set. * @return the WorkflowRunActionRepetitionDefinitionInner object itself. */ - public WorkflowRunActionRepetitionDefinitionInner withRepetitionIndexes(List repetitionIndexes) { - this.repetitionIndexes = repetitionIndexes; - return this; - } - - /** {@inheritDoc} */ - @Override - public WorkflowRunActionRepetitionDefinitionInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public WorkflowRunActionRepetitionDefinitionInner withTags(Map tags) { - super.withTags(tags); + public WorkflowRunActionRepetitionDefinitionInner withError(Object error) { + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunActionRepetitionProperties(); + } + this.innerProperties().withError(error); return this; } @@ -369,20 +319,14 @@ public WorkflowRunActionRepetitionDefinitionInner withTags(Map t * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (correlation() != null) { - correlation().validate(); - } - if (inputsLink() != null) { - inputsLink().validate(); - } - if (outputsLink() != null) { - outputsLink().validate(); - } - if (retryHistory() != null) { - retryHistory().forEach(e -> e.validate()); - } - if (repetitionIndexes() != null) { - repetitionIndexes().forEach(e -> e.validate()); + if (innerProperties() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerProperties in model" + + " WorkflowRunActionRepetitionDefinitionInner")); + } else { + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionRepetitionProperties.java similarity index 90% rename from sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionProperties.java rename to sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionRepetitionProperties.java index 1ada913693f7..9ce228dd0bdb 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionProperties.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunActionRepetitionProperties.java @@ -2,10 +2,15 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.resourcemanager.logic.models; +package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.OperationResult; +import com.azure.resourcemanager.logic.models.RepetitionIndex; +import com.azure.resourcemanager.logic.models.RetryHistory; +import com.azure.resourcemanager.logic.models.RunActionCorrelation; +import com.azure.resourcemanager.logic.models.WorkflowStatus; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunInner.java index a39bbc2ae79a..3237660b9336 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.Correlation; @@ -19,11 +18,16 @@ import java.util.Map; /** The workflow run. */ -@JsonFlatten @Fluent -public class WorkflowRunInner extends SubResource { +public final class WorkflowRunInner extends SubResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunInner.class); + /* + * The workflow run properties. + */ + @JsonProperty(value = "properties") + private WorkflowRunProperties innerProperties; + /* * Gets the workflow run name. */ @@ -36,77 +40,14 @@ public class WorkflowRunInner extends SubResource { @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; - /* - * Gets the wait end time. - */ - @JsonProperty(value = "properties.waitEndTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime waitEndTime; - - /* - * Gets the start time. - */ - @JsonProperty(value = "properties.startTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime startTime; - - /* - * Gets the end time. - */ - @JsonProperty(value = "properties.endTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime endTime; - - /* - * Gets the status. - */ - @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowStatus status; - - /* - * Gets the code. - */ - @JsonProperty(value = "properties.code", access = JsonProperty.Access.WRITE_ONLY) - private String code; - - /* - * Gets the error. - */ - @JsonProperty(value = "properties.error", access = JsonProperty.Access.WRITE_ONLY) - private Object error; - - /* - * Gets the correlation id. - */ - @JsonProperty(value = "properties.correlationId", access = JsonProperty.Access.WRITE_ONLY) - private String correlationId; - - /* - * The run correlation. - */ - @JsonProperty(value = "properties.correlation") - private Correlation correlation; - - /* - * Gets the reference to workflow version. - */ - @JsonProperty(value = "properties.workflow", access = JsonProperty.Access.WRITE_ONLY) - private ResourceReference workflow; - - /* - * Gets the fired trigger. - */ - @JsonProperty(value = "properties.trigger", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowRunTrigger trigger; - - /* - * Gets the outputs. - */ - @JsonProperty(value = "properties.outputs", access = JsonProperty.Access.WRITE_ONLY) - private Map outputs; - - /* - * Gets the response of the flow run. + /** + * Get the innerProperties property: The workflow run properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.response", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowRunTrigger response; + private WorkflowRunProperties innerProperties() { + return this.innerProperties; + } /** * Get the name property: Gets the workflow run name. @@ -126,13 +67,20 @@ public String type() { return this.type; } + /** {@inheritDoc} */ + @Override + public WorkflowRunInner withId(String id) { + super.withId(id); + return this; + } + /** * Get the waitEndTime property: Gets the wait end time. * * @return the waitEndTime value. */ public OffsetDateTime waitEndTime() { - return this.waitEndTime; + return this.innerProperties() == null ? null : this.innerProperties().waitEndTime(); } /** @@ -141,7 +89,7 @@ public OffsetDateTime waitEndTime() { * @return the startTime value. */ public OffsetDateTime startTime() { - return this.startTime; + return this.innerProperties() == null ? null : this.innerProperties().startTime(); } /** @@ -150,7 +98,7 @@ public OffsetDateTime startTime() { * @return the endTime value. */ public OffsetDateTime endTime() { - return this.endTime; + return this.innerProperties() == null ? null : this.innerProperties().endTime(); } /** @@ -159,7 +107,7 @@ public OffsetDateTime endTime() { * @return the status value. */ public WorkflowStatus status() { - return this.status; + return this.innerProperties() == null ? null : this.innerProperties().status(); } /** @@ -168,7 +116,7 @@ public WorkflowStatus status() { * @return the code value. */ public String code() { - return this.code; + return this.innerProperties() == null ? null : this.innerProperties().code(); } /** @@ -177,7 +125,7 @@ public String code() { * @return the error value. */ public Object error() { - return this.error; + return this.innerProperties() == null ? null : this.innerProperties().error(); } /** @@ -186,7 +134,7 @@ public Object error() { * @return the correlationId value. */ public String correlationId() { - return this.correlationId; + return this.innerProperties() == null ? null : this.innerProperties().correlationId(); } /** @@ -195,7 +143,7 @@ public String correlationId() { * @return the correlation value. */ public Correlation correlation() { - return this.correlation; + return this.innerProperties() == null ? null : this.innerProperties().correlation(); } /** @@ -205,7 +153,10 @@ public Correlation correlation() { * @return the WorkflowRunInner object itself. */ public WorkflowRunInner withCorrelation(Correlation correlation) { - this.correlation = correlation; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowRunProperties(); + } + this.innerProperties().withCorrelation(correlation); return this; } @@ -215,7 +166,7 @@ public WorkflowRunInner withCorrelation(Correlation correlation) { * @return the workflow value. */ public ResourceReference workflow() { - return this.workflow; + return this.innerProperties() == null ? null : this.innerProperties().workflow(); } /** @@ -224,7 +175,7 @@ public ResourceReference workflow() { * @return the trigger value. */ public WorkflowRunTrigger trigger() { - return this.trigger; + return this.innerProperties() == null ? null : this.innerProperties().trigger(); } /** @@ -233,7 +184,7 @@ public WorkflowRunTrigger trigger() { * @return the outputs value. */ public Map outputs() { - return this.outputs; + return this.innerProperties() == null ? null : this.innerProperties().outputs(); } /** @@ -242,14 +193,7 @@ public Map outputs() { * @return the response value. */ public WorkflowRunTrigger response() { - return this.response; - } - - /** {@inheritDoc} */ - @Override - public WorkflowRunInner withId(String id) { - super.withId(id); - return this; + return this.innerProperties() == null ? null : this.innerProperties().response(); } /** @@ -258,27 +202,8 @@ public WorkflowRunInner withId(String id) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (correlation() != null) { - correlation().validate(); - } - if (workflow() != null) { - workflow().validate(); - } - if (trigger() != null) { - trigger().validate(); - } - if (outputs() != null) { - outputs() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); - } - if (response() != null) { - response().validate(); + if (innerProperties() != null) { + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunProperties.java new file mode 100644 index 000000000000..5864ff9ea907 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowRunProperties.java @@ -0,0 +1,246 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.Correlation; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowOutputParameter; +import com.azure.resourcemanager.logic.models.WorkflowRunTrigger; +import com.azure.resourcemanager.logic.models.WorkflowStatus; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** The workflow run properties. */ +@Fluent +public final class WorkflowRunProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowRunProperties.class); + + /* + * Gets the wait end time. + */ + @JsonProperty(value = "waitEndTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime waitEndTime; + + /* + * Gets the start time. + */ + @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime startTime; + + /* + * Gets the end time. + */ + @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime endTime; + + /* + * Gets the status. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowStatus status; + + /* + * Gets the code. + */ + @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) + private String code; + + /* + * Gets the error. + */ + @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY) + private Object error; + + /* + * Gets the correlation id. + */ + @JsonProperty(value = "correlationId", access = JsonProperty.Access.WRITE_ONLY) + private String correlationId; + + /* + * The run correlation. + */ + @JsonProperty(value = "correlation") + private Correlation correlation; + + /* + * Gets the reference to workflow version. + */ + @JsonProperty(value = "workflow", access = JsonProperty.Access.WRITE_ONLY) + private ResourceReference workflow; + + /* + * Gets the fired trigger. + */ + @JsonProperty(value = "trigger", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowRunTrigger trigger; + + /* + * Gets the outputs. + */ + @JsonProperty(value = "outputs", access = JsonProperty.Access.WRITE_ONLY) + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map outputs; + + /* + * Gets the response of the flow run. + */ + @JsonProperty(value = "response", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowRunTrigger response; + + /** + * Get the waitEndTime property: Gets the wait end time. + * + * @return the waitEndTime value. + */ + public OffsetDateTime waitEndTime() { + return this.waitEndTime; + } + + /** + * Get the startTime property: Gets the start time. + * + * @return the startTime value. + */ + public OffsetDateTime startTime() { + return this.startTime; + } + + /** + * Get the endTime property: Gets the end time. + * + * @return the endTime value. + */ + public OffsetDateTime endTime() { + return this.endTime; + } + + /** + * Get the status property: Gets the status. + * + * @return the status value. + */ + public WorkflowStatus status() { + return this.status; + } + + /** + * Get the code property: Gets the code. + * + * @return the code value. + */ + public String code() { + return this.code; + } + + /** + * Get the error property: Gets the error. + * + * @return the error value. + */ + public Object error() { + return this.error; + } + + /** + * Get the correlationId property: Gets the correlation id. + * + * @return the correlationId value. + */ + public String correlationId() { + return this.correlationId; + } + + /** + * Get the correlation property: The run correlation. + * + * @return the correlation value. + */ + public Correlation correlation() { + return this.correlation; + } + + /** + * Set the correlation property: The run correlation. + * + * @param correlation the correlation value to set. + * @return the WorkflowRunProperties object itself. + */ + public WorkflowRunProperties withCorrelation(Correlation correlation) { + this.correlation = correlation; + return this; + } + + /** + * Get the workflow property: Gets the reference to workflow version. + * + * @return the workflow value. + */ + public ResourceReference workflow() { + return this.workflow; + } + + /** + * Get the trigger property: Gets the fired trigger. + * + * @return the trigger value. + */ + public WorkflowRunTrigger trigger() { + return this.trigger; + } + + /** + * Get the outputs property: Gets the outputs. + * + * @return the outputs value. + */ + public Map outputs() { + return this.outputs; + } + + /** + * Get the response property: Gets the response of the flow run. + * + * @return the response value. + */ + public WorkflowRunTrigger response() { + return this.response; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (correlation() != null) { + correlation().validate(); + } + if (workflow() != null) { + workflow().validate(); + } + if (trigger() != null) { + trigger().validate(); + } + if (outputs() != null) { + outputs() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + if (response() != null) { + response().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryInner.java index 098f966c5e22..bdcaf69ca1c5 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.ContentLink; @@ -17,11 +16,16 @@ import java.time.OffsetDateTime; /** The workflow trigger history. */ -@JsonFlatten @Fluent -public class WorkflowTriggerHistoryInner extends SubResource { +public final class WorkflowTriggerHistoryInner extends SubResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggerHistoryInner.class); + /* + * Gets the workflow trigger history properties. + */ + @JsonProperty(value = "properties") + private WorkflowTriggerHistoryProperties innerProperties; + /* * Gets the workflow trigger history name. */ @@ -34,77 +38,14 @@ public class WorkflowTriggerHistoryInner extends SubResource { @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; - /* - * Gets the start time. - */ - @JsonProperty(value = "properties.startTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime startTime; - - /* - * Gets the end time. - */ - @JsonProperty(value = "properties.endTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime endTime; - - /* - * The scheduled time. - */ - @JsonProperty(value = "properties.scheduledTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime scheduledTime; - - /* - * Gets the status. - */ - @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowStatus status; - - /* - * Gets the code. - */ - @JsonProperty(value = "properties.code", access = JsonProperty.Access.WRITE_ONLY) - private String code; - - /* - * Gets the error. - */ - @JsonProperty(value = "properties.error", access = JsonProperty.Access.WRITE_ONLY) - private Object error; - - /* - * Gets the tracking id. - */ - @JsonProperty(value = "properties.trackingId", access = JsonProperty.Access.WRITE_ONLY) - private String trackingId; - - /* - * The run correlation. - */ - @JsonProperty(value = "properties.correlation") - private Correlation correlation; - - /* - * Gets the link to input parameters. - */ - @JsonProperty(value = "properties.inputsLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink inputsLink; - - /* - * Gets the link to output parameters. - */ - @JsonProperty(value = "properties.outputsLink", access = JsonProperty.Access.WRITE_ONLY) - private ContentLink outputsLink; - - /* - * The value indicating whether trigger was fired. - */ - @JsonProperty(value = "properties.fired", access = JsonProperty.Access.WRITE_ONLY) - private Boolean fired; - - /* - * Gets the reference to workflow run. + /** + * Get the innerProperties property: Gets the workflow trigger history properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.run", access = JsonProperty.Access.WRITE_ONLY) - private ResourceReference run; + private WorkflowTriggerHistoryProperties innerProperties() { + return this.innerProperties; + } /** * Get the name property: Gets the workflow trigger history name. @@ -124,13 +65,20 @@ public String type() { return this.type; } + /** {@inheritDoc} */ + @Override + public WorkflowTriggerHistoryInner withId(String id) { + super.withId(id); + return this; + } + /** * Get the startTime property: Gets the start time. * * @return the startTime value. */ public OffsetDateTime startTime() { - return this.startTime; + return this.innerProperties() == null ? null : this.innerProperties().startTime(); } /** @@ -139,7 +87,7 @@ public OffsetDateTime startTime() { * @return the endTime value. */ public OffsetDateTime endTime() { - return this.endTime; + return this.innerProperties() == null ? null : this.innerProperties().endTime(); } /** @@ -148,7 +96,7 @@ public OffsetDateTime endTime() { * @return the scheduledTime value. */ public OffsetDateTime scheduledTime() { - return this.scheduledTime; + return this.innerProperties() == null ? null : this.innerProperties().scheduledTime(); } /** @@ -157,7 +105,7 @@ public OffsetDateTime scheduledTime() { * @return the status value. */ public WorkflowStatus status() { - return this.status; + return this.innerProperties() == null ? null : this.innerProperties().status(); } /** @@ -166,7 +114,7 @@ public WorkflowStatus status() { * @return the code value. */ public String code() { - return this.code; + return this.innerProperties() == null ? null : this.innerProperties().code(); } /** @@ -175,7 +123,7 @@ public String code() { * @return the error value. */ public Object error() { - return this.error; + return this.innerProperties() == null ? null : this.innerProperties().error(); } /** @@ -184,7 +132,7 @@ public Object error() { * @return the trackingId value. */ public String trackingId() { - return this.trackingId; + return this.innerProperties() == null ? null : this.innerProperties().trackingId(); } /** @@ -193,7 +141,7 @@ public String trackingId() { * @return the correlation value. */ public Correlation correlation() { - return this.correlation; + return this.innerProperties() == null ? null : this.innerProperties().correlation(); } /** @@ -203,7 +151,10 @@ public Correlation correlation() { * @return the WorkflowTriggerHistoryInner object itself. */ public WorkflowTriggerHistoryInner withCorrelation(Correlation correlation) { - this.correlation = correlation; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowTriggerHistoryProperties(); + } + this.innerProperties().withCorrelation(correlation); return this; } @@ -213,7 +164,7 @@ public WorkflowTriggerHistoryInner withCorrelation(Correlation correlation) { * @return the inputsLink value. */ public ContentLink inputsLink() { - return this.inputsLink; + return this.innerProperties() == null ? null : this.innerProperties().inputsLink(); } /** @@ -222,7 +173,7 @@ public ContentLink inputsLink() { * @return the outputsLink value. */ public ContentLink outputsLink() { - return this.outputsLink; + return this.innerProperties() == null ? null : this.innerProperties().outputsLink(); } /** @@ -231,7 +182,7 @@ public ContentLink outputsLink() { * @return the fired value. */ public Boolean fired() { - return this.fired; + return this.innerProperties() == null ? null : this.innerProperties().fired(); } /** @@ -240,14 +191,7 @@ public Boolean fired() { * @return the run value. */ public ResourceReference run() { - return this.run; - } - - /** {@inheritDoc} */ - @Override - public WorkflowTriggerHistoryInner withId(String id) { - super.withId(id); - return this; + return this.innerProperties() == null ? null : this.innerProperties().run(); } /** @@ -256,17 +200,8 @@ public WorkflowTriggerHistoryInner withId(String id) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (correlation() != null) { - correlation().validate(); - } - if (inputsLink() != null) { - inputsLink().validate(); - } - if (outputsLink() != null) { - outputsLink().validate(); - } - if (run() != null) { - run().validate(); + if (innerProperties() != null) { + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryProperties.java new file mode 100644 index 000000000000..46230a1b9af8 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerHistoryProperties.java @@ -0,0 +1,232 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.ContentLink; +import com.azure.resourcemanager.logic.models.Correlation; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowStatus; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The workflow trigger history properties. */ +@Fluent +public final class WorkflowTriggerHistoryProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggerHistoryProperties.class); + + /* + * Gets the start time. + */ + @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime startTime; + + /* + * Gets the end time. + */ + @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime endTime; + + /* + * The scheduled time. + */ + @JsonProperty(value = "scheduledTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime scheduledTime; + + /* + * Gets the status. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowStatus status; + + /* + * Gets the code. + */ + @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) + private String code; + + /* + * Gets the error. + */ + @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY) + private Object error; + + /* + * Gets the tracking id. + */ + @JsonProperty(value = "trackingId", access = JsonProperty.Access.WRITE_ONLY) + private String trackingId; + + /* + * The run correlation. + */ + @JsonProperty(value = "correlation") + private Correlation correlation; + + /* + * Gets the link to input parameters. + */ + @JsonProperty(value = "inputsLink", access = JsonProperty.Access.WRITE_ONLY) + private ContentLink inputsLink; + + /* + * Gets the link to output parameters. + */ + @JsonProperty(value = "outputsLink", access = JsonProperty.Access.WRITE_ONLY) + private ContentLink outputsLink; + + /* + * The value indicating whether trigger was fired. + */ + @JsonProperty(value = "fired", access = JsonProperty.Access.WRITE_ONLY) + private Boolean fired; + + /* + * Gets the reference to workflow run. + */ + @JsonProperty(value = "run", access = JsonProperty.Access.WRITE_ONLY) + private ResourceReference run; + + /** + * Get the startTime property: Gets the start time. + * + * @return the startTime value. + */ + public OffsetDateTime startTime() { + return this.startTime; + } + + /** + * Get the endTime property: Gets the end time. + * + * @return the endTime value. + */ + public OffsetDateTime endTime() { + return this.endTime; + } + + /** + * Get the scheduledTime property: The scheduled time. + * + * @return the scheduledTime value. + */ + public OffsetDateTime scheduledTime() { + return this.scheduledTime; + } + + /** + * Get the status property: Gets the status. + * + * @return the status value. + */ + public WorkflowStatus status() { + return this.status; + } + + /** + * Get the code property: Gets the code. + * + * @return the code value. + */ + public String code() { + return this.code; + } + + /** + * Get the error property: Gets the error. + * + * @return the error value. + */ + public Object error() { + return this.error; + } + + /** + * Get the trackingId property: Gets the tracking id. + * + * @return the trackingId value. + */ + public String trackingId() { + return this.trackingId; + } + + /** + * Get the correlation property: The run correlation. + * + * @return the correlation value. + */ + public Correlation correlation() { + return this.correlation; + } + + /** + * Set the correlation property: The run correlation. + * + * @param correlation the correlation value to set. + * @return the WorkflowTriggerHistoryProperties object itself. + */ + public WorkflowTriggerHistoryProperties withCorrelation(Correlation correlation) { + this.correlation = correlation; + return this; + } + + /** + * Get the inputsLink property: Gets the link to input parameters. + * + * @return the inputsLink value. + */ + public ContentLink inputsLink() { + return this.inputsLink; + } + + /** + * Get the outputsLink property: Gets the link to output parameters. + * + * @return the outputsLink value. + */ + public ContentLink outputsLink() { + return this.outputsLink; + } + + /** + * Get the fired property: The value indicating whether trigger was fired. + * + * @return the fired value. + */ + public Boolean fired() { + return this.fired; + } + + /** + * Get the run property: Gets the reference to workflow run. + * + * @return the run value. + */ + public ResourceReference run() { + return this.run; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (correlation() != null) { + correlation().validate(); + } + if (inputsLink() != null) { + inputsLink().validate(); + } + if (outputsLink() != null) { + outputsLink().validate(); + } + if (run() != null) { + run().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerInner.java index e895ca7ae2d3..7e0a0ad2dee5 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerInner.java @@ -4,8 +4,7 @@ package com.azure.resourcemanager.logic.fluent.models; -import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; +import com.azure.core.annotation.Fluent; import com.azure.core.management.SubResource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.ResourceReference; @@ -18,11 +17,16 @@ import java.time.OffsetDateTime; /** The workflow trigger. */ -@JsonFlatten -@Immutable -public class WorkflowTriggerInner extends SubResource { +@Fluent +public final class WorkflowTriggerInner extends SubResource { @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggerInner.class); + /* + * The workflow trigger properties. + */ + @JsonProperty(value = "properties") + private WorkflowTriggerProperties innerProperties; + /* * Gets the workflow trigger name. */ @@ -35,59 +39,14 @@ public class WorkflowTriggerInner extends SubResource { @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; - /* - * Gets the provisioning state. - */ - @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowTriggerProvisioningState provisioningState; - - /* - * Gets the created time. - */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; - - /* - * Gets the changed time. - */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; - - /* - * Gets the state. - */ - @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowState state; - - /* - * Gets the status. - */ - @JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowStatus status; - - /* - * Gets the last execution time. - */ - @JsonProperty(value = "properties.lastExecutionTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime lastExecutionTime; - - /* - * Gets the next execution time. - */ - @JsonProperty(value = "properties.nextExecutionTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime nextExecutionTime; - - /* - * Gets the workflow trigger recurrence. - */ - @JsonProperty(value = "properties.recurrence", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowTriggerRecurrence recurrence; - - /* - * Gets the reference to workflow. + /** + * Get the innerProperties property: The workflow trigger properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.workflow", access = JsonProperty.Access.WRITE_ONLY) - private ResourceReference workflow; + private WorkflowTriggerProperties innerProperties() { + return this.innerProperties; + } /** * Get the name property: Gets the workflow trigger name. @@ -107,13 +66,20 @@ public String type() { return this.type; } + /** {@inheritDoc} */ + @Override + public WorkflowTriggerInner withId(String id) { + super.withId(id); + return this; + } + /** * Get the provisioningState property: Gets the provisioning state. * * @return the provisioningState value. */ public WorkflowTriggerProvisioningState provisioningState() { - return this.provisioningState; + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } /** @@ -122,7 +88,7 @@ public WorkflowTriggerProvisioningState provisioningState() { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -131,7 +97,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -140,7 +106,7 @@ public OffsetDateTime changedTime() { * @return the state value. */ public WorkflowState state() { - return this.state; + return this.innerProperties() == null ? null : this.innerProperties().state(); } /** @@ -149,7 +115,7 @@ public WorkflowState state() { * @return the status value. */ public WorkflowStatus status() { - return this.status; + return this.innerProperties() == null ? null : this.innerProperties().status(); } /** @@ -158,7 +124,7 @@ public WorkflowStatus status() { * @return the lastExecutionTime value. */ public OffsetDateTime lastExecutionTime() { - return this.lastExecutionTime; + return this.innerProperties() == null ? null : this.innerProperties().lastExecutionTime(); } /** @@ -167,7 +133,7 @@ public OffsetDateTime lastExecutionTime() { * @return the nextExecutionTime value. */ public OffsetDateTime nextExecutionTime() { - return this.nextExecutionTime; + return this.innerProperties() == null ? null : this.innerProperties().nextExecutionTime(); } /** @@ -176,7 +142,7 @@ public OffsetDateTime nextExecutionTime() { * @return the recurrence value. */ public WorkflowTriggerRecurrence recurrence() { - return this.recurrence; + return this.innerProperties() == null ? null : this.innerProperties().recurrence(); } /** @@ -185,14 +151,7 @@ public WorkflowTriggerRecurrence recurrence() { * @return the workflow value. */ public ResourceReference workflow() { - return this.workflow; - } - - /** {@inheritDoc} */ - @Override - public WorkflowTriggerInner withId(String id) { - super.withId(id); - return this; + return this.innerProperties() == null ? null : this.innerProperties().workflow(); } /** @@ -201,11 +160,8 @@ public WorkflowTriggerInner withId(String id) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (recurrence() != null) { - recurrence().validate(); - } - if (workflow() != null) { - workflow().validate(); + if (innerProperties() != null) { + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerProperties.java new file mode 100644 index 000000000000..d71795623000 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowTriggerProperties.java @@ -0,0 +1,171 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowState; +import com.azure.resourcemanager.logic.models.WorkflowStatus; +import com.azure.resourcemanager.logic.models.WorkflowTriggerProvisioningState; +import com.azure.resourcemanager.logic.models.WorkflowTriggerRecurrence; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** The workflow trigger properties. */ +@Immutable +public final class WorkflowTriggerProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggerProperties.class); + + /* + * Gets the provisioning state. + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowTriggerProvisioningState provisioningState; + + /* + * Gets the created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * Gets the changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * Gets the state. + */ + @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowState state; + + /* + * Gets the status. + */ + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowStatus status; + + /* + * Gets the last execution time. + */ + @JsonProperty(value = "lastExecutionTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime lastExecutionTime; + + /* + * Gets the next execution time. + */ + @JsonProperty(value = "nextExecutionTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime nextExecutionTime; + + /* + * Gets the workflow trigger recurrence. + */ + @JsonProperty(value = "recurrence", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowTriggerRecurrence recurrence; + + /* + * Gets the reference to workflow. + */ + @JsonProperty(value = "workflow", access = JsonProperty.Access.WRITE_ONLY) + private ResourceReference workflow; + + /** + * Get the provisioningState property: Gets the provisioning state. + * + * @return the provisioningState value. + */ + public WorkflowTriggerProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the createdTime property: Gets the created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: Gets the changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the state property: Gets the state. + * + * @return the state value. + */ + public WorkflowState state() { + return this.state; + } + + /** + * Get the status property: Gets the status. + * + * @return the status value. + */ + public WorkflowStatus status() { + return this.status; + } + + /** + * Get the lastExecutionTime property: Gets the last execution time. + * + * @return the lastExecutionTime value. + */ + public OffsetDateTime lastExecutionTime() { + return this.lastExecutionTime; + } + + /** + * Get the nextExecutionTime property: Gets the next execution time. + * + * @return the nextExecutionTime value. + */ + public OffsetDateTime nextExecutionTime() { + return this.nextExecutionTime; + } + + /** + * Get the recurrence property: Gets the workflow trigger recurrence. + * + * @return the recurrence value. + */ + public WorkflowTriggerRecurrence recurrence() { + return this.recurrence; + } + + /** + * Get the workflow property: Gets the reference to workflow. + * + * @return the workflow value. + */ + public ResourceReference workflow() { + return this.workflow; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (recurrence() != null) { + recurrence().validate(); + } + if (workflow() != null) { + workflow().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionInner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionInner.java index 3c39c7855d00..617b78cb3328 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionInner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionInner.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.logic.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.models.FlowAccessControlConfiguration; @@ -21,82 +20,38 @@ import java.util.Map; /** The workflow version. */ -@JsonFlatten @Fluent -public class WorkflowVersionInner extends Resource { +public final class WorkflowVersionInner extends Resource { @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowVersionInner.class); /* - * The provisioning state. + * The workflow version properties. */ - @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private WorkflowProvisioningState provisioningState; + @JsonProperty(value = "properties") + private WorkflowVersionProperties innerProperties; - /* - * Gets the created time. - */ - @JsonProperty(value = "properties.createdTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime createdTime; - - /* - * Gets the changed time. - */ - @JsonProperty(value = "properties.changedTime", access = JsonProperty.Access.WRITE_ONLY) - private OffsetDateTime changedTime; - - /* - * The state. - */ - @JsonProperty(value = "properties.state") - private WorkflowState state; - - /* - * Gets the version. - */ - @JsonProperty(value = "properties.version", access = JsonProperty.Access.WRITE_ONLY) - private String version; - - /* - * Gets the access endpoint. - */ - @JsonProperty(value = "properties.accessEndpoint", access = JsonProperty.Access.WRITE_ONLY) - private String accessEndpoint; - - /* - * The endpoints configuration. - */ - @JsonProperty(value = "properties.endpointsConfiguration") - private FlowEndpointsConfiguration endpointsConfiguration; - - /* - * The access control configuration. - */ - @JsonProperty(value = "properties.accessControl") - private FlowAccessControlConfiguration accessControl; - - /* - * The sku. - */ - @JsonProperty(value = "properties.sku", access = JsonProperty.Access.WRITE_ONLY) - private Sku sku; - - /* - * The integration account. + /** + * Get the innerProperties property: The workflow version properties. + * + * @return the innerProperties value. */ - @JsonProperty(value = "properties.integrationAccount") - private ResourceReference integrationAccount; + private WorkflowVersionProperties innerProperties() { + return this.innerProperties; + } - /* - * The definition. - */ - @JsonProperty(value = "properties.definition") - private Object definition; + /** {@inheritDoc} */ + @Override + public WorkflowVersionInner withLocation(String location) { + super.withLocation(location); + return this; + } - /* - * The parameters. - */ - @JsonProperty(value = "properties.parameters") - private Map parameters; + /** {@inheritDoc} */ + @Override + public WorkflowVersionInner withTags(Map tags) { + super.withTags(tags); + return this; + } /** * Get the provisioningState property: The provisioning state. @@ -104,7 +59,7 @@ public class WorkflowVersionInner extends Resource { * @return the provisioningState value. */ public WorkflowProvisioningState provisioningState() { - return this.provisioningState; + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } /** @@ -113,7 +68,7 @@ public WorkflowProvisioningState provisioningState() { * @return the createdTime value. */ public OffsetDateTime createdTime() { - return this.createdTime; + return this.innerProperties() == null ? null : this.innerProperties().createdTime(); } /** @@ -122,7 +77,7 @@ public OffsetDateTime createdTime() { * @return the changedTime value. */ public OffsetDateTime changedTime() { - return this.changedTime; + return this.innerProperties() == null ? null : this.innerProperties().changedTime(); } /** @@ -131,7 +86,7 @@ public OffsetDateTime changedTime() { * @return the state value. */ public WorkflowState state() { - return this.state; + return this.innerProperties() == null ? null : this.innerProperties().state(); } /** @@ -141,7 +96,10 @@ public WorkflowState state() { * @return the WorkflowVersionInner object itself. */ public WorkflowVersionInner withState(WorkflowState state) { - this.state = state; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowVersionProperties(); + } + this.innerProperties().withState(state); return this; } @@ -151,7 +109,7 @@ public WorkflowVersionInner withState(WorkflowState state) { * @return the version value. */ public String version() { - return this.version; + return this.innerProperties() == null ? null : this.innerProperties().version(); } /** @@ -160,7 +118,7 @@ public String version() { * @return the accessEndpoint value. */ public String accessEndpoint() { - return this.accessEndpoint; + return this.innerProperties() == null ? null : this.innerProperties().accessEndpoint(); } /** @@ -169,7 +127,7 @@ public String accessEndpoint() { * @return the endpointsConfiguration value. */ public FlowEndpointsConfiguration endpointsConfiguration() { - return this.endpointsConfiguration; + return this.innerProperties() == null ? null : this.innerProperties().endpointsConfiguration(); } /** @@ -179,7 +137,10 @@ public FlowEndpointsConfiguration endpointsConfiguration() { * @return the WorkflowVersionInner object itself. */ public WorkflowVersionInner withEndpointsConfiguration(FlowEndpointsConfiguration endpointsConfiguration) { - this.endpointsConfiguration = endpointsConfiguration; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowVersionProperties(); + } + this.innerProperties().withEndpointsConfiguration(endpointsConfiguration); return this; } @@ -189,7 +150,7 @@ public WorkflowVersionInner withEndpointsConfiguration(FlowEndpointsConfiguratio * @return the accessControl value. */ public FlowAccessControlConfiguration accessControl() { - return this.accessControl; + return this.innerProperties() == null ? null : this.innerProperties().accessControl(); } /** @@ -199,7 +160,10 @@ public FlowAccessControlConfiguration accessControl() { * @return the WorkflowVersionInner object itself. */ public WorkflowVersionInner withAccessControl(FlowAccessControlConfiguration accessControl) { - this.accessControl = accessControl; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowVersionProperties(); + } + this.innerProperties().withAccessControl(accessControl); return this; } @@ -209,7 +173,7 @@ public WorkflowVersionInner withAccessControl(FlowAccessControlConfiguration acc * @return the sku value. */ public Sku sku() { - return this.sku; + return this.innerProperties() == null ? null : this.innerProperties().sku(); } /** @@ -218,7 +182,7 @@ public Sku sku() { * @return the integrationAccount value. */ public ResourceReference integrationAccount() { - return this.integrationAccount; + return this.innerProperties() == null ? null : this.innerProperties().integrationAccount(); } /** @@ -228,7 +192,10 @@ public ResourceReference integrationAccount() { * @return the WorkflowVersionInner object itself. */ public WorkflowVersionInner withIntegrationAccount(ResourceReference integrationAccount) { - this.integrationAccount = integrationAccount; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowVersionProperties(); + } + this.innerProperties().withIntegrationAccount(integrationAccount); return this; } @@ -238,7 +205,7 @@ public WorkflowVersionInner withIntegrationAccount(ResourceReference integration * @return the definition value. */ public Object definition() { - return this.definition; + return this.innerProperties() == null ? null : this.innerProperties().definition(); } /** @@ -248,7 +215,10 @@ public Object definition() { * @return the WorkflowVersionInner object itself. */ public WorkflowVersionInner withDefinition(Object definition) { - this.definition = definition; + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowVersionProperties(); + } + this.innerProperties().withDefinition(definition); return this; } @@ -258,7 +228,7 @@ public WorkflowVersionInner withDefinition(Object definition) { * @return the parameters value. */ public Map parameters() { - return this.parameters; + return this.innerProperties() == null ? null : this.innerProperties().parameters(); } /** @@ -268,21 +238,10 @@ public Map parameters() { * @return the WorkflowVersionInner object itself. */ public WorkflowVersionInner withParameters(Map parameters) { - this.parameters = parameters; - return this; - } - - /** {@inheritDoc} */ - @Override - public WorkflowVersionInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** {@inheritDoc} */ - @Override - public WorkflowVersionInner withTags(Map tags) { - super.withTags(tags); + if (this.innerProperties() == null) { + this.innerProperties = new WorkflowVersionProperties(); + } + this.innerProperties().withParameters(parameters); return this; } @@ -292,27 +251,8 @@ public WorkflowVersionInner withTags(Map tags) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (endpointsConfiguration() != null) { - endpointsConfiguration().validate(); - } - if (accessControl() != null) { - accessControl().validate(); - } - if (sku() != null) { - sku().validate(); - } - if (integrationAccount() != null) { - integrationAccount().validate(); - } - if (parameters() != null) { - parameters() - .values() - .forEach( - e -> { - if (e != null) { - e.validate(); - } - }); + if (innerProperties() != null) { + innerProperties().validate(); } } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionProperties.java new file mode 100644 index 000000000000..6b54aa6d9947 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/WorkflowVersionProperties.java @@ -0,0 +1,303 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.logic.models.FlowAccessControlConfiguration; +import com.azure.resourcemanager.logic.models.FlowEndpointsConfiguration; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.Sku; +import com.azure.resourcemanager.logic.models.WorkflowParameter; +import com.azure.resourcemanager.logic.models.WorkflowProvisioningState; +import com.azure.resourcemanager.logic.models.WorkflowState; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** The workflow version properties. */ +@Fluent +public final class WorkflowVersionProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowVersionProperties.class); + + /* + * The provisioning state. + */ + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) + private WorkflowProvisioningState provisioningState; + + /* + * Gets the created time. + */ + @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime createdTime; + + /* + * Gets the changed time. + */ + @JsonProperty(value = "changedTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime changedTime; + + /* + * The state. + */ + @JsonProperty(value = "state") + private WorkflowState state; + + /* + * Gets the version. + */ + @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY) + private String version; + + /* + * Gets the access endpoint. + */ + @JsonProperty(value = "accessEndpoint", access = JsonProperty.Access.WRITE_ONLY) + private String accessEndpoint; + + /* + * The endpoints configuration. + */ + @JsonProperty(value = "endpointsConfiguration") + private FlowEndpointsConfiguration endpointsConfiguration; + + /* + * The access control configuration. + */ + @JsonProperty(value = "accessControl") + private FlowAccessControlConfiguration accessControl; + + /* + * The sku. + */ + @JsonProperty(value = "sku", access = JsonProperty.Access.WRITE_ONLY) + private Sku sku; + + /* + * The integration account. + */ + @JsonProperty(value = "integrationAccount") + private ResourceReference integrationAccount; + + /* + * The definition. + */ + @JsonProperty(value = "definition") + private Object definition; + + /* + * The parameters. + */ + @JsonProperty(value = "parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map parameters; + + /** + * Get the provisioningState property: The provisioning state. + * + * @return the provisioningState value. + */ + public WorkflowProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the createdTime property: Gets the created time. + * + * @return the createdTime value. + */ + public OffsetDateTime createdTime() { + return this.createdTime; + } + + /** + * Get the changedTime property: Gets the changed time. + * + * @return the changedTime value. + */ + public OffsetDateTime changedTime() { + return this.changedTime; + } + + /** + * Get the state property: The state. + * + * @return the state value. + */ + public WorkflowState state() { + return this.state; + } + + /** + * Set the state property: The state. + * + * @param state the state value to set. + * @return the WorkflowVersionProperties object itself. + */ + public WorkflowVersionProperties withState(WorkflowState state) { + this.state = state; + return this; + } + + /** + * Get the version property: Gets the version. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * Get the accessEndpoint property: Gets the access endpoint. + * + * @return the accessEndpoint value. + */ + public String accessEndpoint() { + return this.accessEndpoint; + } + + /** + * Get the endpointsConfiguration property: The endpoints configuration. + * + * @return the endpointsConfiguration value. + */ + public FlowEndpointsConfiguration endpointsConfiguration() { + return this.endpointsConfiguration; + } + + /** + * Set the endpointsConfiguration property: The endpoints configuration. + * + * @param endpointsConfiguration the endpointsConfiguration value to set. + * @return the WorkflowVersionProperties object itself. + */ + public WorkflowVersionProperties withEndpointsConfiguration(FlowEndpointsConfiguration endpointsConfiguration) { + this.endpointsConfiguration = endpointsConfiguration; + return this; + } + + /** + * Get the accessControl property: The access control configuration. + * + * @return the accessControl value. + */ + public FlowAccessControlConfiguration accessControl() { + return this.accessControl; + } + + /** + * Set the accessControl property: The access control configuration. + * + * @param accessControl the accessControl value to set. + * @return the WorkflowVersionProperties object itself. + */ + public WorkflowVersionProperties withAccessControl(FlowAccessControlConfiguration accessControl) { + this.accessControl = accessControl; + return this; + } + + /** + * Get the sku property: The sku. + * + * @return the sku value. + */ + public Sku sku() { + return this.sku; + } + + /** + * Get the integrationAccount property: The integration account. + * + * @return the integrationAccount value. + */ + public ResourceReference integrationAccount() { + return this.integrationAccount; + } + + /** + * Set the integrationAccount property: The integration account. + * + * @param integrationAccount the integrationAccount value to set. + * @return the WorkflowVersionProperties object itself. + */ + public WorkflowVersionProperties withIntegrationAccount(ResourceReference integrationAccount) { + this.integrationAccount = integrationAccount; + return this; + } + + /** + * Get the definition property: The definition. + * + * @return the definition value. + */ + public Object definition() { + return this.definition; + } + + /** + * Set the definition property: The definition. + * + * @param definition the definition value to set. + * @return the WorkflowVersionProperties object itself. + */ + public WorkflowVersionProperties withDefinition(Object definition) { + this.definition = definition; + return this; + } + + /** + * Get the parameters property: The parameters. + * + * @return the parameters value. + */ + public Map parameters() { + return this.parameters; + } + + /** + * Set the parameters property: The parameters. + * + * @param parameters the parameters value to set. + * @return the WorkflowVersionProperties object itself. + */ + public WorkflowVersionProperties withParameters(Map parameters) { + this.parameters = parameters; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (endpointsConfiguration() != null) { + endpointsConfiguration().validate(); + } + if (accessControl() != null) { + accessControl().validate(); + } + if (sku() != null) { + sku().validate(); + } + if (integrationAccount() != null) { + integrationAccount().validate(); + } + if (parameters() != null) { + parameters() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsClientImpl.java index dc9e4e42ff9b..fb602e352050 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsClientImpl.java @@ -171,7 +171,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -235,7 +236,8 @@ private Mono> listSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -295,7 +297,7 @@ private Mono> listSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -313,7 +315,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -336,7 +338,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -354,7 +356,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -375,7 +377,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -392,7 +394,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -448,7 +450,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -500,7 +502,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -543,7 +545,7 @@ public IntegrationAccountAgreementInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -561,7 +563,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account agreement. + * @return the integration account agreement along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -627,7 +629,7 @@ private Mono> createOrUpdateWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account agreement. + * @return the integration account agreement along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -690,7 +692,7 @@ private Mono> createOrUpdateWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account agreement. + * @return the integration account agreement on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -741,7 +743,7 @@ public IntegrationAccountAgreementInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account agreement. + * @return the integration account agreement along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -764,7 +766,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -820,7 +822,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -872,7 +874,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String integrationAccountName, String agreementName) { @@ -905,7 +907,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -923,7 +925,7 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -991,7 +993,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -1056,7 +1058,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listContentCallbackUrlAsync( @@ -1110,7 +1112,7 @@ public WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listContentCallbackUrlWithResponse( @@ -1131,7 +1133,8 @@ public Response listContentCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration account agreements. + * @return the list of integration account agreements along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1167,7 +1170,8 @@ private Mono> listNextSinglePage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration account agreements. + * @return the list of integration account agreements along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsImpl.java index 5083a50fb839..789ea4dc360e 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsImpl.java @@ -201,7 +201,7 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'agreements'.", id))); } - this.deleteWithResponse(resourceGroupName, integrationAccountName, agreementName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, agreementName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesClientImpl.java index 69b38b57f6f3..b935d9729bfd 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesClientImpl.java @@ -156,7 +156,8 @@ Mono> listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -211,7 +212,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -262,7 +264,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String integrationAccountName) { @@ -278,7 +280,7 @@ private PagedFlux listAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -294,7 +296,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String integrationAccountName) { @@ -310,7 +312,7 @@ public PagedIterable list(String resourceGroupName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -327,7 +329,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -384,7 +387,8 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -437,7 +441,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -480,7 +484,7 @@ public AssemblyDefinitionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -498,7 +502,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the assembly definition. + * @return the assembly definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -566,7 +570,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the assembly definition. + * @return the assembly definition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -631,7 +635,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the assembly definition. + * @return the assembly definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -684,7 +688,7 @@ public AssemblyDefinitionInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the assembly definition. + * @return the assembly definition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -707,7 +711,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -764,7 +768,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -817,7 +821,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -851,7 +855,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -869,7 +873,8 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url for an integration account assembly. + * @return the content callback url for an integration account assembly along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -926,7 +931,8 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url for an integration account assembly. + * @return the content callback url for an integration account assembly along with {@link Response} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -979,7 +985,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url for an integration account assembly. + * @return the content callback url for an integration account assembly on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listContentCallbackUrlAsync( @@ -1022,7 +1028,7 @@ public WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url for an integration account assembly. + * @return the content callback url for an integration account assembly along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listContentCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesImpl.java index f76ba53b6d13..cacf31ff9143 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAssembliesImpl.java @@ -196,9 +196,7 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'assemblies'.", id))); } - this - .deleteWithResponse(resourceGroupName, integrationAccountName, assemblyArtifactName, Context.NONE) - .getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, assemblyArtifactName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsClientImpl.java index 6f6ffb2bde25..0b93b294a4c3 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsClientImpl.java @@ -143,7 +143,8 @@ Mono> delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -198,7 +199,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -249,7 +251,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String integrationAccountName) { @@ -265,7 +267,7 @@ private PagedFlux listAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -281,7 +283,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String integrationAccountName) { @@ -297,7 +299,7 @@ public PagedIterable list(String resourceGroupName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -314,7 +316,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -372,7 +375,8 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -426,7 +430,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -469,7 +473,7 @@ public BatchConfigurationInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -487,7 +491,8 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the batch configuration resource definition. + * @return the batch configuration resource definition along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -556,7 +561,8 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the batch configuration resource definition. + * @return the batch configuration resource definition along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -622,7 +628,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the batch configuration resource definition. + * @return the batch configuration resource definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -676,7 +682,7 @@ public BatchConfigurationInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the batch configuration resource definition. + * @return the batch configuration resource definition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -699,7 +705,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -757,7 +763,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -811,7 +817,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -845,7 +851,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsImpl.java index 058e26bf1d29..ae6bc448ba77 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountBatchConfigurationsImpl.java @@ -170,9 +170,7 @@ public void deleteById(String id) { .format( "The resource ID '%s' is not valid. Missing path segment 'batchConfigurations'.", id))); } - this - .deleteWithResponse(resourceGroupName, integrationAccountName, batchConfigurationName, Context.NONE) - .getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, batchConfigurationName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesClientImpl.java index 2e68df667493..540c614e1238 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesClientImpl.java @@ -151,7 +151,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -213,7 +214,8 @@ private Mono> listSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -271,7 +273,7 @@ private Mono> listSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -289,7 +291,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -310,7 +312,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -328,7 +330,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -347,7 +349,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -364,7 +366,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -421,7 +423,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -474,7 +476,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -517,7 +519,7 @@ public IntegrationAccountCertificateInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -535,7 +537,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account certificate. + * @return the integration account certificate along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -602,7 +604,7 @@ private Mono> createOrUpdateWithRes * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account certificate. + * @return the integration account certificate along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -666,7 +668,7 @@ private Mono> createOrUpdateWithRes * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account certificate. + * @return the integration account certificate on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -717,7 +719,7 @@ public IntegrationAccountCertificateInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account certificate. + * @return the integration account certificate along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -740,7 +742,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -797,7 +799,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -850,7 +852,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String integrationAccountName, String certificateName) { @@ -883,7 +885,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -898,7 +900,8 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration account certificates. + * @return the list of integration account certificates along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -934,7 +937,8 @@ private Mono> listNextSinglePa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration account certificates. + * @return the list of integration account certificates along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesImpl.java index d7cff32f8e7d..deda8012005b 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountCertificatesImpl.java @@ -161,7 +161,7 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'certificates'.", id))); } - this.deleteWithResponse(resourceGroupName, integrationAccountName, certificateName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, certificateName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountImpl.java index da3035dd010e..910d10be707d 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountImpl.java @@ -9,15 +9,14 @@ import com.azure.core.management.Region; import com.azure.core.util.Context; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountInner; -import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentInner; import com.azure.resourcemanager.logic.models.CallbackUrl; import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; import com.azure.resourcemanager.logic.models.IntegrationAccount; import com.azure.resourcemanager.logic.models.IntegrationAccountSku; -import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironment; import com.azure.resourcemanager.logic.models.KeyVaultKey; import com.azure.resourcemanager.logic.models.ListKeyVaultKeysDefinition; import com.azure.resourcemanager.logic.models.RegenerateActionParameter; +import com.azure.resourcemanager.logic.models.ResourceReference; import com.azure.resourcemanager.logic.models.TrackingEventsDefinition; import com.azure.resourcemanager.logic.models.WorkflowState; import java.util.Collections; @@ -58,13 +57,8 @@ public IntegrationAccountSku sku() { return this.innerModel().sku(); } - public IntegrationServiceEnvironment integrationServiceEnvironment() { - IntegrationServiceEnvironmentInner inner = this.innerModel().integrationServiceEnvironment(); - if (inner != null) { - return new IntegrationServiceEnvironmentImpl(inner, this.manager()); - } else { - return null; - } + public ResourceReference integrationServiceEnvironment() { + return this.innerModel().integrationServiceEnvironment(); } public WorkflowState state() { @@ -243,8 +237,7 @@ public IntegrationAccountImpl withSku(IntegrationAccountSku sku) { return this; } - public IntegrationAccountImpl withIntegrationServiceEnvironment( - IntegrationServiceEnvironmentInner integrationServiceEnvironment) { + public IntegrationAccountImpl withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment) { this.innerModel().withIntegrationServiceEnvironment(integrationServiceEnvironment); return this; } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsClientImpl.java index c4d59d79ba88..9649a6db9ad1 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsClientImpl.java @@ -170,7 +170,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -234,7 +235,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -294,7 +296,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -312,7 +314,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String integrationAccountName) { @@ -334,7 +336,7 @@ private PagedFlux listAsync(String resourceGroupName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -352,7 +354,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String integrationAccountName) { @@ -372,7 +374,7 @@ public PagedIterable list(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -389,7 +391,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -445,7 +447,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -497,7 +499,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -539,7 +541,7 @@ public IntegrationAccountMapInner get(String resourceGroupName, String integrati * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -548,7 +550,8 @@ public Response getWithResponse( } /** - * Creates or updates an integration account map. + * Creates or updates an integration account map. If the map is larger than 4 MB, you need to store the map in an + * Azure blob and use the blob's Shared Access Signature (SAS) URL as the 'contentLink' property value. * * @param resourceGroupName The resource group name. * @param integrationAccountName The integration account name. @@ -557,7 +560,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account map. + * @return the integration account map along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -610,7 +613,8 @@ private Mono> createOrUpdateWithResponseAsy } /** - * Creates or updates an integration account map. + * Creates or updates an integration account map. If the map is larger than 4 MB, you need to store the map in an + * Azure blob and use the blob's Shared Access Signature (SAS) URL as the 'contentLink' property value. * * @param resourceGroupName The resource group name. * @param integrationAccountName The integration account name. @@ -620,7 +624,7 @@ private Mono> createOrUpdateWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account map. + * @return the integration account map along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -674,7 +678,8 @@ private Mono> createOrUpdateWithResponseAsy } /** - * Creates or updates an integration account map. + * Creates or updates an integration account map. If the map is larger than 4 MB, you need to store the map in an + * Azure blob and use the blob's Shared Access Signature (SAS) URL as the 'contentLink' property value. * * @param resourceGroupName The resource group name. * @param integrationAccountName The integration account name. @@ -683,7 +688,7 @@ private Mono> createOrUpdateWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account map. + * @return the integration account map on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -700,7 +705,8 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates an integration account map. + * Creates or updates an integration account map. If the map is larger than 4 MB, you need to store the map in an + * Azure blob and use the blob's Shared Access Signature (SAS) URL as the 'contentLink' property value. * * @param resourceGroupName The resource group name. * @param integrationAccountName The integration account name. @@ -718,7 +724,8 @@ public IntegrationAccountMapInner createOrUpdate( } /** - * Creates or updates an integration account map. + * Creates or updates an integration account map. If the map is larger than 4 MB, you need to store the map in an + * Azure blob and use the blob's Shared Access Signature (SAS) URL as the 'contentLink' property value. * * @param resourceGroupName The resource group name. * @param integrationAccountName The integration account name. @@ -728,7 +735,7 @@ public IntegrationAccountMapInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account map. + * @return the integration account map along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -750,7 +757,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -806,7 +813,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -858,7 +865,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String integrationAccountName, String mapName) { @@ -891,7 +898,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -909,7 +916,7 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -977,7 +984,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -1042,7 +1049,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listContentCallbackUrlAsync( @@ -1095,7 +1102,7 @@ public WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listContentCallbackUrlWithResponse( @@ -1116,7 +1123,8 @@ public Response listContentCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration account maps. + * @return the list of integration account maps along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1152,7 +1160,8 @@ private Mono> listNextSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration account maps. + * @return the list of integration account maps along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsImpl.java index 45e5d3d5797f..d3f89e425ce0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountMapsImpl.java @@ -196,7 +196,7 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'maps'.", id))); } - this.deleteWithResponse(resourceGroupName, integrationAccountName, mapName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, mapName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersClientImpl.java index 032dffca4eff..792be83f57d1 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersClientImpl.java @@ -171,7 +171,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -235,7 +236,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -295,7 +297,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -313,7 +315,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -336,7 +338,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -354,7 +356,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String integrationAccountName) { @@ -374,7 +376,7 @@ public PagedIterable list(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -391,7 +393,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -447,7 +449,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -499,7 +501,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -542,7 +544,7 @@ public IntegrationAccountPartnerInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -560,7 +562,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account partner. + * @return the integration account partner along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -626,7 +628,7 @@ private Mono> createOrUpdateWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account partner. + * @return the integration account partner along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -689,7 +691,7 @@ private Mono> createOrUpdateWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account partner. + * @return the integration account partner on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -740,7 +742,7 @@ public IntegrationAccountPartnerInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account partner. + * @return the integration account partner along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -762,7 +764,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -818,7 +820,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -870,7 +872,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String integrationAccountName, String partnerName) { @@ -903,7 +905,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -921,7 +923,7 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -989,7 +991,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -1054,7 +1056,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listContentCallbackUrlAsync( @@ -1108,7 +1110,7 @@ public WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listContentCallbackUrlWithResponse( @@ -1129,7 +1131,8 @@ public Response listContentCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration account partners. + * @return the list of integration account partners along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1165,7 +1168,8 @@ private Mono> listNextSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration account partners. + * @return the list of integration account partners along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersImpl.java index 2b4f9a740e29..84898c7b3f57 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountPartnersImpl.java @@ -197,7 +197,7 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'partners'.", id))); } - this.deleteWithResponse(resourceGroupName, integrationAccountName, partnerName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, partnerName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasClientImpl.java index 12e0358d2e5f..ce2833714de0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasClientImpl.java @@ -171,7 +171,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -235,7 +236,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -295,7 +297,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -313,7 +315,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -336,7 +338,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -354,7 +356,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String integrationAccountName) { @@ -374,7 +376,7 @@ public PagedIterable list(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -391,7 +393,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -447,7 +449,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -499,7 +501,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -542,7 +544,7 @@ public IntegrationAccountSchemaInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -560,7 +562,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account schema. + * @return the integration account schema along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -626,7 +628,7 @@ private Mono> createOrUpdateWithResponse * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account schema. + * @return the integration account schema along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -689,7 +691,7 @@ private Mono> createOrUpdateWithResponse * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account schema. + * @return the integration account schema on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -740,7 +742,7 @@ public IntegrationAccountSchemaInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account schema. + * @return the integration account schema along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -762,7 +764,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -818,7 +820,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -870,7 +872,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String integrationAccountName, String schemaName) { @@ -903,7 +905,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -921,7 +923,7 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -989,7 +991,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listContentCallbackUrlWithResponseAsync( @@ -1054,7 +1056,7 @@ private Mono> listContentCallbackUrlWi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listContentCallbackUrlAsync( @@ -1108,7 +1110,7 @@ public WorkflowTriggerCallbackUrlInner listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listContentCallbackUrlWithResponse( @@ -1129,7 +1131,8 @@ public Response listContentCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration account schemas. + * @return the list of integration account schemas along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1165,7 +1168,8 @@ private Mono> listNextSinglePageAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration account schemas. + * @return the list of integration account schemas along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasImpl.java index 0a493dafcbd2..b6352268e308 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSchemasImpl.java @@ -197,7 +197,7 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'schemas'.", id))); } - this.deleteWithResponse(resourceGroupName, integrationAccountName, schemaName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, schemaName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsClientImpl.java index fd5855e60a2f..b3de3be4c0c9 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsClientImpl.java @@ -151,7 +151,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -215,7 +216,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -275,7 +277,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -293,7 +295,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -316,7 +318,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -334,7 +336,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String integrationAccountName) { @@ -354,7 +356,7 @@ public PagedIterable list(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -371,7 +373,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -427,7 +429,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -479,7 +481,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -522,7 +524,7 @@ public IntegrationAccountSessionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -540,7 +542,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account session. + * @return the integration account session along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -606,7 +608,7 @@ private Mono> createOrUpdateWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account session. + * @return the integration account session along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -669,7 +671,7 @@ private Mono> createOrUpdateWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account session. + * @return the integration account session on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -720,7 +722,7 @@ public IntegrationAccountSessionInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account session. + * @return the integration account session along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -742,7 +744,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -798,7 +800,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -850,7 +852,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String integrationAccountName, String sessionName) { @@ -883,7 +885,7 @@ public void delete(String resourceGroupName, String integrationAccountName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -898,7 +900,8 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration account sessions. + * @return the list of integration account sessions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -934,7 +937,8 @@ private Mono> listNextSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration account sessions. + * @return the list of integration account sessions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsImpl.java index c5ef47a9e568..2c9403b44e1c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountSessionsImpl.java @@ -156,7 +156,7 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'sessions'.", id))); } - this.deleteWithResponse(resourceGroupName, integrationAccountName, sessionName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, sessionName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsClientImpl.java index 12b3b6cba152..85e1b0fae843 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsClientImpl.java @@ -252,7 +252,8 @@ Mono> listByResourceGroupNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Integer top) { @@ -300,7 +301,8 @@ private Mono> listSinglePageAsync(Integer * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Integer top, Context context) { @@ -344,7 +346,7 @@ private Mono> listSinglePageAsync(Integer * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Integer top) { @@ -357,7 +359,7 @@ private PagedFlux listAsync(Integer top) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -374,7 +376,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Integer top, Context context) { @@ -388,7 +390,7 @@ private PagedFlux listAsync(Integer top, Context contex * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -404,7 +406,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Integer top, Context context) { @@ -419,7 +421,8 @@ public PagedIterable list(Integer top, Context context) * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -474,7 +477,8 @@ private Mono> listByResourceGroupSinglePa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -525,7 +529,7 @@ private Mono> listByResourceGroupSinglePa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top) { @@ -541,7 +545,7 @@ private PagedFlux listByResourceGroupAsync(String resou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -560,7 +564,7 @@ private PagedFlux listByResourceGroupAsync(String resou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync( @@ -577,7 +581,7 @@ private PagedFlux listByResourceGroupAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -594,7 +598,7 @@ public PagedIterable listByResourceGroup(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup( @@ -610,7 +614,7 @@ public PagedIterable listByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -661,7 +665,7 @@ private Mono> getByResourceGroupWithResponseAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -708,7 +712,7 @@ private Mono> getByResourceGroupWithResponseAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync( @@ -748,7 +752,7 @@ public IntegrationAccountInner getByResourceGroup(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse( @@ -765,7 +769,7 @@ public Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -824,7 +828,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -882,7 +886,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -925,7 +929,7 @@ public IntegrationAccountInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -946,7 +950,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -1005,7 +1009,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -1063,7 +1067,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1106,7 +1110,7 @@ public IntegrationAccountInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse( @@ -1125,7 +1129,7 @@ public Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync(String resourceGroupName, String integrationAccountName) { @@ -1175,7 +1179,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -1222,7 +1226,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String integrationAccountName) { @@ -1253,7 +1257,7 @@ public void delete(String resourceGroupName, String integrationAccountName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String integrationAccountName, Context context) { @@ -1269,7 +1273,8 @@ public Response deleteWithResponse(String resourceGroupName, String integr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account callback URL. + * @return the integration account callback URL along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -1327,7 +1332,8 @@ private Mono> listCallbackUrlWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account callback URL. + * @return the integration account callback URL along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -1381,7 +1387,7 @@ private Mono> listCallbackUrlWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account callback URL. + * @return the integration account callback URL on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listCallbackUrlAsync( @@ -1424,7 +1430,7 @@ public CallbackUrlInner listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account callback URL. + * @return the integration account callback URL along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listCallbackUrlWithResponse( @@ -1441,7 +1447,8 @@ public Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listKeyVaultKeysSinglePageAsync( @@ -1504,7 +1511,8 @@ private Mono> listKeyVaultKeysSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listKeyVaultKeysSinglePageAsync( @@ -1566,7 +1574,7 @@ private Mono> listKeyVaultKeysSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listKeyVaultKeysAsync( @@ -1585,7 +1593,7 @@ private PagedFlux listKeyVaultKeysAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listKeyVaultKeysAsync( @@ -1607,7 +1615,7 @@ private PagedFlux listKeyVaultKeysAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listKeyVaultKeys( @@ -1625,7 +1633,7 @@ public PagedIterable listKeyVaultKeys( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listKeyVaultKeys( @@ -1646,7 +1654,7 @@ public PagedIterable listKeyVaultKeys( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> logTrackingEventsWithResponseAsync( @@ -1705,7 +1713,7 @@ private Mono> logTrackingEventsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> logTrackingEventsWithResponseAsync( @@ -1763,7 +1771,7 @@ private Mono> logTrackingEventsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono logTrackingEventsAsync( @@ -1798,7 +1806,7 @@ public void logTrackingEvents( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response logTrackingEventsWithResponse( @@ -1819,7 +1827,7 @@ public Response logTrackingEventsWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> regenerateAccessKeyWithResponseAsync( @@ -1878,7 +1886,7 @@ private Mono> regenerateAccessKeyWithResponseA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> regenerateAccessKeyWithResponseAsync( @@ -1936,7 +1944,7 @@ private Mono> regenerateAccessKeyWithResponseA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono regenerateAccessKeyAsync( @@ -1979,7 +1987,7 @@ public IntegrationAccountInner regenerateAccessKey( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response regenerateAccessKeyWithResponse( @@ -1999,7 +2007,8 @@ public Response regenerateAccessKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration accounts. + * @return the list of integration accounts along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -2036,7 +2045,8 @@ private Mono> listBySubscriptionNextSingl * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration accounts. + * @return the list of integration accounts along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync( @@ -2072,7 +2082,8 @@ private Mono> listBySubscriptionNextSingl * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration accounts. + * @return the list of integration accounts along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -2109,7 +2120,8 @@ private Mono> listByResourceGroupNextSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration accounts. + * @return the list of integration accounts along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsImpl.java index 49e81fb521a1..5f5413ad750d 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountsImpl.java @@ -243,7 +243,7 @@ public void deleteById(String id) { .format( "The resource ID '%s' is not valid. Missing path segment 'integrationAccounts'.", id))); } - this.deleteWithResponse(resourceGroupName, integrationAccountName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, integrationAccountName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentImpl.java index 6631ab985581..00d267634b35 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentImpl.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironment; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentProperties; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSku; +import com.azure.resourcemanager.logic.models.ManagedServiceIdentity; import java.util.Collections; import java.util.Map; @@ -55,6 +56,10 @@ public IntegrationServiceEnvironmentSku sku() { return this.innerModel().sku(); } + public ManagedServiceIdentity identity() { + return this.innerModel().identity(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -189,4 +194,9 @@ public IntegrationServiceEnvironmentImpl withSku(IntegrationServiceEnvironmentSk this.innerModel().withSku(sku); return this; } + + public IntegrationServiceEnvironmentImpl withIdentity(ManagedServiceIdentity identity) { + this.innerModel().withIdentity(identity); + return this; + } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiImpl.java new file mode 100644 index 000000000000..336f3959dba9 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiImpl.java @@ -0,0 +1,261 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.implementation; + +import com.azure.core.management.Region; +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner; +import com.azure.resourcemanager.logic.models.ApiResourceBackendService; +import com.azure.resourcemanager.logic.models.ApiResourceDefinitions; +import com.azure.resourcemanager.logic.models.ApiResourceGeneralInformation; +import com.azure.resourcemanager.logic.models.ApiResourceMetadata; +import com.azure.resourcemanager.logic.models.ApiResourcePolicies; +import com.azure.resourcemanager.logic.models.ApiTier; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApi; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApiDeploymentParameters; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowProvisioningState; +import java.util.Collections; +import java.util.List; +import java.util.Map; + +public final class IntegrationServiceEnvironmentManagedApiImpl + implements IntegrationServiceEnvironmentManagedApi, + IntegrationServiceEnvironmentManagedApi.Definition, + IntegrationServiceEnvironmentManagedApi.Update { + private IntegrationServiceEnvironmentManagedApiInner innerObject; + + private final com.azure.resourcemanager.logic.LogicManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters() { + return this.innerModel().deploymentParameters(); + } + + public String namePropertiesName() { + return this.innerModel().namePropertiesName(); + } + + public Map connectionParameters() { + Map inner = this.innerModel().connectionParameters(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public ApiResourceMetadata metadata() { + return this.innerModel().metadata(); + } + + public List runtimeUrls() { + List inner = this.innerModel().runtimeUrls(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public ApiResourceGeneralInformation generalInformation() { + return this.innerModel().generalInformation(); + } + + public List capabilities() { + List inner = this.innerModel().capabilities(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public ApiResourceBackendService backendService() { + return this.innerModel().backendService(); + } + + public ApiResourcePolicies policies() { + return this.innerModel().policies(); + } + + public String apiDefinitionUrl() { + return this.innerModel().apiDefinitionUrl(); + } + + public ApiResourceDefinitions apiDefinitions() { + return this.innerModel().apiDefinitions(); + } + + public ResourceReference integrationServiceEnvironment() { + return this.innerModel().integrationServiceEnvironment(); + } + + public WorkflowProvisioningState provisioningState() { + return this.innerModel().provisioningState(); + } + + public ApiTier category() { + return this.innerModel().category(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public IntegrationServiceEnvironmentManagedApiInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.logic.LogicManager manager() { + return this.serviceManager; + } + + private String resourceGroup; + + private String integrationServiceEnvironmentName; + + private String apiName; + + public IntegrationServiceEnvironmentManagedApiImpl withExistingIntegrationServiceEnvironment( + String resourceGroup, String integrationServiceEnvironmentName) { + this.resourceGroup = resourceGroup; + this.integrationServiceEnvironmentName = integrationServiceEnvironmentName; + return this; + } + + public IntegrationServiceEnvironmentManagedApi create() { + this.innerObject = + serviceManager + .serviceClient() + .getIntegrationServiceEnvironmentManagedApis() + .put(resourceGroup, integrationServiceEnvironmentName, apiName, this.innerModel(), Context.NONE); + return this; + } + + public IntegrationServiceEnvironmentManagedApi create(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getIntegrationServiceEnvironmentManagedApis() + .put(resourceGroup, integrationServiceEnvironmentName, apiName, this.innerModel(), context); + return this; + } + + IntegrationServiceEnvironmentManagedApiImpl( + String name, com.azure.resourcemanager.logic.LogicManager serviceManager) { + this.innerObject = new IntegrationServiceEnvironmentManagedApiInner(); + this.serviceManager = serviceManager; + this.apiName = name; + } + + public IntegrationServiceEnvironmentManagedApiImpl update() { + return this; + } + + public IntegrationServiceEnvironmentManagedApi apply() { + this.innerObject = + serviceManager + .serviceClient() + .getIntegrationServiceEnvironmentManagedApis() + .put(resourceGroup, integrationServiceEnvironmentName, apiName, this.innerModel(), Context.NONE); + return this; + } + + public IntegrationServiceEnvironmentManagedApi apply(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getIntegrationServiceEnvironmentManagedApis() + .put(resourceGroup, integrationServiceEnvironmentName, apiName, this.innerModel(), context); + return this; + } + + IntegrationServiceEnvironmentManagedApiImpl( + IntegrationServiceEnvironmentManagedApiInner innerObject, + com.azure.resourcemanager.logic.LogicManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroup = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.integrationServiceEnvironmentName = + Utils.getValueFromIdByName(innerObject.id(), "integrationServiceEnvironments"); + this.apiName = Utils.getValueFromIdByName(innerObject.id(), "managedApis"); + } + + public IntegrationServiceEnvironmentManagedApi refresh() { + this.innerObject = + serviceManager + .serviceClient() + .getIntegrationServiceEnvironmentManagedApis() + .getWithResponse(resourceGroup, integrationServiceEnvironmentName, apiName, Context.NONE) + .getValue(); + return this; + } + + public IntegrationServiceEnvironmentManagedApi refresh(Context context) { + this.innerObject = + serviceManager + .serviceClient() + .getIntegrationServiceEnvironmentManagedApis() + .getWithResponse(resourceGroup, integrationServiceEnvironmentName, apiName, context) + .getValue(); + return this; + } + + public IntegrationServiceEnvironmentManagedApiImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public IntegrationServiceEnvironmentManagedApiImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public IntegrationServiceEnvironmentManagedApiImpl withTags(Map tags) { + this.innerModel().withTags(tags); + return this; + } + + public IntegrationServiceEnvironmentManagedApiImpl withDeploymentParameters( + IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters) { + this.innerModel().withDeploymentParameters(deploymentParameters); + return this; + } + + public IntegrationServiceEnvironmentManagedApiImpl withIntegrationServiceEnvironment( + ResourceReference integrationServiceEnvironment) { + this.innerModel().withIntegrationServiceEnvironment(integrationServiceEnvironment); + return this; + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiOperationsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiOperationsClientImpl.java index 72ec76bb3191..64a8f208455a 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiOperationsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApiOperationsClientImpl.java @@ -106,7 +106,7 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -171,7 +171,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -232,7 +232,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -252,7 +252,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -271,7 +271,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -289,7 +289,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -304,7 +304,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of managed API operations. + * @return the list of managed API operations along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -340,7 +341,8 @@ private Mono> listNextSinglePageAsync(String ne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of managed API operations. + * @return the list of managed API operations along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisClientImpl.java index 50f45253fc68..a1b7ba11263f 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisClientImpl.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.logic.implementation; +import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delete; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; @@ -32,8 +33,8 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.logic.fluent.IntegrationServiceEnvironmentManagedApisClient; -import com.azure.resourcemanager.logic.fluent.models.ManagedApiInner; -import com.azure.resourcemanager.logic.models.ManagedApiListResult; +import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApiListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -80,7 +81,7 @@ private interface IntegrationServiceEnvironmentManagedApisService { + "/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( + Mono> list( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroup") String resourceGroup, @@ -95,7 +96,7 @@ Mono> list( + "/integrationServiceEnvironments/{integrationServiceEnvironmentName}/managedApis/{apiName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( + Mono> get( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroup") String resourceGroup, @@ -118,6 +119,8 @@ Mono>> put( @PathParam("integrationServiceEnvironmentName") String integrationServiceEnvironmentName, @PathParam("apiName") String apiName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, @HeaderParam("Accept") String accept, Context context); @@ -141,7 +144,7 @@ Mono>> delete( @Get("{nextLink}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( + Mono> listNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, @@ -156,10 +159,11 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( + private Mono> listSinglePageAsync( String resourceGroup, String integrationServiceEnvironmentName) { if (this.client.getEndpoint() == null) { return Mono @@ -195,7 +199,7 @@ private Mono> listSinglePageAsync( this.client.getApiVersion(), accept, context)) - .>map( + .>map( res -> new PagedResponseBase<>( res.getRequest(), @@ -216,10 +220,11 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( + private Mono> listSinglePageAsync( String resourceGroup, String integrationServiceEnvironmentName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -272,10 +277,11 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroup, String integrationServiceEnvironmentName) { + private PagedFlux listAsync( + String resourceGroup, String integrationServiceEnvironmentName) { return new PagedFlux<>( () -> listSinglePageAsync(resourceGroup, integrationServiceEnvironmentName), nextLink -> listNextSinglePageAsync(nextLink)); @@ -290,10 +296,10 @@ private PagedFlux listAsync(String resourceGroup, String integr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( + private PagedFlux listAsync( String resourceGroup, String integrationServiceEnvironmentName, Context context) { return new PagedFlux<>( () -> listSinglePageAsync(resourceGroup, integrationServiceEnvironmentName, context), @@ -308,10 +314,11 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName) { + public PagedIterable list( + String resourceGroup, String integrationServiceEnvironmentName) { return new PagedIterable<>(listAsync(resourceGroup, integrationServiceEnvironmentName)); } @@ -324,10 +331,10 @@ public PagedIterable list(String resourceGroup, String integrat * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( + public PagedIterable list( String resourceGroup, String integrationServiceEnvironmentName, Context context) { return new PagedIterable<>(listAsync(resourceGroup, integrationServiceEnvironmentName, context)); } @@ -341,10 +348,11 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Api. + * @return the integration service environment managed Api along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( + private Mono> getWithResponseAsync( String resourceGroup, String integrationServiceEnvironmentName, String apiName) { if (this.client.getEndpoint() == null) { return Mono @@ -397,10 +405,11 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Api. + * @return the integration service environment managed Api along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( + private Mono> getWithResponseAsync( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { if (this.client.getEndpoint() == null) { return Mono @@ -449,14 +458,14 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Api. + * @return the integration service environment managed Api on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( + private Mono getAsync( String resourceGroup, String integrationServiceEnvironmentName, String apiName) { return getWithResponseAsync(resourceGroup, integrationServiceEnvironmentName, apiName) .flatMap( - (Response res) -> { + (Response res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { @@ -477,7 +486,8 @@ private Mono getAsync( * @return the integration service environment managed Api. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedApiInner get(String resourceGroup, String integrationServiceEnvironmentName, String apiName) { + public IntegrationServiceEnvironmentManagedApiInner get( + String resourceGroup, String integrationServiceEnvironmentName, String apiName) { return getAsync(resourceGroup, integrationServiceEnvironmentName, apiName).block(); } @@ -491,10 +501,10 @@ public ManagedApiInner get(String resourceGroup, String integrationServiceEnviro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Api. + * @return the integration service environment managed Api along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public Response getWithResponse( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { return getWithResponseAsync(resourceGroup, integrationServiceEnvironmentName, apiName, context).block(); } @@ -505,14 +515,19 @@ public Response getWithResponse( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> putWithResponseAsync( - String resourceGroup, String integrationServiceEnvironmentName, String apiName) { + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -537,6 +552,14 @@ private Mono>> putWithResponseAsync( if (apiName == null) { return Mono.error(new IllegalArgumentException("Parameter apiName is required and cannot be null.")); } + if (integrationServiceEnvironmentManagedApi == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter integrationServiceEnvironmentManagedApi is required and cannot be null.")); + } else { + integrationServiceEnvironmentManagedApi.validate(); + } final String accept = "application/json"; return FluxUtil .withContext( @@ -549,6 +572,7 @@ private Mono>> putWithResponseAsync( integrationServiceEnvironmentName, apiName, this.client.getApiVersion(), + integrationServiceEnvironmentManagedApi, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -560,15 +584,21 @@ private Mono>> putWithResponseAsync( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> putWithResponseAsync( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, + Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -593,6 +623,14 @@ private Mono>> putWithResponseAsync( if (apiName == null) { return Mono.error(new IllegalArgumentException("Parameter apiName is required and cannot be null.")); } + if (integrationServiceEnvironmentManagedApi == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter integrationServiceEnvironmentManagedApi is required and cannot be null.")); + } else { + integrationServiceEnvironmentManagedApi.validate(); + } final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -603,6 +641,7 @@ private Mono>> putWithResponseAsync( integrationServiceEnvironmentName, apiName, this.client.getApiVersion(), + integrationServiceEnvironmentManagedApi, accept, context); } @@ -613,20 +652,31 @@ private Mono>> putWithResponseAsync( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the {@link PollerFlux} for polling of the integration service environment managed api. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PollerFlux, ManagedApiInner> beginPutAsync( - String resourceGroup, String integrationServiceEnvironmentName, String apiName) { + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux< + PollResult, IntegrationServiceEnvironmentManagedApiInner> + beginPutAsync( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi) { Mono>> mono = - putWithResponseAsync(resourceGroup, integrationServiceEnvironmentName, apiName); + putWithResponseAsync( + resourceGroup, integrationServiceEnvironmentName, apiName, integrationServiceEnvironmentManagedApi); return this .client - .getLroResult( - mono, this.client.getHttpPipeline(), ManagedApiInner.class, ManagedApiInner.class, Context.NONE); + .getLroResult( + mono, + this.client.getHttpPipeline(), + IntegrationServiceEnvironmentManagedApiInner.class, + IntegrationServiceEnvironmentManagedApiInner.class, + this.client.getContext()); } /** @@ -635,22 +685,38 @@ private PollerFlux, ManagedApiInner> beginPutAsync( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the {@link PollerFlux} for polling of the integration service environment managed api. */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PollerFlux, ManagedApiInner> beginPutAsync( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux< + PollResult, IntegrationServiceEnvironmentManagedApiInner> + beginPutAsync( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, + Context context) { context = this.client.mergeContext(context); Mono>> mono = - putWithResponseAsync(resourceGroup, integrationServiceEnvironmentName, apiName, context); + putWithResponseAsync( + resourceGroup, + integrationServiceEnvironmentName, + apiName, + integrationServiceEnvironmentManagedApi, + context); return this .client - .getLroResult( - mono, this.client.getHttpPipeline(), ManagedApiInner.class, ManagedApiInner.class, context); + .getLroResult( + mono, + this.client.getHttpPipeline(), + IntegrationServiceEnvironmentManagedApiInner.class, + IntegrationServiceEnvironmentManagedApiInner.class, + context); } /** @@ -659,15 +725,23 @@ private PollerFlux, ManagedApiInner> beginPutAsync( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the {@link SyncPoller} for polling of the integration service environment managed api. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SyncPoller, ManagedApiInner> beginPut( - String resourceGroup, String integrationServiceEnvironmentName, String apiName) { - return beginPutAsync(resourceGroup, integrationServiceEnvironmentName, apiName).getSyncPoller(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller< + PollResult, IntegrationServiceEnvironmentManagedApiInner> + beginPut( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi) { + return beginPutAsync( + resourceGroup, integrationServiceEnvironmentName, apiName, integrationServiceEnvironmentManagedApi) + .getSyncPoller(); } /** @@ -676,16 +750,29 @@ public SyncPoller, ManagedApiInner> beginPut( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the {@link SyncPoller} for polling of the integration service environment managed api. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public SyncPoller, ManagedApiInner> beginPut( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { - return beginPutAsync(resourceGroup, integrationServiceEnvironmentName, apiName, context).getSyncPoller(); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller< + PollResult, IntegrationServiceEnvironmentManagedApiInner> + beginPut( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, + Context context) { + return beginPutAsync( + resourceGroup, + integrationServiceEnvironmentName, + apiName, + integrationServiceEnvironmentManagedApi, + context) + .getSyncPoller(); } /** @@ -694,15 +781,20 @@ public SyncPoller, ManagedApiInner> beginPut( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono putAsync( - String resourceGroup, String integrationServiceEnvironmentName, String apiName) { - return beginPutAsync(resourceGroup, integrationServiceEnvironmentName, apiName) + private Mono putAsync( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi) { + return beginPutAsync( + resourceGroup, integrationServiceEnvironmentName, apiName, integrationServiceEnvironmentManagedApi) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -713,16 +805,26 @@ private Mono putAsync( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono putAsync( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { - return beginPutAsync(resourceGroup, integrationServiceEnvironmentName, apiName, context) + private Mono putAsync( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, + Context context) { + return beginPutAsync( + resourceGroup, + integrationServiceEnvironmentName, + apiName, + integrationServiceEnvironmentManagedApi, + context) .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -733,14 +835,21 @@ private Mono putAsync( * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedApiInner put(String resourceGroup, String integrationServiceEnvironmentName, String apiName) { - return putAsync(resourceGroup, integrationServiceEnvironmentName, apiName).block(); + public IntegrationServiceEnvironmentManagedApiInner put( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi) { + return putAsync( + resourceGroup, integrationServiceEnvironmentName, apiName, integrationServiceEnvironmentManagedApi) + .block(); } /** @@ -749,16 +858,27 @@ public ManagedApiInner put(String resourceGroup, String integrationServiceEnviro * @param resourceGroup The resource group name. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. + * @param integrationServiceEnvironmentManagedApi The integration service environment managed api. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. + * @return the integration service environment managed api. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedApiInner put( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { - return putAsync(resourceGroup, integrationServiceEnvironmentName, apiName, context).block(); + public IntegrationServiceEnvironmentManagedApiInner put( + String resourceGroup, + String integrationServiceEnvironmentName, + String apiName, + IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi, + Context context) { + return putAsync( + resourceGroup, + integrationServiceEnvironmentName, + apiName, + integrationServiceEnvironmentManagedApi, + context) + .block(); } /** @@ -770,7 +890,7 @@ public ManagedApiInner put( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -826,7 +946,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync( @@ -878,16 +998,17 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroup, String integrationServiceEnvironmentName, String apiName) { Mono>> mono = deleteWithResponseAsync(resourceGroup, integrationServiceEnvironmentName, apiName); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -900,9 +1021,9 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { context = this.client.mergeContext(context); @@ -922,9 +1043,9 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroup, String integrationServiceEnvironmentName, String apiName) { return beginDeleteAsync(resourceGroup, integrationServiceEnvironmentName, apiName).getSyncPoller(); @@ -940,9 +1061,9 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { return beginDeleteAsync(resourceGroup, integrationServiceEnvironmentName, apiName, context).getSyncPoller(); @@ -957,7 +1078,7 @@ public SyncPoller, Void> beginDelete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroup, String integrationServiceEnvironmentName, String apiName) { @@ -976,7 +1097,7 @@ private Mono deleteAsync(String resourceGroup, String integrationServiceEn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync( @@ -1025,10 +1146,11 @@ public void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of managed APIs. + * @return the list of integration service environment managed APIs along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -1041,7 +1163,7 @@ private Mono> listNextSinglePageAsync(String next final String accept = "application/json"; return FluxUtil .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( + .>map( res -> new PagedResponseBase<>( res.getRequest(), @@ -1061,10 +1183,12 @@ private Mono> listNextSinglePageAsync(String next * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of managed APIs. + * @return the list of integration service environment managed APIs along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listNextSinglePageAsync( + String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisImpl.java index 378c0fa53e66..aa43c43c1648 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentManagedApisImpl.java @@ -10,9 +10,9 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.logic.fluent.IntegrationServiceEnvironmentManagedApisClient; -import com.azure.resourcemanager.logic.fluent.models.ManagedApiInner; +import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApi; import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentManagedApis; -import com.azure.resourcemanager.logic.models.ManagedApi; import com.fasterxml.jackson.annotation.JsonIgnore; public final class IntegrationServiceEnvironmentManagedApisImpl implements IntegrationServiceEnvironmentManagedApis { @@ -30,70 +30,173 @@ public IntegrationServiceEnvironmentManagedApisImpl( this.serviceManager = serviceManager; } - public PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName) { - PagedIterable inner = + public PagedIterable list( + String resourceGroup, String integrationServiceEnvironmentName) { + PagedIterable inner = this.serviceClient().list(resourceGroup, integrationServiceEnvironmentName); - return Utils.mapPage(inner, inner1 -> new ManagedApiImpl(inner1, this.manager())); + return Utils.mapPage(inner, inner1 -> new IntegrationServiceEnvironmentManagedApiImpl(inner1, this.manager())); } - public PagedIterable list( + public PagedIterable list( String resourceGroup, String integrationServiceEnvironmentName, Context context) { - PagedIterable inner = + PagedIterable inner = this.serviceClient().list(resourceGroup, integrationServiceEnvironmentName, context); - return Utils.mapPage(inner, inner1 -> new ManagedApiImpl(inner1, this.manager())); + return Utils.mapPage(inner, inner1 -> new IntegrationServiceEnvironmentManagedApiImpl(inner1, this.manager())); } - public ManagedApi get(String resourceGroup, String integrationServiceEnvironmentName, String apiName) { - ManagedApiInner inner = this.serviceClient().get(resourceGroup, integrationServiceEnvironmentName, apiName); + public IntegrationServiceEnvironmentManagedApi get( + String resourceGroup, String integrationServiceEnvironmentName, String apiName) { + IntegrationServiceEnvironmentManagedApiInner inner = + this.serviceClient().get(resourceGroup, integrationServiceEnvironmentName, apiName); if (inner != null) { - return new ManagedApiImpl(inner, this.manager()); + return new IntegrationServiceEnvironmentManagedApiImpl(inner, this.manager()); } else { return null; } } - public Response getWithResponse( + public Response getWithResponse( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { - Response inner = + Response inner = this.serviceClient().getWithResponse(resourceGroup, integrationServiceEnvironmentName, apiName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ManagedApiImpl(inner.getValue(), this.manager())); + new IntegrationServiceEnvironmentManagedApiImpl(inner.getValue(), this.manager())); } else { return null; } } - public ManagedApi put(String resourceGroup, String integrationServiceEnvironmentName, String apiName) { - ManagedApiInner inner = this.serviceClient().put(resourceGroup, integrationServiceEnvironmentName, apiName); - if (inner != null) { - return new ManagedApiImpl(inner, this.manager()); - } else { - return null; - } + public void delete(String resourceGroup, String integrationServiceEnvironmentName, String apiName) { + this.serviceClient().delete(resourceGroup, integrationServiceEnvironmentName, apiName); } - public ManagedApi put( + public void delete( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { - ManagedApiInner inner = - this.serviceClient().put(resourceGroup, integrationServiceEnvironmentName, apiName, context); - if (inner != null) { - return new ManagedApiImpl(inner, this.manager()); - } else { - return null; + this.serviceClient().delete(resourceGroup, integrationServiceEnvironmentName, apiName, context); + } + + public IntegrationServiceEnvironmentManagedApi getById(String id) { + String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroup == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } + String integrationServiceEnvironmentName = Utils.getValueFromIdByName(id, "integrationServiceEnvironments"); + if (integrationServiceEnvironmentName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String + .format( + "The resource ID '%s' is not valid. Missing path segment" + + " 'integrationServiceEnvironments'.", + id))); + } + String apiName = Utils.getValueFromIdByName(id, "managedApis"); + if (apiName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'managedApis'.", id))); + } + return this.getWithResponse(resourceGroup, integrationServiceEnvironmentName, apiName, Context.NONE).getValue(); } - public void delete(String resourceGroup, String integrationServiceEnvironmentName, String apiName) { - this.serviceClient().delete(resourceGroup, integrationServiceEnvironmentName, apiName); + public Response getByIdWithResponse(String id, Context context) { + String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroup == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String integrationServiceEnvironmentName = Utils.getValueFromIdByName(id, "integrationServiceEnvironments"); + if (integrationServiceEnvironmentName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String + .format( + "The resource ID '%s' is not valid. Missing path segment" + + " 'integrationServiceEnvironments'.", + id))); + } + String apiName = Utils.getValueFromIdByName(id, "managedApis"); + if (apiName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'managedApis'.", id))); + } + return this.getWithResponse(resourceGroup, integrationServiceEnvironmentName, apiName, context); } - public void delete( - String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) { - this.serviceClient().delete(resourceGroup, integrationServiceEnvironmentName, apiName, context); + public void deleteById(String id) { + String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroup == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String integrationServiceEnvironmentName = Utils.getValueFromIdByName(id, "integrationServiceEnvironments"); + if (integrationServiceEnvironmentName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String + .format( + "The resource ID '%s' is not valid. Missing path segment" + + " 'integrationServiceEnvironments'.", + id))); + } + String apiName = Utils.getValueFromIdByName(id, "managedApis"); + if (apiName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'managedApis'.", id))); + } + this.delete(resourceGroup, integrationServiceEnvironmentName, apiName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroup = Utils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroup == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String + .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String integrationServiceEnvironmentName = Utils.getValueFromIdByName(id, "integrationServiceEnvironments"); + if (integrationServiceEnvironmentName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String + .format( + "The resource ID '%s' is not valid. Missing path segment" + + " 'integrationServiceEnvironments'.", + id))); + } + String apiName = Utils.getValueFromIdByName(id, "managedApis"); + if (apiName == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'managedApis'.", id))); + } + this.delete(resourceGroup, integrationServiceEnvironmentName, apiName, context); } private IntegrationServiceEnvironmentManagedApisClient serviceClient() { @@ -103,4 +206,8 @@ private IntegrationServiceEnvironmentManagedApisClient serviceClient() { private com.azure.resourcemanager.logic.LogicManager manager() { return this.serviceManager; } + + public IntegrationServiceEnvironmentManagedApiImpl define(String name) { + return new IntegrationServiceEnvironmentManagedApiImpl(name, this.manager()); + } } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentNetworkHealthsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentNetworkHealthsClientImpl.java index 1141e7bf51a9..b30450fb42fe 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentNetworkHealthsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentNetworkHealthsClientImpl.java @@ -87,7 +87,8 @@ Mono * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment network health. + * @return the integration service environment network health along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> getWithResponseAsync( @@ -138,7 +139,8 @@ private Mono>> getWithResponseAsync( @@ -185,7 +187,7 @@ private Mono> getAsync( @@ -226,7 +228,7 @@ public Map get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment network health. + * @return the integration service environment network health along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response> getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentSkusClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentSkusClientImpl.java index 336afc160139..0586aaf3077e 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentSkusClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentSkusClientImpl.java @@ -99,7 +99,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -159,7 +160,8 @@ private Mono> lis * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -215,7 +217,7 @@ private Mono> lis * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -234,7 +236,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -252,7 +254,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -269,7 +271,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -284,7 +286,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration service environment skus. + * @return the list of integration service environment skus along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( @@ -321,7 +324,8 @@ private Mono> lis * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration service environment skus. + * @return the list of integration service environment skus along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsClientImpl.java index 783a6c32cf03..2907a555a2f1 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsClientImpl.java @@ -205,7 +205,8 @@ Mono> listByResourceGroupNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Integer top) { @@ -253,7 +254,8 @@ private Mono> listSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Integer top, Context context) { @@ -297,7 +299,7 @@ private Mono> listSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Integer top) { @@ -310,7 +312,7 @@ private PagedFlux listAsync(Integer top) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -327,7 +329,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Integer top, Context context) { @@ -341,7 +343,8 @@ private PagedFlux listAsync(Integer top, Con * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -357,7 +360,8 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Integer top, Context context) { @@ -372,7 +376,8 @@ public PagedIterable list(Integer top, Conte * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -426,7 +431,8 @@ private Mono> listByResourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -476,7 +482,8 @@ private Mono> listByResourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroup, Integer top) { @@ -492,7 +499,8 @@ private PagedFlux listByResourceGroupAsync(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroup) { @@ -511,7 +519,8 @@ private PagedFlux listByResourceGroupAsync(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync( @@ -528,7 +537,8 @@ private PagedFlux listByResourceGroupAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroup) { @@ -545,7 +555,8 @@ public PagedIterable listByResourceGroup(Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup( @@ -561,7 +572,7 @@ public PagedIterable listByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -612,7 +623,7 @@ private Mono> getByResourceGroupWit * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -659,7 +670,7 @@ private Mono> getByResourceGroupWit * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync( @@ -700,7 +711,7 @@ public IntegrationServiceEnvironmentInner getByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse( @@ -717,7 +728,7 @@ public Response getByResourceGroupWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -780,7 +791,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -840,9 +851,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link PollerFlux} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationServiceEnvironmentInner> beginCreateOrUpdateAsync( String resourceGroup, @@ -858,7 +869,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getHttpPipeline(), IntegrationServiceEnvironmentInner.class, IntegrationServiceEnvironmentInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -871,9 +882,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link PollerFlux} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationServiceEnvironmentInner> beginCreateOrUpdateAsync( String resourceGroup, @@ -903,9 +914,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationServiceEnvironmentInner> beginCreateOrUpdate( String resourceGroup, @@ -925,9 +936,9 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationServiceEnvironmentInner> beginCreateOrUpdate( String resourceGroup, @@ -948,7 +959,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -970,7 +981,7 @@ private Mono createOrUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -1036,7 +1047,7 @@ public IntegrationServiceEnvironmentInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1099,7 +1110,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -1159,9 +1170,9 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link PollerFlux} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationServiceEnvironmentInner> beginUpdateAsync( String resourceGroup, @@ -1176,7 +1187,7 @@ private Mono>> updateWithResponseAsync( this.client.getHttpPipeline(), IntegrationServiceEnvironmentInner.class, IntegrationServiceEnvironmentInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -1189,9 +1200,9 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link PollerFlux} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationServiceEnvironmentInner> beginUpdateAsync( String resourceGroup, @@ -1221,9 +1232,9 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationServiceEnvironmentInner> beginUpdate( String resourceGroup, String integrationServiceEnvironmentName, @@ -1242,9 +1253,9 @@ public SyncPoller, IntegrationSer * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the {@link SyncPoller} for polling of the integration service environment. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationServiceEnvironmentInner> beginUpdate( String resourceGroup, String integrationServiceEnvironmentName, @@ -1264,7 +1275,7 @@ public SyncPoller, IntegrationSer * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1286,7 +1297,7 @@ private Mono updateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment. + * @return the integration service environment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -1349,7 +1360,7 @@ public IntegrationServiceEnvironmentInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -1400,7 +1411,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -1447,7 +1458,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroup, String integrationServiceEnvironmentName) { @@ -1478,7 +1489,7 @@ public void delete(String resourceGroup, String integrationServiceEnvironmentNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse( @@ -1494,7 +1505,7 @@ public Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> restartWithResponseAsync( @@ -1545,7 +1556,7 @@ private Mono> restartWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> restartWithResponseAsync( @@ -1592,7 +1603,7 @@ private Mono> restartWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono restartAsync(String resourceGroup, String integrationServiceEnvironmentName) { @@ -1623,7 +1634,7 @@ public void restart(String resourceGroup, String integrationServiceEnvironmentNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response restartWithResponse( @@ -1638,7 +1649,8 @@ public Response restartWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration service environments. + * @return the list of integration service environments along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync( @@ -1676,7 +1688,8 @@ private Mono> listBySubscripti * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration service environments. + * @return the list of integration service environments along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync( @@ -1712,7 +1725,8 @@ private Mono> listBySubscripti * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration service environments. + * @return the list of integration service environments along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync( @@ -1750,7 +1764,8 @@ private Mono> listByResourceGr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of integration service environments. + * @return the list of integration service environments along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsImpl.java index f02f251d46dc..c9d448cfba1d 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentsImpl.java @@ -165,7 +165,7 @@ public void deleteById(String id) { + " 'integrationServiceEnvironments'.", id))); } - this.deleteWithResponse(resourceGroup, integrationServiceEnvironmentName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroup, integrationServiceEnvironmentName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/ManagedApiImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/ManagedApiImpl.java deleted file mode 100644 index 09c7de28bb6e..000000000000 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/ManagedApiImpl.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.logic.implementation; - -import com.azure.resourcemanager.logic.fluent.models.ManagedApiInner; -import com.azure.resourcemanager.logic.models.ApiResourceProperties; -import com.azure.resourcemanager.logic.models.ManagedApi; -import java.util.Collections; -import java.util.Map; - -public final class ManagedApiImpl implements ManagedApi { - private ManagedApiInner innerObject; - - private final com.azure.resourcemanager.logic.LogicManager serviceManager; - - ManagedApiImpl(ManagedApiInner innerObject, com.azure.resourcemanager.logic.LogicManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public ApiResourceProperties properties() { - return this.innerModel().properties(); - } - - public ManagedApiInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.logic.LogicManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/OperationsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/OperationsClientImpl.java index a3872d4f4061..a6307c1d5367 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/OperationsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/OperationsClientImpl.java @@ -85,7 +85,8 @@ Mono> listNext( * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Logic operations. + * @return result of the request to list Logic operations along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -118,7 +119,8 @@ private Mono> listSinglePageAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Logic operations. + * @return result of the request to list Logic operations along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -148,7 +150,7 @@ private Mono> listSinglePageAsync(Context context) * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -162,7 +164,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -175,7 +177,7 @@ private PagedFlux listAsync(Context context) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -189,7 +191,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -203,7 +205,8 @@ public PagedIterable list(Context context) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Logic operations. + * @return result of the request to list Logic operations along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -239,7 +242,8 @@ private Mono> listNextSinglePageAsync(String nextL * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Logic operations. + * @return result of the request to list Logic operations along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowImpl.java index 780de9eec95c..96c35cec1192 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowImpl.java @@ -12,6 +12,7 @@ import com.azure.resourcemanager.logic.models.FlowEndpointsConfiguration; import com.azure.resourcemanager.logic.models.GenerateUpgradedDefinitionParameters; import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.ManagedServiceIdentity; import com.azure.resourcemanager.logic.models.RegenerateActionParameter; import com.azure.resourcemanager.logic.models.ResourceReference; import com.azure.resourcemanager.logic.models.Sku; @@ -55,6 +56,10 @@ public Map tags() { } } + public ManagedServiceIdentity identity() { + return this.innerModel().identity(); + } + public WorkflowProvisioningState provisioningState() { return this.innerModel().provisioningState(); } @@ -303,6 +308,11 @@ public WorkflowImpl withTags(Map tags) { return this; } + public WorkflowImpl withIdentity(ManagedServiceIdentity identity) { + this.innerModel().withIdentity(identity); + return this; + } + public WorkflowImpl withState(WorkflowState state) { this.innerModel().withState(state); return this; diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionDefinitionImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionDefinitionImpl.java index b2dfe5b630b6..b1cac3732996 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionDefinitionImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionDefinitionImpl.java @@ -53,28 +53,13 @@ public Map tags() { } } - public OffsetDateTime startTime() { - return this.innerModel().startTime(); - } - - public OffsetDateTime endTime() { - return this.innerModel().endTime(); - } - - public RunActionCorrelation correlation() { - return this.innerModel().correlation(); - } - - public WorkflowStatus status() { - return this.innerModel().status(); - } - - public String code() { - return this.innerModel().code(); - } - - public Object error() { - return this.innerModel().error(); + public List repetitionIndexes() { + List inner = this.innerModel().repetitionIndexes(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } } public String trackingId() { @@ -114,13 +99,28 @@ public Integer iterationCount() { return this.innerModel().iterationCount(); } - public List repetitionIndexes() { - List inner = this.innerModel().repetitionIndexes(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } + public OffsetDateTime startTime() { + return this.innerModel().startTime(); + } + + public OffsetDateTime endTime() { + return this.innerModel().endTime(); + } + + public RunActionCorrelation correlation() { + return this.innerModel().correlation(); + } + + public WorkflowStatus status() { + return this.innerModel().status(); + } + + public String code() { + return this.innerModel().code(); + } + + public Object error() { + return this.innerModel().error(); } public WorkflowRunActionRepetitionDefinitionInner innerModel() { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsClientImpl.java index 884030b2673c..06fe27eae81e 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsClientImpl.java @@ -129,7 +129,8 @@ Mono> listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -192,7 +193,8 @@ private Mono> listSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -251,7 +253,7 @@ private Mono> listSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -270,7 +272,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -289,7 +291,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -308,7 +310,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -327,7 +329,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action repetition. + * @return a workflow run action repetition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -391,7 +393,7 @@ private Mono> getWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action repetition. + * @return a workflow run action repetition along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -456,7 +458,7 @@ private Mono> getWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action repetition. + * @return a workflow run action repetition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -503,7 +505,7 @@ public WorkflowRunActionRepetitionDefinitionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action repetition. + * @return a workflow run action repetition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -528,7 +530,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listExpressionTracesSinglePageAsync( @@ -596,7 +598,7 @@ private Mono> listExpressionTracesSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listExpressionTracesSinglePageAsync( @@ -665,7 +667,7 @@ private Mono> listExpressionTracesSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listExpressionTracesAsync( @@ -688,7 +690,7 @@ private PagedFlux listExpressionTracesAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listExpressionTracesAsync( @@ -715,7 +717,7 @@ private PagedFlux listExpressionTracesAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listExpressionTraces( @@ -736,7 +738,7 @@ public PagedIterable listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listExpressionTraces( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsRequestHistoriesClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsRequestHistoriesClientImpl.java index 5123485185ce..752aa14b9c02 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsRequestHistoriesClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRepetitionsRequestHistoriesClientImpl.java @@ -127,7 +127,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -200,7 +201,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -274,7 +276,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -296,7 +298,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -322,7 +324,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -342,7 +344,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -368,7 +370,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run repetition request history. + * @return a workflow run repetition request history along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -443,7 +446,8 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run repetition request history. + * @return a workflow run repetition request history along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -515,7 +519,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run repetition request history. + * @return a workflow run repetition request history on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -576,7 +580,7 @@ public RequestHistoryInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run repetition request history. + * @return a workflow run repetition request history along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -599,7 +603,8 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -635,7 +640,8 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRequestHistoriesClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRequestHistoriesClientImpl.java index 31c044ff133c..beb30c940265 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRequestHistoriesClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionRequestHistoriesClientImpl.java @@ -121,7 +121,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -189,7 +190,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -253,7 +255,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -274,7 +276,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -294,7 +296,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -313,7 +315,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -332,7 +334,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run request history. + * @return a workflow run request history along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -397,7 +399,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run request history. + * @return a workflow run request history along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -463,7 +465,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run request history. + * @return a workflow run request history on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -510,7 +512,7 @@ public RequestHistoryInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run request history. + * @return a workflow run request history along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -531,7 +533,8 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -567,7 +570,8 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionScopeRepetitionsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionScopeRepetitionsClientImpl.java index 4aee6e77d659..13ce61412cea 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionScopeRepetitionsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionScopeRepetitionsClientImpl.java @@ -111,7 +111,8 @@ Mono> get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -174,7 +175,8 @@ private Mono> listSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -233,7 +235,7 @@ private Mono> listSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -252,7 +254,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -271,7 +273,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -290,7 +292,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -309,7 +311,8 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action scoped repetition. + * @return a workflow run action scoped repetition along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -373,7 +376,8 @@ private Mono> getWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action scoped repetition. + * @return a workflow run action scoped repetition along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -438,7 +442,7 @@ private Mono> getWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action scoped repetition. + * @return a workflow run action scoped repetition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -485,7 +489,7 @@ public WorkflowRunActionRepetitionDefinitionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action scoped repetition. + * @return a workflow run action scoped repetition along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionsClientImpl.java index b210c160751c..9c1404c77fe0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunActionsClientImpl.java @@ -136,7 +136,7 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -203,7 +203,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -266,7 +266,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -285,7 +285,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workflowName, String runName) { @@ -308,7 +308,7 @@ private PagedFlux listAsync(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -327,7 +327,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workflowName, String runName) { @@ -348,7 +348,7 @@ public PagedIterable list(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -366,7 +366,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action. + * @return a workflow run action along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -425,7 +425,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action. + * @return a workflow run action along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -480,7 +480,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action. + * @return a workflow run action on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -525,7 +525,7 @@ public WorkflowRunActionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action. + * @return a workflow run action along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -543,7 +543,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listExpressionTracesSinglePageAsync( @@ -606,7 +606,7 @@ private Mono> listExpressionTracesSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listExpressionTracesSinglePageAsync( @@ -665,7 +665,7 @@ private Mono> listExpressionTracesSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listExpressionTracesAsync( @@ -685,7 +685,7 @@ private PagedFlux listExpressionTracesAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listExpressionTracesAsync( @@ -704,7 +704,7 @@ private PagedFlux listExpressionTracesAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listExpressionTraces( @@ -723,7 +723,7 @@ public PagedIterable listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listExpressionTraces( @@ -739,7 +739,8 @@ public PagedIterable listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow run actions. + * @return the list of workflow run actions along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -775,7 +776,8 @@ private Mono> listNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow run actions. + * @return the list of workflow run actions along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunOperationsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunOperationsClientImpl.java index 55a93ccd3429..284b3e4d7603 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunOperationsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunOperationsClientImpl.java @@ -83,7 +83,7 @@ Mono> get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an operation for a run. + * @return an operation for a run along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -142,7 +142,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an operation for a run. + * @return an operation for a run along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -197,7 +197,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an operation for a run. + * @return an operation for a run on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -241,7 +241,7 @@ public WorkflowRunInner get(String resourceGroupName, String workflowName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an operation for a run. + * @return an operation for a run along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunsClientImpl.java index df0150b681f8..1e3d34c20963 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowRunsClientImpl.java @@ -131,7 +131,7 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -194,7 +194,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -253,7 +253,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -271,7 +271,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workflowName) { @@ -294,7 +294,7 @@ private PagedFlux listAsync(String resourceGroupName, String w * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -312,7 +312,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workflowName) { @@ -333,7 +333,7 @@ public PagedIterable list(String resourceGroupName, String wor * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -350,7 +350,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run. + * @return a workflow run along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -404,7 +404,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run. + * @return a workflow run along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -454,7 +454,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run. + * @return a workflow run on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workflowName, String runName) { @@ -495,7 +495,7 @@ public WorkflowRunInner get(String resourceGroupName, String workflowName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run. + * @return a workflow run along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -512,7 +512,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> cancelWithResponseAsync( @@ -566,7 +566,7 @@ private Mono> cancelWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> cancelWithResponseAsync( @@ -616,7 +616,7 @@ private Mono> cancelWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono cancelAsync(String resourceGroupName, String workflowName, String runName) { @@ -649,7 +649,7 @@ public void cancel(String resourceGroupName, String workflowName, String runName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response cancelWithResponse( @@ -664,7 +664,7 @@ public Response cancelWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow runs. + * @return the list of workflow runs along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -700,7 +700,7 @@ private Mono> listNextSinglePageAsync(String nex * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow runs. + * @return the list of workflow runs along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggerHistoriesClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggerHistoriesClientImpl.java index 6102118292e5..cd63d73afab8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggerHistoriesClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggerHistoriesClientImpl.java @@ -136,7 +136,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -204,7 +205,8 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -273,7 +275,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -292,7 +294,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -317,7 +319,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -341,7 +343,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -364,7 +366,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -388,7 +390,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger history. + * @return a workflow trigger history along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -448,7 +450,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger history. + * @return a workflow trigger history along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -504,7 +506,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger history. + * @return a workflow trigger history on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -551,7 +553,7 @@ public WorkflowTriggerHistoryInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger history. + * @return a workflow trigger history along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -570,7 +572,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> resubmitWithResponseAsync( @@ -630,7 +632,7 @@ private Mono> resubmitWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> resubmitWithResponseAsync( @@ -686,7 +688,7 @@ private Mono> resubmitWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono resubmitAsync( @@ -724,7 +726,7 @@ public void resubmit(String resourceGroupName, String workflowName, String trigg * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response resubmitWithResponse( @@ -739,7 +741,8 @@ public Response resubmitWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow trigger histories. + * @return the list of workflow trigger histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -775,7 +778,8 @@ private Mono> listNextSinglePageAsync * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow trigger histories. + * @return the list of workflow trigger histories along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggersClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggersClientImpl.java index 0aa5d9033d59..44d51da132f9 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggersClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggersClientImpl.java @@ -199,7 +199,7 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -261,7 +261,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -319,7 +319,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -337,7 +337,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workflowName) { @@ -359,7 +359,7 @@ private PagedFlux listAsync(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -377,7 +377,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workflowName) { @@ -397,7 +397,7 @@ public PagedIterable list(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -414,7 +414,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger. + * @return a workflow trigger along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -468,7 +468,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger. + * @return a workflow trigger along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -518,7 +518,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger. + * @return a workflow trigger on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workflowName, String triggerName) { @@ -559,7 +559,7 @@ public WorkflowTriggerInner get(String resourceGroupName, String workflowName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger. + * @return a workflow trigger along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -576,7 +576,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> resetWithResponseAsync( @@ -630,7 +630,7 @@ private Mono> resetWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> resetWithResponseAsync( @@ -680,7 +680,7 @@ private Mono> resetWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono resetAsync(String resourceGroupName, String workflowName, String triggerName) { @@ -713,7 +713,7 @@ public void reset(String resourceGroupName, String workflowName, String triggerN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response resetWithResponse( @@ -730,7 +730,7 @@ public Response resetWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> runWithResponseAsync( @@ -784,7 +784,7 @@ private Mono> runWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> runWithResponseAsync( @@ -834,7 +834,7 @@ private Mono> runWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono runAsync(String resourceGroupName, String workflowName, String triggerName) { @@ -867,7 +867,7 @@ public void run(String resourceGroupName, String workflowName, String triggerNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response runWithResponse( @@ -884,7 +884,7 @@ public Response runWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the trigger schema as JSON. + * @return the trigger schema as JSON along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getSchemaJsonWithResponseAsync( @@ -938,7 +938,7 @@ private Mono> getSchemaJsonWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the trigger schema as JSON. + * @return the trigger schema as JSON along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getSchemaJsonWithResponseAsync( @@ -988,7 +988,7 @@ private Mono> getSchemaJsonWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the trigger schema as JSON. + * @return the trigger schema as JSON on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getSchemaJsonAsync( @@ -1030,7 +1030,7 @@ public JsonSchemaInner getSchemaJson(String resourceGroupName, String workflowNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the trigger schema as JSON. + * @return the trigger schema as JSON along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getSchemaJsonWithResponse( @@ -1048,7 +1048,7 @@ public Response getSchemaJsonWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> setStateWithResponseAsync( @@ -1109,7 +1109,7 @@ private Mono> setStateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> setStateWithResponseAsync( @@ -1170,7 +1170,7 @@ private Mono> setStateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono setStateAsync( @@ -1207,7 +1207,7 @@ public void setState( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response setStateWithResponse( @@ -1228,7 +1228,8 @@ public Response setStateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback URL for a workflow trigger. + * @return the callback URL for a workflow trigger along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -1282,7 +1283,8 @@ private Mono> listCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback URL for a workflow trigger. + * @return the callback URL for a workflow trigger along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -1332,7 +1334,7 @@ private Mono> listCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback URL for a workflow trigger. + * @return the callback URL for a workflow trigger on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listCallbackUrlAsync( @@ -1375,7 +1377,7 @@ public WorkflowTriggerCallbackUrlInner listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback URL for a workflow trigger. + * @return the callback URL for a workflow trigger along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listCallbackUrlWithResponse( @@ -1390,7 +1392,7 @@ public Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow triggers. + * @return the list of workflow triggers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1426,7 +1428,7 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow triggers. + * @return the list of workflow triggers along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionTriggersClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionTriggersClientImpl.java index 4639f772cd8f..2eaa68b633d8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionTriggersClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionTriggersClientImpl.java @@ -87,7 +87,8 @@ Mono> listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback url for a trigger of a workflow version. + * @return the callback url for a trigger of a workflow version along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -155,7 +156,8 @@ private Mono> listCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback url for a trigger of a workflow version. + * @return the callback url for a trigger of a workflow version along with {@link Response} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -220,7 +222,7 @@ private Mono> listCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback url for a trigger of a workflow version. + * @return the callback url for a trigger of a workflow version on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listCallbackUrlAsync( @@ -250,7 +252,7 @@ private Mono listCallbackUrlAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback url for a trigger of a workflow version. + * @return the callback url for a trigger of a workflow version on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listCallbackUrlAsync( @@ -298,7 +300,7 @@ public WorkflowTriggerCallbackUrlInner listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback url for a trigger of a workflow version. + * @return the callback url for a trigger of a workflow version along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listCallbackUrlWithResponse( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionsClientImpl.java index 601ccd53d7a7..3c960dfe3f67 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowVersionsClientImpl.java @@ -111,7 +111,7 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -171,7 +171,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -227,7 +227,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workflowName, Integer top) { @@ -244,7 +244,7 @@ private PagedFlux listAsync(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workflowName) { @@ -264,7 +264,7 @@ private PagedFlux listAsync(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync( @@ -282,7 +282,7 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workflowName) { @@ -300,7 +300,7 @@ public PagedIterable list(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list( @@ -317,7 +317,7 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow version. + * @return a workflow version along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -371,7 +371,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow version. + * @return a workflow version along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -421,7 +421,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow version. + * @return a workflow version on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String workflowName, String versionId) { @@ -462,7 +462,7 @@ public WorkflowVersionInner get(String resourceGroupName, String workflowName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow version. + * @return a workflow version along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse( @@ -477,7 +477,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow versions. + * @return the list of workflow versions along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -513,7 +513,7 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow versions. + * @return the list of workflow versions along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsClientImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsClientImpl.java index 8c95f8c980b6..d9b87f9663f8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsClientImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsClientImpl.java @@ -334,7 +334,8 @@ Mono> listByResourceGroupNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Integer top, String filter) { @@ -385,7 +386,8 @@ private Mono> listSinglePageAsync(Integer top, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Integer top, String filter, Context context) { @@ -432,7 +434,7 @@ private Mono> listSinglePageAsync(Integer top, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Integer top, String filter) { @@ -445,7 +447,7 @@ private PagedFlux listAsync(Integer top, String filter) { * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -465,7 +467,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Integer top, String filter, Context context) { @@ -479,7 +481,7 @@ private PagedFlux listAsync(Integer top, String filter, Context c * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -498,7 +500,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Integer top, String filter, Context context) { @@ -515,7 +517,8 @@ public PagedIterable list(Integer top, String filter, Context con * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -573,7 +576,8 @@ private Mono> listByResourceGroupSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync( @@ -627,7 +631,7 @@ private Mono> listByResourceGroupSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer top, String filter) { @@ -643,7 +647,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -665,7 +669,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync( @@ -682,7 +686,7 @@ private PagedFlux listByResourceGroupAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -702,7 +706,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup( @@ -718,7 +722,7 @@ public PagedIterable listByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -767,7 +771,7 @@ private Mono> getByResourceGroupWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync( @@ -812,7 +816,7 @@ private Mono> getByResourceGroupWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String workflowName) { @@ -851,7 +855,7 @@ public WorkflowInner getByResourceGroup(String resourceGroupName, String workflo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getByResourceGroupWithResponse( @@ -868,7 +872,7 @@ public Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -924,7 +928,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -976,7 +980,7 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -1018,7 +1022,7 @@ public WorkflowInner createOrUpdate(String resourceGroupName, String workflowNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( @@ -1034,7 +1038,7 @@ public Response createOrUpdateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, String workflowName) { @@ -1082,7 +1086,7 @@ private Mono> updateWithResponseAsync(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -1127,7 +1131,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String workflowName) { @@ -1166,7 +1170,7 @@ public WorkflowInner update(String resourceGroupName, String workflowName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse(String resourceGroupName, String workflowName, Context context) { @@ -1181,7 +1185,7 @@ public Response updateWithResponse(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync(String resourceGroupName, String workflowName) { @@ -1229,7 +1233,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteWithResponseAsync( @@ -1274,7 +1278,7 @@ private Mono> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String workflowName) { @@ -1304,7 +1308,7 @@ public void delete(String resourceGroupName, String workflowName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteWithResponse(String resourceGroupName, String workflowName, Context context) { @@ -1319,7 +1323,7 @@ public Response deleteWithResponse(String resourceGroupName, String workfl * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> disableWithResponseAsync(String resourceGroupName, String workflowName) { @@ -1367,7 +1371,7 @@ private Mono> disableWithResponseAsync(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> disableWithResponseAsync( @@ -1412,7 +1416,7 @@ private Mono> disableWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono disableAsync(String resourceGroupName, String workflowName) { @@ -1442,7 +1446,7 @@ public void disable(String resourceGroupName, String workflowName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response disableWithResponse(String resourceGroupName, String workflowName, Context context) { @@ -1457,7 +1461,7 @@ public Response disableWithResponse(String resourceGroupName, String workf * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> enableWithResponseAsync(String resourceGroupName, String workflowName) { @@ -1505,7 +1509,7 @@ private Mono> enableWithResponseAsync(String resourceGroupName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> enableWithResponseAsync( @@ -1550,7 +1554,7 @@ private Mono> enableWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono enableAsync(String resourceGroupName, String workflowName) { @@ -1580,7 +1584,7 @@ public void enable(String resourceGroupName, String workflowName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response enableWithResponse(String resourceGroupName, String workflowName, Context context) { @@ -1596,7 +1600,7 @@ public Response enableWithResponse(String resourceGroupName, String workfl * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> generateUpgradedDefinitionWithResponseAsync( @@ -1652,7 +1656,7 @@ private Mono> generateUpgradedDefinitionWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return any object along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> generateUpgradedDefinitionWithResponseAsync( @@ -1707,7 +1711,7 @@ private Mono> generateUpgradedDefinitionWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return any object on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono generateUpgradedDefinitionAsync( @@ -1750,7 +1754,7 @@ public Object generateUpgradedDefinition( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return any object along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response generateUpgradedDefinitionWithResponse( @@ -1771,7 +1775,7 @@ public Response generateUpgradedDefinitionWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow callback Url. + * @return the workflow callback Url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -1828,7 +1832,7 @@ private Mono> listCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow callback Url. + * @return the workflow callback Url along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listCallbackUrlWithResponseAsync( @@ -1881,7 +1885,7 @@ private Mono> listCallbackUrlWithRespo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow callback Url. + * @return the workflow callback Url on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listCallbackUrlAsync( @@ -1924,7 +1928,7 @@ public WorkflowTriggerCallbackUrlInner listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow callback Url. + * @return the workflow callback Url along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listCallbackUrlWithResponse( @@ -1940,7 +1944,8 @@ public Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an OpenAPI definition for the workflow. + * @return an OpenAPI definition for the workflow along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSwaggerWithResponseAsync(String resourceGroupName, String workflowName) { @@ -1988,7 +1993,8 @@ private Mono> listSwaggerWithResponseAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an OpenAPI definition for the workflow. + * @return an OpenAPI definition for the workflow along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSwaggerWithResponseAsync( @@ -2033,7 +2039,7 @@ private Mono> listSwaggerWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an OpenAPI definition for the workflow. + * @return an OpenAPI definition for the workflow on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono listSwaggerAsync(String resourceGroupName, String workflowName) { @@ -2072,7 +2078,7 @@ public Object listSwagger(String resourceGroupName, String workflowName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an OpenAPI definition for the workflow. + * @return an OpenAPI definition for the workflow along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response listSwaggerWithResponse(String resourceGroupName, String workflowName, Context context) { @@ -2088,7 +2094,7 @@ public Response listSwaggerWithResponse(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> moveWithResponseAsync( @@ -2144,7 +2150,7 @@ private Mono>> moveWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> moveWithResponseAsync( @@ -2196,15 +2202,16 @@ private Mono>> moveWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginMoveAsync( String resourceGroupName, String workflowName, WorkflowReference move) { Mono>> mono = moveWithResponseAsync(resourceGroupName, workflowName, move); return this .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE); + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** @@ -2217,9 +2224,9 @@ private PollerFlux, Void> beginMoveAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginMoveAsync( String resourceGroupName, String workflowName, WorkflowReference move, Context context) { context = this.client.mergeContext(context); @@ -2238,9 +2245,9 @@ private PollerFlux, Void> beginMoveAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginMove( String resourceGroupName, String workflowName, WorkflowReference move) { return beginMoveAsync(resourceGroupName, workflowName, move).getSyncPoller(); @@ -2256,9 +2263,9 @@ public SyncPoller, Void> beginMove( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginMove( String resourceGroupName, String workflowName, WorkflowReference move, Context context) { return beginMoveAsync(resourceGroupName, workflowName, move, context).getSyncPoller(); @@ -2273,7 +2280,7 @@ public SyncPoller, Void> beginMove( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono moveAsync(String resourceGroupName, String workflowName, WorkflowReference move) { @@ -2292,7 +2299,7 @@ private Mono moveAsync(String resourceGroupName, String workflowName, Work * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono moveAsync( @@ -2342,7 +2349,7 @@ public void move(String resourceGroupName, String workflowName, WorkflowReferenc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> regenerateAccessKeyWithResponseAsync( @@ -2398,7 +2405,7 @@ private Mono> regenerateAccessKeyWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> regenerateAccessKeyWithResponseAsync( @@ -2450,7 +2457,7 @@ private Mono> regenerateAccessKeyWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono regenerateAccessKeyAsync( @@ -2484,7 +2491,7 @@ public void regenerateAccessKey(String resourceGroupName, String workflowName, R * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response regenerateAccessKeyWithResponse( @@ -2501,7 +2508,7 @@ public Response regenerateAccessKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> validateByResourceGroupWithResponseAsync( @@ -2557,7 +2564,7 @@ private Mono> validateByResourceGroupWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> validateByResourceGroupWithResponseAsync( @@ -2609,7 +2616,7 @@ private Mono> validateByResourceGroupWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono validateByResourceGroupAsync( @@ -2643,7 +2650,7 @@ public void validateByResourceGroup(String resourceGroupName, String workflowNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response validateByResourceGroupWithResponse( @@ -2661,7 +2668,7 @@ public Response validateByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> validateByLocationWithResponseAsync( @@ -2722,7 +2729,7 @@ private Mono> validateByLocationWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> validateByLocationWithResponseAsync( @@ -2779,7 +2786,7 @@ private Mono> validateByLocationWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the completion. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono validateByLocationAsync( @@ -2816,7 +2823,7 @@ public void validateByLocation( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response validateByLocationWithResponse( @@ -2832,7 +2839,7 @@ public Response validateByLocationWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflows. + * @return the list of workflows along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -2869,7 +2876,7 @@ private Mono> listBySubscriptionNextSinglePageAsync * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflows. + * @return the list of workflows along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, Context context) { @@ -2904,7 +2911,7 @@ private Mono> listBySubscriptionNextSinglePageAsync * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflows. + * @return the list of workflows along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -2941,7 +2948,7 @@ private Mono> listByResourceGroupNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflows. + * @return the list of workflows along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync( diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsImpl.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsImpl.java index af3929ac3a2a..7c677e8f0430 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsImpl.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowsImpl.java @@ -269,7 +269,7 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'workflows'.", id))); } - this.deleteWithResponse(resourceGroupName, workflowName, Context.NONE).getValue(); + this.deleteWithResponse(resourceGroupName, workflowName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationPropertiesDefinition.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationPropertiesDefinition.java index 2092e2800fc4..53149f8389be 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationPropertiesDefinition.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiOperationPropertiesDefinition.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -73,6 +74,7 @@ public final class ApiOperationPropertiesDefinition { * The operation responses definition schemas. */ @JsonProperty(value = "responsesDefinition") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map responsesDefinition; /* diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceMetadata.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceMetadata.java index 453d757b220b..801ebdd2c6ac 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceMetadata.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceMetadata.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -37,6 +38,7 @@ public final class ApiResourceMetadata { * The tags. */ @JsonProperty(value = "tags") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; /* diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceProperties.java index 1ce23b2f6090..4a5314cd3e65 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceProperties.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ApiResourceProperties.java @@ -7,73 +7,75 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; /** The API resource properties. */ @Fluent -public final class ApiResourceProperties { +public class ApiResourceProperties { @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiResourceProperties.class); /* * The name */ - @JsonProperty(value = "name") + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* * The connection parameters. */ - @JsonProperty(value = "connectionParameters") + @JsonProperty(value = "connectionParameters", access = JsonProperty.Access.WRITE_ONLY) + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map connectionParameters; /* * The metadata. */ - @JsonProperty(value = "metadata") + @JsonProperty(value = "metadata", access = JsonProperty.Access.WRITE_ONLY) private ApiResourceMetadata metadata; /* * The runtime urls. */ - @JsonProperty(value = "runtimeUrls") + @JsonProperty(value = "runtimeUrls", access = JsonProperty.Access.WRITE_ONLY) private List runtimeUrls; /* * The api general information. */ - @JsonProperty(value = "generalInformation") + @JsonProperty(value = "generalInformation", access = JsonProperty.Access.WRITE_ONLY) private ApiResourceGeneralInformation generalInformation; /* * The capabilities. */ - @JsonProperty(value = "capabilities") + @JsonProperty(value = "capabilities", access = JsonProperty.Access.WRITE_ONLY) private List capabilities; /* * The backend service. */ - @JsonProperty(value = "backendService") + @JsonProperty(value = "backendService", access = JsonProperty.Access.WRITE_ONLY) private ApiResourceBackendService backendService; /* * The policies for the API. */ - @JsonProperty(value = "policies") + @JsonProperty(value = "policies", access = JsonProperty.Access.WRITE_ONLY) private ApiResourcePolicies policies; /* * The API definition. */ - @JsonProperty(value = "apiDefinitionUrl") + @JsonProperty(value = "apiDefinitionUrl", access = JsonProperty.Access.WRITE_ONLY) private String apiDefinitionUrl; /* * The api definitions. */ - @JsonProperty(value = "apiDefinitions") + @JsonProperty(value = "apiDefinitions", access = JsonProperty.Access.WRITE_ONLY) private ApiResourceDefinitions apiDefinitions; /* @@ -85,13 +87,13 @@ public final class ApiResourceProperties { /* * The provisioning state. */ - @JsonProperty(value = "provisioningState") + @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private WorkflowProvisioningState provisioningState; /* * The category. */ - @JsonProperty(value = "category") + @JsonProperty(value = "category", access = JsonProperty.Access.WRITE_ONLY) private ApiTier category; /** @@ -103,17 +105,6 @@ public String name() { return this.name; } - /** - * Set the name property: The name. - * - * @param name the name value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withName(String name) { - this.name = name; - return this; - } - /** * Get the connectionParameters property: The connection parameters. * @@ -123,17 +114,6 @@ public Map connectionParameters() { return this.connectionParameters; } - /** - * Set the connectionParameters property: The connection parameters. - * - * @param connectionParameters the connectionParameters value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withConnectionParameters(Map connectionParameters) { - this.connectionParameters = connectionParameters; - return this; - } - /** * Get the metadata property: The metadata. * @@ -143,17 +123,6 @@ public ApiResourceMetadata metadata() { return this.metadata; } - /** - * Set the metadata property: The metadata. - * - * @param metadata the metadata value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withMetadata(ApiResourceMetadata metadata) { - this.metadata = metadata; - return this; - } - /** * Get the runtimeUrls property: The runtime urls. * @@ -163,17 +132,6 @@ public List runtimeUrls() { return this.runtimeUrls; } - /** - * Set the runtimeUrls property: The runtime urls. - * - * @param runtimeUrls the runtimeUrls value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withRuntimeUrls(List runtimeUrls) { - this.runtimeUrls = runtimeUrls; - return this; - } - /** * Get the generalInformation property: The api general information. * @@ -183,17 +141,6 @@ public ApiResourceGeneralInformation generalInformation() { return this.generalInformation; } - /** - * Set the generalInformation property: The api general information. - * - * @param generalInformation the generalInformation value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withGeneralInformation(ApiResourceGeneralInformation generalInformation) { - this.generalInformation = generalInformation; - return this; - } - /** * Get the capabilities property: The capabilities. * @@ -203,17 +150,6 @@ public List capabilities() { return this.capabilities; } - /** - * Set the capabilities property: The capabilities. - * - * @param capabilities the capabilities value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withCapabilities(List capabilities) { - this.capabilities = capabilities; - return this; - } - /** * Get the backendService property: The backend service. * @@ -223,17 +159,6 @@ public ApiResourceBackendService backendService() { return this.backendService; } - /** - * Set the backendService property: The backend service. - * - * @param backendService the backendService value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withBackendService(ApiResourceBackendService backendService) { - this.backendService = backendService; - return this; - } - /** * Get the policies property: The policies for the API. * @@ -243,17 +168,6 @@ public ApiResourcePolicies policies() { return this.policies; } - /** - * Set the policies property: The policies for the API. - * - * @param policies the policies value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withPolicies(ApiResourcePolicies policies) { - this.policies = policies; - return this; - } - /** * Get the apiDefinitionUrl property: The API definition. * @@ -263,17 +177,6 @@ public String apiDefinitionUrl() { return this.apiDefinitionUrl; } - /** - * Set the apiDefinitionUrl property: The API definition. - * - * @param apiDefinitionUrl the apiDefinitionUrl value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withApiDefinitionUrl(String apiDefinitionUrl) { - this.apiDefinitionUrl = apiDefinitionUrl; - return this; - } - /** * Get the apiDefinitions property: The api definitions. * @@ -283,17 +186,6 @@ public ApiResourceDefinitions apiDefinitions() { return this.apiDefinitions; } - /** - * Set the apiDefinitions property: The api definitions. - * - * @param apiDefinitions the apiDefinitions value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withApiDefinitions(ApiResourceDefinitions apiDefinitions) { - this.apiDefinitions = apiDefinitions; - return this; - } - /** * Get the integrationServiceEnvironment property: The integration service environment reference. * @@ -323,17 +215,6 @@ public WorkflowProvisioningState provisioningState() { return this.provisioningState; } - /** - * Set the provisioningState property: The provisioning state. - * - * @param provisioningState the provisioningState value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withProvisioningState(WorkflowProvisioningState provisioningState) { - this.provisioningState = provisioningState; - return this; - } - /** * Get the category property: The category. * @@ -343,17 +224,6 @@ public ApiTier category() { return this.category; } - /** - * Set the category property: The category. - * - * @param category the category value to set. - * @return the ApiResourceProperties object itself. - */ - public ApiResourceProperties withCategory(ApiTier category) { - this.category = category; - return this; - } - /** * Validates the instance. * diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactContentPropertiesDefinition.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactContentPropertiesDefinition.java index a58b41779a1b..189367454253 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactContentPropertiesDefinition.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactContentPropertiesDefinition.java @@ -16,7 +16,7 @@ public class ArtifactContentPropertiesDefinition extends ArtifactProperties { @JsonIgnore private final ClientLogger logger = new ClientLogger(ArtifactContentPropertiesDefinition.class); /* - * Any object + * Anything */ @JsonProperty(value = "content") private Object content; @@ -34,7 +34,7 @@ public class ArtifactContentPropertiesDefinition extends ArtifactProperties { private ContentLink contentLink; /** - * Get the content property: Any object. + * Get the content property: Anything. * * @return the content value. */ @@ -43,7 +43,7 @@ public Object content() { } /** - * Set the content property: Any object. + * Set the content property: Anything. * * @param content the content value to set. * @return the ArtifactContentPropertiesDefinition object itself. diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactProperties.java index 24ea3a8fa0c5..e9629818d191 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactProperties.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ArtifactProperties.java @@ -28,7 +28,7 @@ public class ArtifactProperties { private OffsetDateTime changedTime; /* - * Any object + * Anything */ @JsonProperty(value = "metadata") private Object metadata; @@ -74,7 +74,7 @@ public ArtifactProperties withChangedTime(OffsetDateTime changedTime) { } /** - * Get the metadata property: Any object. + * Get the metadata property: Anything. * * @return the metadata value. */ @@ -83,7 +83,7 @@ public Object metadata() { } /** - * Set the metadata property: Any object. + * Set the metadata property: Anything. * * @param metadata the metadata value to set. * @return the ArtifactProperties object itself. diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyDefinition.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyDefinition.java index edcd51a5334c..38d55e9cdfc1 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyDefinition.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/AssemblyDefinition.java @@ -236,7 +236,7 @@ interface WithProperties { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url for an integration account assembly. + * @return the content callback url for an integration account assembly along with {@link Response}. */ Response listContentCallbackUrlWithResponse(Context context); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ContentLink.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ContentLink.java index bab3116ab323..c0bb3798686c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ContentLink.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ContentLink.java @@ -23,25 +23,25 @@ public final class ContentLink { /* * The content version. */ - @JsonProperty(value = "contentVersion") + @JsonProperty(value = "contentVersion", access = JsonProperty.Access.WRITE_ONLY) private String contentVersion; /* * The content size. */ - @JsonProperty(value = "contentSize") + @JsonProperty(value = "contentSize", access = JsonProperty.Access.WRITE_ONLY) private Long contentSize; /* * The content hash. */ - @JsonProperty(value = "contentHash") + @JsonProperty(value = "contentHash", access = JsonProperty.Access.WRITE_ONLY) private ContentHash contentHash; /* * The metadata. */ - @JsonProperty(value = "metadata") + @JsonProperty(value = "metadata", access = JsonProperty.Access.WRITE_ONLY) private Object metadata; /** @@ -73,17 +73,6 @@ public String contentVersion() { return this.contentVersion; } - /** - * Set the contentVersion property: The content version. - * - * @param contentVersion the contentVersion value to set. - * @return the ContentLink object itself. - */ - public ContentLink withContentVersion(String contentVersion) { - this.contentVersion = contentVersion; - return this; - } - /** * Get the contentSize property: The content size. * @@ -93,17 +82,6 @@ public Long contentSize() { return this.contentSize; } - /** - * Set the contentSize property: The content size. - * - * @param contentSize the contentSize value to set. - * @return the ContentLink object itself. - */ - public ContentLink withContentSize(Long contentSize) { - this.contentSize = contentSize; - return this; - } - /** * Get the contentHash property: The content hash. * @@ -113,17 +91,6 @@ public ContentHash contentHash() { return this.contentHash; } - /** - * Set the contentHash property: The content hash. - * - * @param contentHash the contentHash value to set. - * @return the ContentLink object itself. - */ - public ContentLink withContentHash(ContentHash contentHash) { - this.contentHash = contentHash; - return this; - } - /** * Get the metadata property: The metadata. * @@ -133,17 +100,6 @@ public Object metadata() { return this.metadata; } - /** - * Set the metadata property: The metadata. - * - * @param metadata the metadata value to set. - * @return the ContentLink object itself. - */ - public ContentLink withMetadata(Object metadata) { - this.metadata = metadata; - return this; - } - /** * Validates the instance. * diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Expression.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Expression.java index e936c2978a82..2e71d1feb822 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Expression.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Expression.java @@ -22,7 +22,7 @@ public class Expression { private String text; /* - * Any object + * Anything */ @JsonProperty(value = "value") private Object value; @@ -60,7 +60,7 @@ public Expression withText(String text) { } /** - * Get the value property: Any object. + * Get the value property: Anything. * * @return the value value. */ @@ -69,7 +69,7 @@ public Object value() { } /** - * Set the value property: Any object. + * Set the value property: Anything. * * @param value the value value to set. * @return the Expression object itself. diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccount.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccount.java index d40bb28b99ba..f8060af3199e 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccount.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccount.java @@ -9,7 +9,6 @@ import com.azure.core.management.Region; import com.azure.core.util.Context; import com.azure.resourcemanager.logic.fluent.models.IntegrationAccountInner; -import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentInner; import java.util.Map; /** An immutable client-side representation of IntegrationAccount. */ @@ -61,7 +60,7 @@ public interface IntegrationAccount { * * @return the integrationServiceEnvironment value. */ - IntegrationServiceEnvironment integrationServiceEnvironment(); + ResourceReference integrationServiceEnvironment(); /** * Gets the state property: The workflow state. @@ -183,8 +182,7 @@ interface WithIntegrationServiceEnvironment { * @param integrationServiceEnvironment The integration service environment. * @return the next definition stage. */ - WithCreate withIntegrationServiceEnvironment( - IntegrationServiceEnvironmentInner integrationServiceEnvironment); + WithCreate withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment); } /** The stage of the IntegrationAccount definition allowing to specify state. */ interface WithState { @@ -255,7 +253,7 @@ interface WithIntegrationServiceEnvironment { * @param integrationServiceEnvironment The integration service environment. * @return the next definition stage. */ - Update withIntegrationServiceEnvironment(IntegrationServiceEnvironmentInner integrationServiceEnvironment); + Update withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment); } /** The stage of the IntegrationAccount update allowing to specify state. */ interface WithState { @@ -302,7 +300,7 @@ interface WithState { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account callback URL. + * @return the integration account callback URL along with {@link Response}. */ Response listCallbackUrlWithResponse(GetCallbackUrlParameters parameters, Context context); @@ -313,7 +311,7 @@ interface WithState { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ PagedIterable listKeyVaultKeys(ListKeyVaultKeysDefinition listKeyVaultKeys); @@ -325,7 +323,7 @@ interface WithState { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ PagedIterable listKeyVaultKeys(ListKeyVaultKeysDefinition listKeyVaultKeys, Context context); @@ -347,7 +345,7 @@ interface WithState { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response logTrackingEventsWithResponse(TrackingEventsDefinition logTrackingEvents, Context context); @@ -370,7 +368,7 @@ interface WithState { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ Response regenerateAccessKeyWithResponse( RegenerateActionParameter regenerateAccessKey, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreement.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreement.java index 797cffe75d8f..6942493aef55 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreement.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreement.java @@ -433,7 +433,7 @@ interface WithContent { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( GetCallbackUrlParameters listContentCallbackUrl, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreements.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreements.java index e772fb7891b3..70b8923ccb3f 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreements.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAgreements.java @@ -18,7 +18,7 @@ public interface IntegrationAccountAgreements { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -33,7 +33,7 @@ public interface IntegrationAccountAgreements { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account agreements. + * @return a list of integration account agreements as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String integrationAccountName, Integer top, String filter, Context context); @@ -61,7 +61,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String agreementName, Context context); @@ -88,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String agreementName, Context context); @@ -122,7 +122,7 @@ WorkflowTriggerCallbackUrl listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( String resourceGroupName, @@ -138,7 +138,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement along with {@link Response}. */ IntegrationAccountAgreement getById(String id); @@ -150,7 +150,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account agreement. + * @return an integration account agreement along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -172,7 +172,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAssemblies.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAssemblies.java index c6f1f0af9e55..507db49b41fd 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAssemblies.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountAssemblies.java @@ -18,7 +18,7 @@ public interface IntegrationAccountAssemblies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -31,7 +31,7 @@ public interface IntegrationAccountAssemblies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of assembly definitions. + * @return a collection of assembly definitions as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName, Context context); @@ -58,7 +58,7 @@ public interface IntegrationAccountAssemblies { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String assemblyArtifactName, Context context); @@ -85,7 +85,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String assemblyArtifactName, Context context); @@ -114,7 +114,7 @@ WorkflowTriggerCallbackUrl listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url for an integration account assembly. + * @return the content callback url for an integration account assembly along with {@link Response}. */ Response listContentCallbackUrlWithResponse( String resourceGroupName, String integrationAccountName, String assemblyArtifactName, Context context); @@ -126,7 +126,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account along with {@link Response}. */ AssemblyDefinition getById(String id); @@ -138,7 +138,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an assembly for an integration account. + * @return an assembly for an integration account along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -160,7 +160,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountBatchConfigurations.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountBatchConfigurations.java index e994fefaa803..bc56d0784dc9 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountBatchConfigurations.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountBatchConfigurations.java @@ -18,7 +18,7 @@ public interface IntegrationAccountBatchConfigurations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -31,7 +31,7 @@ public interface IntegrationAccountBatchConfigurations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of batch configurations. + * @return a collection of batch configurations as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName, Context context); @@ -58,7 +58,7 @@ public interface IntegrationAccountBatchConfigurations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String batchConfigurationName, Context context); @@ -85,7 +85,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String batchConfigurationName, Context context); @@ -97,7 +97,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account along with {@link Response}. */ BatchConfiguration getById(String id); @@ -109,7 +109,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a batch configuration for an integration account. + * @return a batch configuration for an integration account along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -131,7 +131,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountCertificates.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountCertificates.java index 3d1941818d58..c5ee6a670fd8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountCertificates.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountCertificates.java @@ -18,7 +18,7 @@ public interface IntegrationAccountCertificates { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -32,7 +32,7 @@ public interface IntegrationAccountCertificates { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account certificates. + * @return a list of integration account certificates as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String integrationAccountName, Integer top, Context context); @@ -60,7 +60,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String certificateName, Context context); @@ -87,7 +87,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String certificateName, Context context); @@ -99,7 +99,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate along with {@link Response}. */ IntegrationAccountCertificate getById(String id); @@ -111,7 +111,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account certificate. + * @return an integration account certificate along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -133,7 +133,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMap.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMap.java index 8ae0e72e5fdf..5eb1f08438d1 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMap.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMap.java @@ -380,7 +380,7 @@ interface WithMetadata { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( GetCallbackUrlParameters listContentCallbackUrl, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMaps.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMaps.java index f6444c2a055b..d92966d60605 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMaps.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountMaps.java @@ -18,7 +18,7 @@ public interface IntegrationAccountMaps { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -33,7 +33,7 @@ public interface IntegrationAccountMaps { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account maps. + * @return a list of integration account maps as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String integrationAccountName, Integer top, String filter, Context context); @@ -61,7 +61,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String mapName, Context context); @@ -88,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String mapName, Context context); @@ -122,7 +122,7 @@ WorkflowTriggerCallbackUrl listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( String resourceGroupName, @@ -138,7 +138,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map along with {@link Response}. */ IntegrationAccountMap getById(String id); @@ -150,7 +150,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account map. + * @return an integration account map along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -172,7 +172,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartner.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartner.java index 586e53b4f507..2e5e2f1b7e62 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartner.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartner.java @@ -313,7 +313,7 @@ interface WithContent { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( GetCallbackUrlParameters listContentCallbackUrl, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartners.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartners.java index 8eb54c06bc7b..bc949120fac7 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartners.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountPartners.java @@ -18,7 +18,7 @@ public interface IntegrationAccountPartners { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -33,7 +33,7 @@ public interface IntegrationAccountPartners { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account partners. + * @return a list of integration account partners as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String integrationAccountName, Integer top, String filter, Context context); @@ -61,7 +61,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String partnerName, Context context); @@ -88,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String partnerName, Context context); @@ -122,7 +122,7 @@ WorkflowTriggerCallbackUrl listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( String resourceGroupName, @@ -138,7 +138,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner along with {@link Response}. */ IntegrationAccountPartner getById(String id); @@ -150,7 +150,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account partner. + * @return an integration account partner along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -172,7 +172,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchema.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchema.java index 9390a676030a..1a512be9778c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchema.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchema.java @@ -438,7 +438,7 @@ interface WithContentType { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( GetCallbackUrlParameters listContentCallbackUrl, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchemas.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchemas.java index 986574748358..6892c27effe9 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchemas.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSchemas.java @@ -18,7 +18,7 @@ public interface IntegrationAccountSchemas { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -33,7 +33,7 @@ public interface IntegrationAccountSchemas { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account schemas. + * @return a list of integration account schemas as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String integrationAccountName, Integer top, String filter, Context context); @@ -61,7 +61,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String schemaName, Context context); @@ -88,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String schemaName, Context context); @@ -122,7 +122,7 @@ WorkflowTriggerCallbackUrl listContentCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the content callback url. + * @return the content callback url along with {@link Response}. */ Response listContentCallbackUrlWithResponse( String resourceGroupName, @@ -138,7 +138,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema along with {@link Response}. */ IntegrationAccountSchema getById(String id); @@ -150,7 +150,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account schema. + * @return an integration account schema along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -172,7 +172,7 @@ Response listContentCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSessions.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSessions.java index f3666e2f5796..7f0f32a47d26 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSessions.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccountSessions.java @@ -18,7 +18,7 @@ public interface IntegrationAccountSessions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String integrationAccountName); @@ -33,7 +33,7 @@ public interface IntegrationAccountSessions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration account sessions. + * @return a list of integration account sessions as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String integrationAccountName, Integer top, String filter, Context context); @@ -61,7 +61,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String integrationAccountName, String sessionName, Context context); @@ -88,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse( String resourceGroupName, String integrationAccountName, String sessionName, Context context); @@ -100,7 +100,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session along with {@link Response}. */ IntegrationAccountSession getById(String id); @@ -112,7 +112,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account session. + * @return an integration account session along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -134,7 +134,7 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccounts.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccounts.java index 1907b5a6f493..b77efb6d03c0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccounts.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationAccounts.java @@ -15,7 +15,7 @@ public interface IntegrationAccounts { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedIterable}. */ PagedIterable list(); @@ -27,7 +27,7 @@ public interface IntegrationAccounts { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by subscription. + * @return a list of integration accounts by subscription as paginated response with {@link PagedIterable}. */ PagedIterable list(Integer top, Context context); @@ -38,7 +38,7 @@ public interface IntegrationAccounts { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); @@ -51,7 +51,7 @@ public interface IntegrationAccounts { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration accounts by resource group. + * @return a list of integration accounts by resource group as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Integer top, Context context); @@ -76,7 +76,7 @@ public interface IntegrationAccounts { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account along with {@link Response}. */ Response getByResourceGroupWithResponse( String resourceGroupName, String integrationAccountName, Context context); @@ -101,7 +101,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse(String resourceGroupName, String integrationAccountName, Context context); @@ -129,7 +129,7 @@ CallbackUrl listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account callback URL. + * @return the integration account callback URL along with {@link Response}. */ Response listCallbackUrlWithResponse( String resourceGroupName, String integrationAccountName, GetCallbackUrlParameters parameters, Context context); @@ -143,7 +143,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ PagedIterable listKeyVaultKeys( String resourceGroupName, String integrationAccountName, ListKeyVaultKeysDefinition listKeyVaultKeys); @@ -158,7 +158,7 @@ PagedIterable listKeyVaultKeys( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account's Key Vault keys. + * @return the integration account's Key Vault keys as paginated response with {@link PagedIterable}. */ PagedIterable listKeyVaultKeys( String resourceGroupName, @@ -189,7 +189,7 @@ void logTrackingEvents( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response logTrackingEventsWithResponse( String resourceGroupName, @@ -221,7 +221,7 @@ IntegrationAccount regenerateAccessKey( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration account. + * @return the integration account along with {@link Response}. */ Response regenerateAccessKeyWithResponse( String resourceGroupName, @@ -236,7 +236,7 @@ Response regenerateAccessKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account along with {@link Response}. */ IntegrationAccount getById(String id); @@ -248,7 +248,7 @@ Response regenerateAccessKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration account. + * @return an integration account along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -270,7 +270,7 @@ Response regenerateAccessKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironment.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironment.java index 046c8b2a05c0..9f4dffba50f6 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironment.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironment.java @@ -61,6 +61,13 @@ public interface IntegrationServiceEnvironment { */ IntegrationServiceEnvironmentSku sku(); + /** + * Gets the identity property: Managed service identity properties. + * + * @return the identity value. + */ + ManagedServiceIdentity identity(); + /** * Gets the region of the resource. * @@ -127,7 +134,10 @@ interface WithResourceGroup { * for the resource to be created, but also allows for any other optional properties to be specified. */ interface WithCreate - extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithSku { + extends DefinitionStages.WithTags, + DefinitionStages.WithProperties, + DefinitionStages.WithSku, + DefinitionStages.WithIdentity { /** * Executes the create request. * @@ -173,6 +183,16 @@ interface WithSku { */ WithCreate withSku(IntegrationServiceEnvironmentSku sku); } + /** The stage of the IntegrationServiceEnvironment definition allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: Managed service identity properties.. + * + * @param identity Managed service identity properties. + * @return the next definition stage. + */ + WithCreate withIdentity(ManagedServiceIdentity identity); + } } /** * Begins update for the IntegrationServiceEnvironment resource. @@ -182,7 +202,8 @@ interface WithSku { IntegrationServiceEnvironment.Update update(); /** The template for IntegrationServiceEnvironment update. */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties, UpdateStages.WithSku { + interface Update + extends UpdateStages.WithTags, UpdateStages.WithProperties, UpdateStages.WithSku, UpdateStages.WithIdentity { /** * Executes the update request. * @@ -230,6 +251,16 @@ interface WithSku { */ Update withSku(IntegrationServiceEnvironmentSku sku); } + /** The stage of the IntegrationServiceEnvironment update allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: Managed service identity properties.. + * + * @param identity Managed service identity properties. + * @return the next definition stage. + */ + Update withIdentity(ManagedServiceIdentity identity); + } } /** * Refreshes the resource to sync with Azure. @@ -261,7 +292,7 @@ interface WithSku { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response restartWithResponse(Context context); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApi.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApi.java new file mode 100644 index 000000000000..6d11db827e83 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApi.java @@ -0,0 +1,351 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.models; + +import com.azure.core.management.Region; +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner; +import java.util.List; +import java.util.Map; + +/** An immutable client-side representation of IntegrationServiceEnvironmentManagedApi. */ +public interface IntegrationServiceEnvironmentManagedApi { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the deploymentParameters property: The integration service environment managed api deployment parameters. + * + * @return the deploymentParameters value. + */ + IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters(); + + /** + * Gets the namePropertiesName property: The name. + * + * @return the namePropertiesName value. + */ + String namePropertiesName(); + + /** + * Gets the connectionParameters property: The connection parameters. + * + * @return the connectionParameters value. + */ + Map connectionParameters(); + + /** + * Gets the metadata property: The metadata. + * + * @return the metadata value. + */ + ApiResourceMetadata metadata(); + + /** + * Gets the runtimeUrls property: The runtime urls. + * + * @return the runtimeUrls value. + */ + List runtimeUrls(); + + /** + * Gets the generalInformation property: The api general information. + * + * @return the generalInformation value. + */ + ApiResourceGeneralInformation generalInformation(); + + /** + * Gets the capabilities property: The capabilities. + * + * @return the capabilities value. + */ + List capabilities(); + + /** + * Gets the backendService property: The backend service. + * + * @return the backendService value. + */ + ApiResourceBackendService backendService(); + + /** + * Gets the policies property: The policies for the API. + * + * @return the policies value. + */ + ApiResourcePolicies policies(); + + /** + * Gets the apiDefinitionUrl property: The API definition. + * + * @return the apiDefinitionUrl value. + */ + String apiDefinitionUrl(); + + /** + * Gets the apiDefinitions property: The api definitions. + * + * @return the apiDefinitions value. + */ + ApiResourceDefinitions apiDefinitions(); + + /** + * Gets the integrationServiceEnvironment property: The integration service environment reference. + * + * @return the integrationServiceEnvironment value. + */ + ResourceReference integrationServiceEnvironment(); + + /** + * Gets the provisioningState property: The provisioning state. + * + * @return the provisioningState value. + */ + WorkflowProvisioningState provisioningState(); + + /** + * Gets the category property: The category. + * + * @return the category value. + */ + ApiTier category(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the inner com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner object. + * + * @return the inner object. + */ + IntegrationServiceEnvironmentManagedApiInner innerModel(); + + /** The entirety of the IntegrationServiceEnvironmentManagedApi definition. */ + interface Definition + extends DefinitionStages.Blank, + DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, + DefinitionStages.WithCreate { + } + /** The IntegrationServiceEnvironmentManagedApi definition stages. */ + interface DefinitionStages { + /** The first stage of the IntegrationServiceEnvironmentManagedApi definition. */ + interface Blank extends WithLocation { + } + /** The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify location. */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithParentResource withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithParentResource withRegion(String location); + } + /** The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify parent resource. */ + interface WithParentResource { + /** + * Specifies resourceGroup, integrationServiceEnvironmentName. + * + * @param resourceGroup The resource group name. + * @param integrationServiceEnvironmentName The integration service environment name. + * @return the next definition stage. + */ + WithCreate withExistingIntegrationServiceEnvironment( + String resourceGroup, String integrationServiceEnvironmentName); + } + /** + * The stage of the IntegrationServiceEnvironmentManagedApi definition which contains all the minimum required + * properties for the resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate + extends DefinitionStages.WithTags, + DefinitionStages.WithDeploymentParameters, + DefinitionStages.WithIntegrationServiceEnvironment { + /** + * Executes the create request. + * + * @return the created resource. + */ + IntegrationServiceEnvironmentManagedApi create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + IntegrationServiceEnvironmentManagedApi create(Context context); + } + /** The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify tags. */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + /** + * The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify deploymentParameters. + */ + interface WithDeploymentParameters { + /** + * Specifies the deploymentParameters property: The integration service environment managed api deployment + * parameters.. + * + * @param deploymentParameters The integration service environment managed api deployment parameters. + * @return the next definition stage. + */ + WithCreate withDeploymentParameters( + IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters); + } + /** + * The stage of the IntegrationServiceEnvironmentManagedApi definition allowing to specify + * integrationServiceEnvironment. + */ + interface WithIntegrationServiceEnvironment { + /** + * Specifies the integrationServiceEnvironment property: The integration service environment reference.. + * + * @param integrationServiceEnvironment The integration service environment reference. + * @return the next definition stage. + */ + WithCreate withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment); + } + } + /** + * Begins update for the IntegrationServiceEnvironmentManagedApi resource. + * + * @return the stage of resource update. + */ + IntegrationServiceEnvironmentManagedApi.Update update(); + + /** The template for IntegrationServiceEnvironmentManagedApi update. */ + interface Update + extends UpdateStages.WithTags, + UpdateStages.WithDeploymentParameters, + UpdateStages.WithIntegrationServiceEnvironment { + /** + * Executes the update request. + * + * @return the updated resource. + */ + IntegrationServiceEnvironmentManagedApi apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + IntegrationServiceEnvironmentManagedApi apply(Context context); + } + /** The IntegrationServiceEnvironmentManagedApi update stages. */ + interface UpdateStages { + /** The stage of the IntegrationServiceEnvironmentManagedApi update allowing to specify tags. */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + /** The stage of the IntegrationServiceEnvironmentManagedApi update allowing to specify deploymentParameters. */ + interface WithDeploymentParameters { + /** + * Specifies the deploymentParameters property: The integration service environment managed api deployment + * parameters.. + * + * @param deploymentParameters The integration service environment managed api deployment parameters. + * @return the next definition stage. + */ + Update withDeploymentParameters( + IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters); + } + /** + * The stage of the IntegrationServiceEnvironmentManagedApi update allowing to specify + * integrationServiceEnvironment. + */ + interface WithIntegrationServiceEnvironment { + /** + * Specifies the integrationServiceEnvironment property: The integration service environment reference.. + * + * @param integrationServiceEnvironment The integration service environment reference. + * @return the next definition stage. + */ + Update withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment); + } + } + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + IntegrationServiceEnvironmentManagedApi refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + IntegrationServiceEnvironmentManagedApi refresh(Context context); +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiDeploymentParameters.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiDeploymentParameters.java new file mode 100644 index 000000000000..a172ad964a72 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiDeploymentParameters.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The integration service environment managed api deployment parameters. */ +@Fluent +public final class IntegrationServiceEnvironmentManagedApiDeploymentParameters { + @JsonIgnore + private final ClientLogger logger = + new ClientLogger(IntegrationServiceEnvironmentManagedApiDeploymentParameters.class); + + /* + * The integration service environment managed api content link for + * deployment. + */ + @JsonProperty(value = "contentLinkDefinition") + private ContentLink contentLinkDefinition; + + /** + * Get the contentLinkDefinition property: The integration service environment managed api content link for + * deployment. + * + * @return the contentLinkDefinition value. + */ + public ContentLink contentLinkDefinition() { + return this.contentLinkDefinition; + } + + /** + * Set the contentLinkDefinition property: The integration service environment managed api content link for + * deployment. + * + * @param contentLinkDefinition the contentLinkDefinition value to set. + * @return the IntegrationServiceEnvironmentManagedApiDeploymentParameters object itself. + */ + public IntegrationServiceEnvironmentManagedApiDeploymentParameters withContentLinkDefinition( + ContentLink contentLinkDefinition) { + this.contentLinkDefinition = contentLinkDefinition; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (contentLinkDefinition() != null) { + contentLinkDefinition().validate(); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedApiListResult.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiListResult.java similarity index 56% rename from sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedApiListResult.java rename to sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiListResult.java index e380dbc9130b..391fdf18c28a 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedApiListResult.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiListResult.java @@ -6,21 +6,22 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.logic.fluent.models.ManagedApiInner; +import com.azure.resourcemanager.logic.fluent.models.IntegrationServiceEnvironmentManagedApiInner; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The list of managed APIs. */ +/** The list of integration service environment managed APIs. */ @Fluent -public final class ManagedApiListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedApiListResult.class); +public final class IntegrationServiceEnvironmentManagedApiListResult { + @JsonIgnore + private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentManagedApiListResult.class); /* - * The managed APIs. + * The integration service environment managed APIs. */ @JsonProperty(value = "value") - private List value; + private List value; /* * The URL to get the next set of results. @@ -29,21 +30,22 @@ public final class ManagedApiListResult { private String nextLink; /** - * Get the value property: The managed APIs. + * Get the value property: The integration service environment managed APIs. * * @return the value value. */ - public List value() { + public List value() { return this.value; } /** - * Set the value property: The managed APIs. + * Set the value property: The integration service environment managed APIs. * * @param value the value value to set. - * @return the ManagedApiListResult object itself. + * @return the IntegrationServiceEnvironmentManagedApiListResult object itself. */ - public ManagedApiListResult withValue(List value) { + public IntegrationServiceEnvironmentManagedApiListResult withValue( + List value) { this.value = value; return this; } @@ -61,9 +63,9 @@ public String nextLink() { * Set the nextLink property: The URL to get the next set of results. * * @param nextLink the nextLink value to set. - * @return the ManagedApiListResult object itself. + * @return the IntegrationServiceEnvironmentManagedApiListResult object itself. */ - public ManagedApiListResult withNextLink(String nextLink) { + public IntegrationServiceEnvironmentManagedApiListResult withNextLink(String nextLink) { this.nextLink = nextLink; return this; } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiOperations.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiOperations.java index 2eeb6fd8d27c..2bf2b609c985 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiOperations.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiOperations.java @@ -18,7 +18,7 @@ public interface IntegrationServiceEnvironmentManagedApiOperations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName, String apiName); @@ -32,7 +32,7 @@ public interface IntegrationServiceEnvironmentManagedApiOperations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed Api operations. + * @return the managed Api operations as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApis.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApis.java index 02123d8697c4..36b5f118683e 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApis.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApis.java @@ -18,9 +18,10 @@ public interface IntegrationServiceEnvironmentManagedApis { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName); + PagedIterable list( + String resourceGroup, String integrationServiceEnvironmentName); /** * Gets the integration service environment managed Apis. @@ -31,9 +32,10 @@ public interface IntegrationServiceEnvironmentManagedApis { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Apis. + * @return the integration service environment managed Apis as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName, Context context); + PagedIterable list( + String resourceGroup, String integrationServiceEnvironmentName, Context context); /** * Gets the integration service environment managed Api. @@ -46,7 +48,8 @@ public interface IntegrationServiceEnvironmentManagedApis { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the integration service environment managed Api. */ - ManagedApi get(String resourceGroup, String integrationServiceEnvironmentName, String apiName); + IntegrationServiceEnvironmentManagedApi get( + String resourceGroup, String integrationServiceEnvironmentName, String apiName); /** * Gets the integration service environment managed Api. @@ -58,60 +61,85 @@ public interface IntegrationServiceEnvironmentManagedApis { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment managed Api. + * @return the integration service environment managed Api along with {@link Response}. */ - Response getWithResponse( + Response getWithResponse( String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); /** - * Puts the integration service environment managed Api. + * Deletes the integration service environment managed Api. * - * @param resourceGroup The resource group name. + * @param resourceGroup The resource group. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. */ - ManagedApi put(String resourceGroup, String integrationServiceEnvironmentName, String apiName); + void delete(String resourceGroup, String integrationServiceEnvironmentName, String apiName); /** - * Puts the integration service environment managed Api. + * Deletes the integration service environment managed Api. * - * @param resourceGroup The resource group name. + * @param resourceGroup The resource group. * @param integrationServiceEnvironmentName The integration service environment name. * @param apiName The api name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the managed api definition. */ - ManagedApi put(String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); + void delete(String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); + + /** + * Gets the integration service environment managed Api. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the integration service environment managed Api along with {@link Response}. + */ + IntegrationServiceEnvironmentManagedApi getById(String id); + + /** + * Gets the integration service environment managed Api. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the integration service environment managed Api along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); /** * Deletes the integration service environment managed Api. * - * @param resourceGroup The resource group. - * @param integrationServiceEnvironmentName The integration service environment name. - * @param apiName The api name. + * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroup, String integrationServiceEnvironmentName, String apiName); + void deleteById(String id); /** * Deletes the integration service environment managed Api. * - * @param resourceGroup The resource group. - * @param integrationServiceEnvironmentName The integration service environment name. - * @param apiName The api name. + * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete(String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context); + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new IntegrationServiceEnvironmentManagedApi resource. + * + * @param name resource name. + * @return the first stage of the new IntegrationServiceEnvironmentManagedApi definition. + */ + IntegrationServiceEnvironmentManagedApi.DefinitionStages.Blank define(String name); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkHealths.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkHealths.java index d287a33223a7..70d199235eb0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkHealths.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentNetworkHealths.java @@ -32,7 +32,7 @@ Map get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the integration service environment network health. + * @return the integration service environment network health along with {@link Response}. */ Response> getWithResponse( String resourceGroup, String integrationServiceEnvironmentName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkus.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkus.java index 7bf0e8565da0..881ecf4031d1 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkus.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentSkus.java @@ -17,7 +17,7 @@ public interface IntegrationServiceEnvironmentSkus { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroup, String integrationServiceEnvironmentName); @@ -31,7 +31,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environment Skus. + * @return a list of integration service environment Skus as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroup, String integrationServiceEnvironmentName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironments.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironments.java index a0c0f3bd54b9..acd6b56d5fd8 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironments.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironments.java @@ -15,7 +15,8 @@ public interface IntegrationServiceEnvironments { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link + * PagedIterable}. */ PagedIterable list(); @@ -27,7 +28,8 @@ public interface IntegrationServiceEnvironments { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by subscription. + * @return a list of integration service environments by subscription as paginated response with {@link + * PagedIterable}. */ PagedIterable list(Integer top, Context context); @@ -38,7 +40,8 @@ public interface IntegrationServiceEnvironments { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroup); @@ -51,7 +54,8 @@ public interface IntegrationServiceEnvironments { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of integration service environments by resource group. + * @return a list of integration service environments by resource group as paginated response with {@link + * PagedIterable}. */ PagedIterable listByResourceGroup( String resourceGroup, Integer top, Context context); @@ -77,7 +81,7 @@ PagedIterable listByResourceGroup( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment along with {@link Response}. */ Response getByResourceGroupWithResponse( String resourceGroup, String integrationServiceEnvironmentName, Context context); @@ -102,7 +106,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse(String resourceGroup, String integrationServiceEnvironmentName, Context context); @@ -126,7 +130,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response restartWithResponse(String resourceGroup, String integrationServiceEnvironmentName, Context context); @@ -137,7 +141,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment along with {@link Response}. */ IntegrationServiceEnvironment getById(String id); @@ -149,7 +153,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an integration service environment. + * @return an integration service environment along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -171,7 +175,7 @@ Response getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultReference.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultReference.java index cff916576f89..6db3fa13fe01 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultReference.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/KeyVaultReference.java @@ -4,12 +4,12 @@ package com.azure.resourcemanager.logic.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; /** The key vault reference. */ -@Immutable +@Fluent public final class KeyVaultReference extends ResourceReference { @JsonIgnore private final ClientLogger logger = new ClientLogger(KeyVaultReference.class); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedApi.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedApi.java deleted file mode 100644 index b42eecc2db0c..000000000000 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedApi.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.logic.models; - -import com.azure.resourcemanager.logic.fluent.models.ManagedApiInner; -import java.util.Map; - -/** An immutable client-side representation of ManagedApi. */ -public interface ManagedApi { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The api resource properties. - * - * @return the properties value. - */ - ApiResourceProperties properties(); - - /** - * Gets the inner com.azure.resourcemanager.logic.fluent.models.ManagedApiInner object. - * - * @return the inner object. - */ - ManagedApiInner innerModel(); -} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedServiceIdentity.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedServiceIdentity.java new file mode 100644 index 000000000000..94e2bd210723 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedServiceIdentity.java @@ -0,0 +1,136 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; +import java.util.UUID; + +/** Managed service identity properties. */ +@Fluent +public class ManagedServiceIdentity { + @JsonIgnore private final ClientLogger logger = new ClientLogger(ManagedServiceIdentity.class); + + /* + * Type of managed service identity. The type 'SystemAssigned' includes an + * implicitly created identity. The type 'None' will remove any identities + * from the resource. + */ + @JsonProperty(value = "type", required = true) + private ManagedServiceIdentityType type; + + /* + * Tenant of managed service identity. + */ + @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) + private UUID tenantId; + + /* + * Principal Id of managed service identity. + */ + @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) + private UUID principalId; + + /* + * The list of user assigned identities associated with the resource. The + * user identity dictionary key references will be ARM resource ids in the + * form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} + */ + @JsonProperty(value = "userAssignedIdentities") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map userAssignedIdentities; + + /** + * Get the type property: Type of managed service identity. The type 'SystemAssigned' includes an implicitly created + * identity. The type 'None' will remove any identities from the resource. + * + * @return the type value. + */ + public ManagedServiceIdentityType type() { + return this.type; + } + + /** + * Set the type property: Type of managed service identity. The type 'SystemAssigned' includes an implicitly created + * identity. The type 'None' will remove any identities from the resource. + * + * @param type the type value to set. + * @return the ManagedServiceIdentity object itself. + */ + public ManagedServiceIdentity withType(ManagedServiceIdentityType type) { + this.type = type; + return this; + } + + /** + * Get the tenantId property: Tenant of managed service identity. + * + * @return the tenantId value. + */ + public UUID tenantId() { + return this.tenantId; + } + + /** + * Get the principalId property: Principal Id of managed service identity. + * + * @return the principalId value. + */ + public UUID principalId() { + return this.principalId; + } + + /** + * Get the userAssignedIdentities property: The list of user assigned identities associated with the resource. The + * user identity dictionary key references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + * + * @return the userAssignedIdentities value. + */ + public Map userAssignedIdentities() { + return this.userAssignedIdentities; + } + + /** + * Set the userAssignedIdentities property: The list of user assigned identities associated with the resource. The + * user identity dictionary key references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + * + * @param userAssignedIdentities the userAssignedIdentities value to set. + * @return the ManagedServiceIdentity object itself. + */ + public ManagedServiceIdentity withUserAssignedIdentities(Map userAssignedIdentities) { + this.userAssignedIdentities = userAssignedIdentities; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (type() == null) { + throw logger + .logExceptionAsError( + new IllegalArgumentException("Missing required property type in model ManagedServiceIdentity")); + } + if (userAssignedIdentities() != null) { + userAssignedIdentities() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedServiceIdentityType.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedServiceIdentityType.java new file mode 100644 index 000000000000..6934508bdc32 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedServiceIdentityType.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for ManagedServiceIdentityType. */ +public final class ManagedServiceIdentityType extends ExpandableStringEnum { + /** Static value SystemAssigned for ManagedServiceIdentityType. */ + public static final ManagedServiceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); + + /** Static value UserAssigned for ManagedServiceIdentityType. */ + public static final ManagedServiceIdentityType USER_ASSIGNED = fromString("UserAssigned"); + + /** Static value None for ManagedServiceIdentityType. */ + public static final ManagedServiceIdentityType NONE = fromString("None"); + + /** + * Creates or finds a ManagedServiceIdentityType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ManagedServiceIdentityType. + */ + @JsonCreator + public static ManagedServiceIdentityType fromString(String name) { + return fromString(name, ManagedServiceIdentityType.class); + } + + /** @return known ManagedServiceIdentityType values. */ + public static Collection values() { + return values(ManagedServiceIdentityType.class); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicies.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicies.java index 46058d1a36e0..ea57e86e8c80 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicies.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicies.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -19,6 +20,7 @@ public final class OpenAuthenticationAccessPolicies { * Open authentication policies. */ @JsonProperty(value = "policies") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map policies; /** diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicy.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicy.java index cce46c6f8dc0..18d82675a321 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicy.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OpenAuthenticationAccessPolicy.java @@ -18,7 +18,7 @@ public final class OpenAuthenticationAccessPolicy { /* * Type of provider for OAuth. */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "type") private OpenAuthenticationProviderType type; /* @@ -36,6 +36,17 @@ public OpenAuthenticationProviderType type() { return this.type; } + /** + * Set the type property: Type of provider for OAuth. + * + * @param type the type value to set. + * @return the OpenAuthenticationAccessPolicy object itself. + */ + public OpenAuthenticationAccessPolicy withType(OpenAuthenticationProviderType type) { + this.type = type; + return this; + } + /** * Get the claims property: The access policy claims. * diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationResultProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationResultProperties.java index 6f9e1f8981b1..6005445a7b46 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationResultProperties.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/OperationResultProperties.java @@ -46,7 +46,7 @@ public class OperationResultProperties { private String code; /* - * Any object + * Anything */ @JsonProperty(value = "error") private Object error; @@ -152,7 +152,7 @@ public OperationResultProperties withCode(String code) { } /** - * Get the error property: Any object. + * Get the error property: Anything. * * @return the error value. */ @@ -161,7 +161,7 @@ public Object error() { } /** - * Set the error property: Any object. + * Set the error property: Anything. * * @param error the error value to set. * @return the OperationResultProperties object itself. diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Operations.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Operations.java index 6d5933b8d8ce..ddad8138fe04 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Operations.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Operations.java @@ -14,7 +14,7 @@ public interface Operations { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedIterable}. */ PagedIterable list(); @@ -25,7 +25,7 @@ public interface Operations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list Logic operations. + * @return result of the request to list Logic operations as paginated response with {@link PagedIterable}. */ PagedIterable list(Context context); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicList.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicList.java index 37a7b756db44..31912fb16d24 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicList.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicList.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -50,6 +51,7 @@ public final class SwaggerCustomDynamicList { * The parameters. */ @JsonProperty(value = "parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map parameters; /** diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicProperties.java index fa97ff9585a9..ac4b11442e60 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicProperties.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicProperties.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -31,6 +32,7 @@ public final class SwaggerCustomDynamicProperties { * The operation parameters. */ @JsonProperty(value = "parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map parameters; /** diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicSchema.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicSchema.java index 3d845d072801..0b83a34d7714 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicSchema.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicSchema.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -31,6 +32,7 @@ public final class SwaggerCustomDynamicSchema { * The operation parameters. */ @JsonProperty(value = "parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map parameters; /** diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeCommand.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeCommand.java index d6750653f2a8..371dec7251d0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeCommand.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerCustomDynamicTreeCommand.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -61,6 +62,7 @@ public final class SwaggerCustomDynamicTreeCommand { * Dictionary of */ @JsonProperty(value = "parameters") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map parameters; /** diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerExternalDocumentation.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerExternalDocumentation.java index f81a8c27ed05..a0f644634f05 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerExternalDocumentation.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerExternalDocumentation.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -31,6 +32,7 @@ public final class SwaggerExternalDocumentation { * The vendor extensions. */ @JsonProperty(value = "extensions") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map extensions; /** diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerSchema.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerSchema.java index 7595790dea14..fde6429faa3b 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerSchema.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerSchema.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import java.util.Map; @@ -44,6 +45,7 @@ public final class SwaggerSchema { * The object properties */ @JsonProperty(value = "properties") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map properties; /* diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerXml.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerXml.java index 0f817babca8c..3e3ae7331665 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerXml.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/SwaggerXml.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -50,6 +51,7 @@ public final class SwaggerXml { * The vendor extensions. */ @JsonProperty(value = "extensions") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map extensions; /** diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/UserAssignedIdentity.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/UserAssignedIdentity.java new file mode 100644 index 000000000000..f97b40b27e4f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/UserAssignedIdentity.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** User Assigned identity properties. */ +@Immutable +public class UserAssignedIdentity { + @JsonIgnore private final ClientLogger logger = new ClientLogger(UserAssignedIdentity.class); + + /* + * Principal Id of user assigned identity + */ + @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) + private String principalId; + + /* + * Client Id of user assigned identity + */ + @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) + private String clientId; + + /** + * Get the principalId property: Principal Id of user assigned identity. + * + * @return the principalId value. + */ + public String principalId() { + return this.principalId; + } + + /** + * Get the clientId property: Client Id of user assigned identity. + * + * @return the clientId value. + */ + public String clientId() { + return this.clientId; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflow.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflow.java index e13e48583db4..9187def300ec 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflow.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflow.java @@ -48,6 +48,13 @@ public interface Workflow { */ Map tags(); + /** + * Gets the identity property: Managed service identity properties. + * + * @return the identity value. + */ + ManagedServiceIdentity identity(); + /** * Gets the provisioningState property: Gets the provisioning state. * @@ -206,6 +213,7 @@ interface WithResourceGroup { */ interface WithCreate extends DefinitionStages.WithTags, + DefinitionStages.WithIdentity, DefinitionStages.WithState, DefinitionStages.WithEndpointsConfiguration, DefinitionStages.WithAccessControl, @@ -238,6 +246,16 @@ interface WithTags { */ WithCreate withTags(Map tags); } + /** The stage of the Workflow definition allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: Managed service identity properties.. + * + * @param identity Managed service identity properties. + * @return the next definition stage. + */ + WithCreate withIdentity(ManagedServiceIdentity identity); + } /** The stage of the Workflow definition allowing to specify state. */ interface WithState { /** @@ -319,6 +337,7 @@ interface WithParameters { /** The template for Workflow update. */ interface Update extends UpdateStages.WithTags, + UpdateStages.WithIdentity, UpdateStages.WithState, UpdateStages.WithEndpointsConfiguration, UpdateStages.WithAccessControl, @@ -353,6 +372,16 @@ interface WithTags { */ Update withTags(Map tags); } + /** The stage of the Workflow update allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: Managed service identity properties.. + * + * @param identity Managed service identity properties. + * @return the next definition stage. + */ + Update withIdentity(ManagedServiceIdentity identity); + } /** The stage of the Workflow update allowing to specify state. */ interface WithState { /** @@ -454,7 +483,7 @@ interface WithParameters { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response disableWithResponse(Context context); @@ -473,7 +502,7 @@ interface WithParameters { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response enableWithResponse(Context context); @@ -496,7 +525,7 @@ interface WithParameters { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return any object along with {@link Response}. */ Response generateUpgradedDefinitionWithResponse( GenerateUpgradedDefinitionParameters parameters, Context context); @@ -520,7 +549,7 @@ Response generateUpgradedDefinitionWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow callback Url. + * @return the workflow callback Url along with {@link Response}. */ Response listCallbackUrlWithResponse( GetCallbackUrlParameters listCallbackUrl, Context context); @@ -541,7 +570,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an OpenAPI definition for the workflow. + * @return an OpenAPI definition for the workflow along with {@link Response}. */ Response listSwaggerWithResponse(Context context); @@ -584,7 +613,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response regenerateAccessKeyWithResponse(RegenerateActionParameter keyType, Context context); @@ -606,7 +635,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response validateByResourceGroupWithResponse(WorkflowInner validate, Context context); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowOutputParameter.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowOutputParameter.java index 0ee56c0bb8ad..a359f5b4de18 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowOutputParameter.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowOutputParameter.java @@ -4,13 +4,13 @@ package com.azure.resourcemanager.logic.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The workflow output parameter. */ -@Immutable +@Fluent public final class WorkflowOutputParameter extends WorkflowParameter { @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowOutputParameter.class); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowReference.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowReference.java index 2ac416bab5a1..13d13183c0e0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowReference.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowReference.java @@ -4,12 +4,12 @@ package com.azure.resourcemanager.logic.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; /** The workflow reference. */ -@Immutable +@Fluent public final class WorkflowReference extends ResourceReference { @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowReference.class); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionDefinition.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionDefinition.java index 27149c7fb29b..ce2dfac2787a 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionDefinition.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionDefinition.java @@ -47,46 +47,11 @@ public interface WorkflowRunActionRepetitionDefinition { Map tags(); /** - * Gets the startTime property: The start time of the workflow scope repetition. - * - * @return the startTime value. - */ - OffsetDateTime startTime(); - - /** - * Gets the endTime property: The end time of the workflow scope repetition. - * - * @return the endTime value. - */ - OffsetDateTime endTime(); - - /** - * Gets the correlation property: The correlation properties. - * - * @return the correlation value. - */ - RunActionCorrelation correlation(); - - /** - * Gets the status property: The status of the workflow scope repetition. - * - * @return the status value. - */ - WorkflowStatus status(); - - /** - * Gets the code property: The workflow scope repetition code. - * - * @return the code value. - */ - String code(); - - /** - * Gets the error property: Any object. + * Gets the repetitionIndexes property: The repetition indexes. * - * @return the error value. + * @return the repetitionIndexes value. */ - Object error(); + List repetitionIndexes(); /** * Gets the trackingId property: Gets the tracking id. @@ -145,11 +110,46 @@ public interface WorkflowRunActionRepetitionDefinition { Integer iterationCount(); /** - * Gets the repetitionIndexes property: The repetition indexes. + * Gets the startTime property: The start time of the workflow scope repetition. * - * @return the repetitionIndexes value. + * @return the startTime value. */ - List repetitionIndexes(); + OffsetDateTime startTime(); + + /** + * Gets the endTime property: The end time of the workflow scope repetition. + * + * @return the endTime value. + */ + OffsetDateTime endTime(); + + /** + * Gets the correlation property: The correlation properties. + * + * @return the correlation value. + */ + RunActionCorrelation correlation(); + + /** + * Gets the status property: The status of the workflow scope repetition. + * + * @return the status value. + */ + WorkflowStatus status(); + + /** + * Gets the code property: The workflow scope repetition code. + * + * @return the code value. + */ + String code(); + + /** + * Gets the error property: Anything. + * + * @return the error value. + */ + Object error(); /** * Gets the inner com.azure.resourcemanager.logic.fluent.models.WorkflowRunActionRepetitionDefinitionInner object. diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitions.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitions.java index 369b075b29d9..78c91f6588af 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitions.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitions.java @@ -20,7 +20,7 @@ public interface WorkflowRunActionRepetitions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, String actionName); @@ -36,7 +36,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all of a workflow run action repetitions. + * @return all of a workflow run action repetitions as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, String actionName, Context context); @@ -69,7 +69,7 @@ WorkflowRunActionRepetitionDefinition get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action repetition. + * @return a workflow run action repetition along with {@link Response}. */ Response getWithResponse( String resourceGroupName, @@ -90,7 +90,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ PagedIterable listExpressionTraces( String resourceGroupName, String workflowName, String runName, String actionName, String repetitionName); @@ -107,7 +107,7 @@ PagedIterable listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ PagedIterable listExpressionTraces( String resourceGroupName, diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionsRequestHistories.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionsRequestHistories.java index 654103304829..47d27b785277 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionsRequestHistories.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRepetitionsRequestHistories.java @@ -21,7 +21,7 @@ public interface WorkflowRunActionRepetitionsRequestHistories { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, String actionName, String repetitionName); @@ -38,7 +38,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, @@ -83,7 +83,7 @@ RequestHistory get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run repetition request history. + * @return a workflow run repetition request history along with {@link Response}. */ Response getWithResponse( String resourceGroupName, diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRequestHistories.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRequestHistories.java index 2cb6ce09c365..b0de16a35e98 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRequestHistories.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionRequestHistories.java @@ -20,7 +20,7 @@ public interface WorkflowRunActionRequestHistories { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, String actionName); @@ -36,7 +36,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of workflow request histories. + * @return the list of workflow request histories as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, String actionName, Context context); @@ -69,7 +69,7 @@ RequestHistory get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run request history. + * @return a workflow run request history along with {@link Response}. */ Response getWithResponse( String resourceGroupName, diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionScopeRepetitions.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionScopeRepetitions.java index 69c7feefe909..4679bc257e0b 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionScopeRepetitions.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActionScopeRepetitions.java @@ -20,7 +20,7 @@ public interface WorkflowRunActionScopeRepetitions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, String actionName); @@ -36,7 +36,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of workflow run action repetitions. + * @return a collection of workflow run action repetitions as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, String actionName, Context context); @@ -69,7 +69,7 @@ WorkflowRunActionRepetitionDefinition get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action scoped repetition. + * @return a workflow run action scoped repetition along with {@link Response}. */ Response getWithResponse( String resourceGroupName, diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActions.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActions.java index 0140e9cafa00..241965302a34 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActions.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunActions.java @@ -19,7 +19,7 @@ public interface WorkflowRunActions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workflowName, String runName); @@ -35,7 +35,7 @@ public interface WorkflowRunActions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow run actions. + * @return a list of workflow run actions as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String runName, Integer top, String filter, Context context); @@ -65,7 +65,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run action. + * @return a workflow run action along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String workflowName, String runName, String actionName, Context context); @@ -80,7 +80,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ PagedIterable listExpressionTraces( String resourceGroupName, String workflowName, String runName, String actionName); @@ -96,7 +96,7 @@ PagedIterable listExpressionTraces( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the expression traces. + * @return the expression traces as paginated response with {@link PagedIterable}. */ PagedIterable listExpressionTraces( String resourceGroupName, String workflowName, String runName, String actionName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunOperations.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunOperations.java index 11e811c846d2..4929397fb609 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunOperations.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunOperations.java @@ -34,7 +34,7 @@ public interface WorkflowRunOperations { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an operation for a run. + * @return an operation for a run along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String workflowName, String runName, String operationId, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRuns.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRuns.java index 37c278287048..ede74f059dd7 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRuns.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRuns.java @@ -18,7 +18,7 @@ public interface WorkflowRuns { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workflowName); @@ -34,7 +34,7 @@ public interface WorkflowRuns { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow runs. + * @return a list of workflow runs as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, Integer top, String filter, Context context); @@ -62,7 +62,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow run. + * @return a workflow run along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String workflowName, String runName, Context context); @@ -89,7 +89,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response cancelWithResponse(String resourceGroupName, String workflowName, String runName, Context context); } diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerHistories.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerHistories.java index c1b18484a379..b18cece0277c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerHistories.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggerHistories.java @@ -19,7 +19,7 @@ public interface WorkflowTriggerHistories { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workflowName, String triggerName); @@ -36,7 +36,7 @@ public interface WorkflowTriggerHistories { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow trigger histories. + * @return a list of workflow trigger histories as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, String triggerName, Integer top, String filter, Context context); @@ -68,7 +68,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger history. + * @return a workflow trigger history along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String workflowName, String triggerName, String historyName, Context context); @@ -99,7 +99,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response resubmitWithResponse( String resourceGroupName, String workflowName, String triggerName, String historyName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggers.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggers.java index 1830afd85837..afee48b9d094 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggers.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggers.java @@ -18,7 +18,7 @@ public interface WorkflowTriggers { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workflowName); @@ -33,7 +33,7 @@ public interface WorkflowTriggers { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow triggers. + * @return a list of workflow triggers as paginated response with {@link PagedIterable}. */ PagedIterable list( String resourceGroupName, String workflowName, Integer top, String filter, Context context); @@ -61,7 +61,7 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow trigger. + * @return a workflow trigger along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String workflowName, String triggerName, Context context); @@ -88,7 +88,7 @@ Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response resetWithResponse( String resourceGroupName, String workflowName, String triggerName, Context context); @@ -115,7 +115,7 @@ Response resetWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response runWithResponse(String resourceGroupName, String workflowName, String triggerName, Context context); @@ -142,7 +142,7 @@ Response resetWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the trigger schema as JSON. + * @return the trigger schema as JSON along with {@link Response}. */ Response getSchemaJsonWithResponse( String resourceGroupName, String workflowName, String triggerName, Context context); @@ -172,7 +172,7 @@ void setState( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response setStateWithResponse( String resourceGroupName, @@ -204,7 +204,7 @@ Response setStateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback URL for a workflow trigger. + * @return the callback URL for a workflow trigger along with {@link Response}. */ Response listCallbackUrlWithResponse( String resourceGroupName, String workflowName, String triggerName, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersionTriggers.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersionTriggers.java index 2bc2bd2234ba..409eeae7c50c 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersionTriggers.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersionTriggers.java @@ -36,7 +36,7 @@ WorkflowTriggerCallbackUrl listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the callback url for a trigger of a workflow version. + * @return the callback url for a trigger of a workflow version along with {@link Response}. */ Response listCallbackUrlWithResponse( String resourceGroupName, diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersions.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersions.java index e62286731f29..f6aea29ac0b0 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersions.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowVersions.java @@ -18,7 +18,7 @@ public interface WorkflowVersions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workflowName); @@ -32,7 +32,7 @@ public interface WorkflowVersions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflow versions. + * @return a list of workflow versions as paginated response with {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workflowName, Integer top, Context context); @@ -59,7 +59,7 @@ public interface WorkflowVersions { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow version. + * @return a workflow version along with {@link Response}. */ Response getWithResponse( String resourceGroupName, String workflowName, String versionId, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflows.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflows.java index e5b033261d35..d27002f71c4e 100644 --- a/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflows.java +++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/Workflows.java @@ -16,7 +16,7 @@ public interface Workflows { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedIterable}. */ PagedIterable list(); @@ -30,7 +30,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by subscription. + * @return a list of workflows by subscription as paginated response with {@link PagedIterable}. */ PagedIterable list(Integer top, String filter, Context context); @@ -41,7 +41,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); @@ -56,7 +56,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of workflows by resource group. + * @return a list of workflows by resource group as paginated response with {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Integer top, String filter, Context context); @@ -81,7 +81,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow along with {@link Response}. */ Response getByResourceGroupWithResponse(String resourceGroupName, String workflowName, Context context); @@ -106,7 +106,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow type. + * @return the workflow type along with {@link Response}. */ Response updateWithResponse(String resourceGroupName, String workflowName, Context context); @@ -130,7 +130,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteWithResponse(String resourceGroupName, String workflowName, Context context); @@ -154,7 +154,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response disableWithResponse(String resourceGroupName, String workflowName, Context context); @@ -178,7 +178,7 @@ public interface Workflows { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response enableWithResponse(String resourceGroupName, String workflowName, Context context); @@ -206,7 +206,7 @@ Object generateUpgradedDefinition( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return any object. + * @return any object along with {@link Response}. */ Response generateUpgradedDefinitionWithResponse( String resourceGroupName, @@ -238,7 +238,7 @@ WorkflowTriggerCallbackUrl listCallbackUrl( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the workflow callback Url. + * @return the workflow callback Url along with {@link Response}. */ Response listCallbackUrlWithResponse( String resourceGroupName, String workflowName, GetCallbackUrlParameters listCallbackUrl, Context context); @@ -264,7 +264,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an OpenAPI definition for the workflow. + * @return an OpenAPI definition for the workflow along with {@link Response}. */ Response listSwaggerWithResponse(String resourceGroupName, String workflowName, Context context); @@ -315,7 +315,7 @@ Response listCallbackUrlWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response regenerateAccessKeyWithResponse( String resourceGroupName, String workflowName, RegenerateActionParameter keyType, Context context); @@ -342,7 +342,7 @@ Response regenerateAccessKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response validateByResourceGroupWithResponse( String resourceGroupName, String workflowName, WorkflowInner validate, Context context); @@ -371,7 +371,7 @@ Response validateByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response validateByLocationWithResponse( String resourceGroupName, String location, String workflowName, WorkflowInner validate, Context context); @@ -383,7 +383,7 @@ Response validateByLocationWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow along with {@link Response}. */ Workflow getById(String id); @@ -395,7 +395,7 @@ Response validateByLocationWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workflow. + * @return a workflow along with {@link Response}. */ Response getByIdWithResponse(String id, Context context); @@ -417,7 +417,7 @@ Response validateByLocationWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the {@link Response}. */ Response deleteByIdWithResponse(String id, Context context); diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..43919c3129a9 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsCreateOrUpdateSamples.java @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.AS2AcknowledgementConnectionSettings; +import com.azure.resourcemanager.logic.models.AS2AgreementContent; +import com.azure.resourcemanager.logic.models.AS2EnvelopeSettings; +import com.azure.resourcemanager.logic.models.AS2ErrorSettings; +import com.azure.resourcemanager.logic.models.AS2MdnSettings; +import com.azure.resourcemanager.logic.models.AS2MessageConnectionSettings; +import com.azure.resourcemanager.logic.models.AS2OneWayAgreement; +import com.azure.resourcemanager.logic.models.AS2ProtocolSettings; +import com.azure.resourcemanager.logic.models.AS2SecuritySettings; +import com.azure.resourcemanager.logic.models.AS2ValidationSettings; +import com.azure.resourcemanager.logic.models.AgreementContent; +import com.azure.resourcemanager.logic.models.AgreementType; +import com.azure.resourcemanager.logic.models.BusinessIdentity; +import com.azure.resourcemanager.logic.models.EncryptionAlgorithm; +import com.azure.resourcemanager.logic.models.HashingAlgorithm; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationAccountAgreements CreateOrUpdate. */ +public final class IntegrationAccountAgreementsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an agreement. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnAgreement(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountAgreements() + .define("testAgreement") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withAgreementType(AgreementType.AS2) + .withHostPartner("HostPartner") + .withGuestPartner("GuestPartner") + .withHostIdentity(new BusinessIdentity().withQualifier("ZZ").withValue("ZZ")) + .withGuestIdentity(new BusinessIdentity().withQualifier("AA").withValue("AA")) + .withContent( + new AgreementContent() + .withAS2( + new AS2AgreementContent() + .withReceiveAgreement( + new AS2OneWayAgreement() + .withSenderBusinessIdentity( + new BusinessIdentity().withQualifier("AA").withValue("AA")) + .withReceiverBusinessIdentity( + new BusinessIdentity().withQualifier("ZZ").withValue("ZZ")) + .withProtocolSettings( + new AS2ProtocolSettings() + .withMessageConnectionSettings( + new AS2MessageConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withAcknowledgementConnectionSettings( + new AS2AcknowledgementConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withMdnSettings( + new AS2MdnSettings() + .withNeedMdn(true) + .withSignMdn(true) + .withSendMdnAsynchronously(true) + .withReceiptDeliveryUrl("http://tempuri.org") + .withDispositionNotificationTo("http://tempuri.org") + .withSignOutboundMdnIfOptional(true) + .withMdnText("Sample") + .withSendInboundMdnToMessageBox(true) + .withMicHashingAlgorithm(HashingAlgorithm.SHA1)) + .withSecuritySettings( + new AS2SecuritySettings() + .withOverrideGroupSigningCertificate(false) + .withEnableNrrForInboundEncodedMessages(true) + .withEnableNrrForInboundDecodedMessages(true) + .withEnableNrrForOutboundMdn(true) + .withEnableNrrForOutboundEncodedMessages(true) + .withEnableNrrForOutboundDecodedMessages(true) + .withEnableNrrForInboundMdn(true)) + .withValidationSettings( + new AS2ValidationSettings() + .withOverrideMessageProperties(true) + .withEncryptMessage(false) + .withSignMessage(false) + .withCompressMessage(true) + .withCheckDuplicateMessage(true) + .withInterchangeDuplicatesValidityDays(100) + .withCheckCertificateRevocationListOnSend(true) + .withCheckCertificateRevocationListOnReceive(true) + .withEncryptionAlgorithm(EncryptionAlgorithm.AES128)) + .withEnvelopeSettings( + new AS2EnvelopeSettings() + .withMessageContentType("text/plain") + .withTransmitFileNameInMimeHeader(true) + .withFileNameTemplate("Test") + .withSuspendMessageOnFileNameGenerationError(true) + .withAutogenerateFileName(true)) + .withErrorSettings( + new AS2ErrorSettings() + .withSuspendDuplicateMessage(true) + .withResendIfMdnNotReceived(true)))) + .withSendAgreement( + new AS2OneWayAgreement() + .withSenderBusinessIdentity( + new BusinessIdentity().withQualifier("ZZ").withValue("ZZ")) + .withReceiverBusinessIdentity( + new BusinessIdentity().withQualifier("AA").withValue("AA")) + .withProtocolSettings( + new AS2ProtocolSettings() + .withMessageConnectionSettings( + new AS2MessageConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withAcknowledgementConnectionSettings( + new AS2AcknowledgementConnectionSettings() + .withIgnoreCertificateNameMismatch(true) + .withSupportHttpStatusCodeContinue(true) + .withKeepHttpConnectionAlive(true) + .withUnfoldHttpHeaders(true)) + .withMdnSettings( + new AS2MdnSettings() + .withNeedMdn(true) + .withSignMdn(true) + .withSendMdnAsynchronously(true) + .withReceiptDeliveryUrl("http://tempuri.org") + .withDispositionNotificationTo("http://tempuri.org") + .withSignOutboundMdnIfOptional(true) + .withMdnText("Sample") + .withSendInboundMdnToMessageBox(true) + .withMicHashingAlgorithm(HashingAlgorithm.SHA1)) + .withSecuritySettings( + new AS2SecuritySettings() + .withOverrideGroupSigningCertificate(false) + .withEnableNrrForInboundEncodedMessages(true) + .withEnableNrrForInboundDecodedMessages(true) + .withEnableNrrForOutboundMdn(true) + .withEnableNrrForOutboundEncodedMessages(true) + .withEnableNrrForOutboundDecodedMessages(true) + .withEnableNrrForInboundMdn(true)) + .withValidationSettings( + new AS2ValidationSettings() + .withOverrideMessageProperties(true) + .withEncryptMessage(false) + .withSignMessage(false) + .withCompressMessage(true) + .withCheckDuplicateMessage(true) + .withInterchangeDuplicatesValidityDays(100) + .withCheckCertificateRevocationListOnSend(true) + .withCheckCertificateRevocationListOnReceive(true) + .withEncryptionAlgorithm(EncryptionAlgorithm.AES128)) + .withEnvelopeSettings( + new AS2EnvelopeSettings() + .withMessageContentType("text/plain") + .withTransmitFileNameInMimeHeader(true) + .withFileNameTemplate("Test") + .withSuspendMessageOnFileNameGenerationError(true) + .withAutogenerateFileName(true)) + .withErrorSettings( + new AS2ErrorSettings() + .withSuspendDuplicateMessage(true) + .withResendIfMdnNotReceived(true)))))) + .withTags(mapOf("IntegrationAccountAgreement", "")) + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsDeleteSamples.java new file mode 100644 index 000000000000..dab8bad53725 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAgreements Delete. */ +public final class IntegrationAccountAgreementsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_Delete.json + */ + /** + * Sample code: Delete an agreement. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnAgreement(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testAgreement", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsGetSamples.java new file mode 100644 index 000000000000..19386f597ba4 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAgreements Get. */ +public final class IntegrationAccountAgreementsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_Get.json + */ + /** + * Sample code: Get agreement by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getAgreementByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testAgreement", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsListContentCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsListContentCallbackUrlSamples.java new file mode 100644 index 000000000000..34e8f49296a6 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsListContentCallbackUrlSamples.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountAgreements ListContentCallbackUrl. */ +public final class IntegrationAccountAgreementsListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testAgreement", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsListSamples.java new file mode 100644 index 000000000000..1fde600f90a0 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAgreementsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAgreements List. */ +public final class IntegrationAccountAgreementsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAgreements_List.json + */ + /** + * Sample code: Get agreements by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getAgreementsByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAgreements() + .list("testResourceGroup", "testIntegrationAccount", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..e5f5688655a1 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesCreateOrUpdateSamples.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.AssemblyProperties; +import java.io.IOException; + +/** Samples for IntegrationAccountAssemblies CreateOrUpdate. */ +public final class IntegrationAccountAssembliesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnAccountAssembly(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountAssemblies() + .define("testAssembly") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withProperties( + new AssemblyProperties() + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .withContent("Base64 encoded Assembly Content") + .withAssemblyName("System.IdentityModel.Tokens.Jwt")) + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesDeleteSamples.java new file mode 100644 index 000000000000..011a86ada335 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies Delete. */ +public final class IntegrationAccountAssembliesDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_Delete.json + */ + /** + * Sample code: Delete an integration account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccountAssembly(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAssemblies() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testAssembly", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesGetSamples.java new file mode 100644 index 000000000000..c19570deba46 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies Get. */ +public final class IntegrationAccountAssembliesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_Get.json + */ + /** + * Sample code: Get an integration account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void getAnIntegrationAccountAssembly(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAssemblies() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testAssembly", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesListContentCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesListContentCallbackUrlSamples.java new file mode 100644 index 000000000000..35d7d60e6070 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesListContentCallbackUrlSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies ListContentCallbackUrl. */ +public final class IntegrationAccountAssembliesListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the callback url for an integration account assembly. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheCallbackUrlForAnIntegrationAccountAssembly( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountAssemblies() + .listContentCallbackUrlWithResponse( + "testResourceGroup", "testIntegrationAccount", "testAssembly", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesListSamples.java new file mode 100644 index 000000000000..74251d8fb204 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountAssembliesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountAssemblies List. */ +public final class IntegrationAccountAssembliesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountAssemblies_List.json + */ + /** + * Sample code: List integration account assemblies. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountAssemblies(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccountAssemblies().list("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..2a96bb14ba73 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsCreateOrUpdateSamples.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.resourcemanager.logic.models.BatchConfigurationProperties; +import com.azure.resourcemanager.logic.models.BatchReleaseCriteria; +import com.azure.resourcemanager.logic.models.RecurrenceFrequency; +import com.azure.resourcemanager.logic.models.WorkflowTriggerRecurrence; + +/** Samples for IntegrationAccountBatchConfigurations CreateOrUpdate. */ +public final class IntegrationAccountBatchConfigurationsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a batch configuration. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateABatchConfiguration(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .define("testBatchConfiguration") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withProperties( + new BatchConfigurationProperties() + .withBatchGroupName("DEFAULT") + .withReleaseCriteria( + new BatchReleaseCriteria() + .withMessageCount(10) + .withBatchSize(234567) + .withRecurrence( + new WorkflowTriggerRecurrence() + .withFrequency(RecurrenceFrequency.MINUTE) + .withInterval(1) + .withStartTime("2017-03-24T11:43:00") + .withTimeZone("India Standard Time")))) + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsDeleteSamples.java new file mode 100644 index 000000000000..5f169efc13e0 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountBatchConfigurations Delete. */ +public final class IntegrationAccountBatchConfigurationsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_Delete.json + */ + /** + * Sample code: Delete a batch configuration. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteABatchConfiguration(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testBatchConfiguration", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsGetSamples.java new file mode 100644 index 000000000000..028371fdae5b --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountBatchConfigurations Get. */ +public final class IntegrationAccountBatchConfigurationsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_Get.json + */ + /** + * Sample code: Get a batch configuration. + * + * @param manager Entry point to LogicManager. + */ + public static void getABatchConfiguration(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testBatchConfiguration", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsListSamples.java new file mode 100644 index 000000000000..7a7855fb294a --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountBatchConfigurationsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountBatchConfigurations List. */ +public final class IntegrationAccountBatchConfigurationsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountBatchConfigurations_List.json + */ + /** + * Sample code: List batch configurations. + * + * @param manager Entry point to LogicManager. + */ + public static void listBatchConfigurations(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountBatchConfigurations() + .list("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesCreateOrUpdateSamples.java new file mode 100644 index 000000000000..ac067764c6a3 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesCreateOrUpdateSamples.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.resourcemanager.logic.models.KeyVaultKeyReference; +import com.azure.resourcemanager.logic.models.KeyVaultKeyReferenceKeyVault; + +/** Samples for IntegrationAccountCertificates CreateOrUpdate. */ +public final class IntegrationAccountCertificatesCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a certificate. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateACertificate(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .define("testCertificate") + .withRegion("brazilsouth") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withKey( + new KeyVaultKeyReference() + .withKeyVault( + new KeyVaultKeyReferenceKeyVault() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testResourceGroup/providers/microsoft.keyvault/vaults/")) + .withKeyName("") + .withKeyVersion("87d9764197604449b9b8eb7bd8710868")) + .withPublicCertificate("") + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesDeleteSamples.java new file mode 100644 index 000000000000..9def6464adec --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountCertificates Delete. */ +public final class IntegrationAccountCertificatesDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_Delete.json + */ + /** + * Sample code: Delete a certificate. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteACertificate(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testCertificate", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesGetSamples.java new file mode 100644 index 000000000000..eec2356930c6 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountCertificates Get. */ +public final class IntegrationAccountCertificatesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_Get.json + */ + /** + * Sample code: Get certificate by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getCertificateByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testCertificate", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesListSamples.java new file mode 100644 index 000000000000..1cf0f5474bc1 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountCertificatesListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountCertificates List. */ +public final class IntegrationAccountCertificatesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountCertificates_List.json + */ + /** + * Sample code: Get certificates by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getCertificatesByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountCertificates() + .list("testResourceGroup", "testIntegrationAccount", null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..f436e59e76dc --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsCreateOrUpdateSamples.java @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.MapType; +import java.io.IOException; + +/** Samples for IntegrationAccountMaps CreateOrUpdate. */ +public final class IntegrationAccountMapsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountLargeMaps_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a map larger than 4 MB. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAMapLargerThan4MB(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountMaps() + .define("testMap") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withMapType(MapType.XSLT) + .withContentType("application/xml") + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } + + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a map. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAMap(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccountMaps() + .define("testMap") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withMapType(MapType.XSLT) + .withContent( + "\r\n" + + "\r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + "") + .withContentType("application/xml") + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsDeleteSamples.java new file mode 100644 index 000000000000..a639f31caf69 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountMaps Delete. */ +public final class IntegrationAccountMapsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_Delete.json + */ + /** + * Sample code: Delete a map. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAMap(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountMaps() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testMap", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsGetSamples.java new file mode 100644 index 000000000000..1c29e02efce4 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountMaps Get. */ +public final class IntegrationAccountMapsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_Get.json + */ + /** + * Sample code: Get map by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getMapByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountMaps() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testMap", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsListContentCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsListContentCallbackUrlSamples.java new file mode 100644 index 000000000000..41e495d0f9ee --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsListContentCallbackUrlSamples.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountMaps ListContentCallbackUrl. */ +public final class IntegrationAccountMapsListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountMaps() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testMap", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsListSamples.java new file mode 100644 index 000000000000..edd7d5c4ae8c --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountMapsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountMaps List. */ +public final class IntegrationAccountMapsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountMaps_List.json + */ + /** + * Sample code: Get maps by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getMapsByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccountMaps().list("testResourceGroup", "testIntegrationAccount", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersCreateOrUpdateSamples.java new file mode 100644 index 000000000000..0831e250534f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersCreateOrUpdateSamples.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.B2BPartnerContent; +import com.azure.resourcemanager.logic.models.BusinessIdentity; +import com.azure.resourcemanager.logic.models.PartnerContent; +import com.azure.resourcemanager.logic.models.PartnerType; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationAccountPartners CreateOrUpdate. */ +public final class IntegrationAccountPartnersCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a partner. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAPartner(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccountPartners() + .define("testPartner") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withPartnerType(PartnerType.B2B) + .withContent( + new PartnerContent() + .withB2B( + new B2BPartnerContent() + .withBusinessIdentities( + Arrays.asList(new BusinessIdentity().withQualifier("AA").withValue("ZZ"))))) + .withTags(mapOf()) + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersDeleteSamples.java new file mode 100644 index 000000000000..60e34e035d66 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountPartners Delete. */ +public final class IntegrationAccountPartnersDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_Delete.json + */ + /** + * Sample code: Delete a partner. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAPartner(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testPartner", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersGetSamples.java new file mode 100644 index 000000000000..86344ca1625a --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountPartners Get. */ +public final class IntegrationAccountPartnersGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_Get.json + */ + /** + * Sample code: Get partner by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getPartnerByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testPartner", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersListContentCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersListContentCallbackUrlSamples.java new file mode 100644 index 000000000000..2f3868e1027f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersListContentCallbackUrlSamples.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountPartners ListContentCallbackUrl. */ +public final class IntegrationAccountPartnersListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testPartner", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersListSamples.java new file mode 100644 index 000000000000..faa805ef4c45 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountPartnersListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountPartners List. */ +public final class IntegrationAccountPartnersListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountPartners_List.json + */ + /** + * Sample code: Get partners by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getPartnersByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountPartners() + .list("testResourceGroup", "testIntegrationAccount", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasCreateOrUpdateSamples.java new file mode 100644 index 000000000000..0d29efabeb1f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasCreateOrUpdateSamples.java @@ -0,0 +1,227 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.SchemaType; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationAccountSchemas CreateOrUpdate. */ +public final class IntegrationAccountSchemasCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_CreateOrUpdate.json + */ + /** + * Sample code: Create or update schema. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateSchema(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccountSchemas() + .define("testSchema") + .withRegion("westus") + .withExistingIntegrationAccount("testResourceGroup", "testIntegrationAccount") + .withSchemaType(SchemaType.XML) + .withTags(mapOf("integrationAccountSchemaName", "IntegrationAccountSchema8120")) + .withMetadata( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize("{}", Object.class, SerializerEncoding.JSON)) + .withContent( + "\r\n" + + "\r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + " \r\n" + + "") + .withContentType("application/xml") + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasDeleteSamples.java new file mode 100644 index 000000000000..fdf5dc50711c --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSchemas Delete. */ +public final class IntegrationAccountSchemasDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_Delete.json + */ + /** + * Sample code: Delete a schema by name. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteASchemaByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .deleteWithResponse("testResourceGroup", "testIntegrationAccount", "testSchema", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasGetSamples.java new file mode 100644 index 000000000000..f16f84e599f8 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSchemas Get. */ +public final class IntegrationAccountSchemasGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_Get.json + */ + /** + * Sample code: Get schema by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getSchemaByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .getWithResponse("testResourceGroup", "testIntegrationAccount", "testSchema", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasListContentCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasListContentCallbackUrlSamples.java new file mode 100644 index 000000000000..a9e89ce69ebe --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasListContentCallbackUrlSamples.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccountSchemas ListContentCallbackUrl. */ +public final class IntegrationAccountSchemasListContentCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_ListContentCallbackUrl.json + */ + /** + * Sample code: Get the content callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheContentCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .listContentCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + "testSchema", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasListSamples.java new file mode 100644 index 000000000000..3fa8893fbad5 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSchemasListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSchemas List. */ +public final class IntegrationAccountSchemasListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSchemas_List.json + */ + /** + * Sample code: Get schemas by integration account name. + * + * @param manager Entry point to LogicManager. + */ + public static void getSchemasByIntegrationAccountName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSchemas() + .list("testResourceGroup", "", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..80a0ef06e78f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsCreateOrUpdateSamples.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import java.io.IOException; + +/** Samples for IntegrationAccountSessions CreateOrUpdate. */ +public final class IntegrationAccountSessionsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an integration account session. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnIntegrationAccountSession(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .integrationAccountSessions() + .define("testsession123-ICN") + .withRegion((String) null) + .withExistingIntegrationAccount("testrg123", "testia123") + .withContent( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"controlNumber\":\"1234\",\"controlNumberChangedTime\":\"2017-02-21T22:30:11.9923759Z\"}", + Object.class, + SerializerEncoding.JSON)) + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsDeleteSamples.java new file mode 100644 index 000000000000..217cb31a0eeb --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSessions Delete. */ +public final class IntegrationAccountSessionsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_Delete.json + */ + /** + * Sample code: Delete an integration account session. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccountSession(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSessions() + .deleteWithResponse("testrg123", "testia123", "testsession123-ICN", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsGetSamples.java new file mode 100644 index 000000000000..cf385b5f4eee --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSessions Get. */ +public final class IntegrationAccountSessionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_Get.json + */ + /** + * Sample code: Get an integration account session. + * + * @param manager Entry point to LogicManager. + */ + public static void getAnIntegrationAccountSession(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccountSessions() + .getWithResponse("testrg123", "testia123", "testsession123-ICN", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsListSamples.java new file mode 100644 index 000000000000..45db82dc5bd4 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountSessionsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccountSessions List. */ +public final class IntegrationAccountSessionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccountSessions_List.json + */ + /** + * Sample code: Get a list of integration account sessions. + * + * @param manager Entry point to LogicManager. + */ + public static void getAListOfIntegrationAccountSessions(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccountSessions().list("testrg123", "testia123", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..b9b7cc40184e --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsCreateOrUpdateSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.resourcemanager.logic.models.IntegrationAccountSku; +import com.azure.resourcemanager.logic.models.IntegrationAccountSkuName; + +/** Samples for IntegrationAccounts CreateOrUpdate. */ +public final class IntegrationAccountsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .define("testIntegrationAccount") + .withRegion("westus") + .withExistingResourceGroup("testResourceGroup") + .withSku(new IntegrationAccountSku().withName(IntegrationAccountSkuName.STANDARD)) + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsDeleteSamples.java new file mode 100644 index 000000000000..a65aff9ead60 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts Delete. */ +public final class IntegrationAccountsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_Delete.json + */ + /** + * Sample code: Delete an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccounts().deleteWithResponse("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsGetByResourceGroupSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..6faacc22bc1b --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts GetByResourceGroup. */ +public final class IntegrationAccountsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_Get.json + */ + /** + * Sample code: Get integration account by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getIntegrationAccountByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationAccount", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListByResourceGroupSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListByResourceGroupSamples.java new file mode 100644 index 000000000000..692c4bc48e0c --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts ListByResourceGroup. */ +public final class IntegrationAccountsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListByResourceGroup.json + */ + /** + * Sample code: List integration accounts by resource group name. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountsByResourceGroupName( + com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccounts().listByResourceGroup("testResourceGroup", null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListCallbackUrlSamples.java new file mode 100644 index 000000000000..b3353a21e240 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListCallbackUrlSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for IntegrationAccounts ListCallbackUrl. */ +public final class IntegrationAccountsListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListCallbackUrl.json + */ + /** + * Sample code: List IntegrationAccount callback URL. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountCallbackURL(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .listCallbackUrlWithResponse( + "testResourceGroup", + "testIntegrationAccount", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2017-03-05T08:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListKeyVaultKeysSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListKeyVaultKeysSamples.java new file mode 100644 index 000000000000..fa29ac8f70ae --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListKeyVaultKeysSamples.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.KeyVaultReference; +import com.azure.resourcemanager.logic.models.ListKeyVaultKeysDefinition; + +/** Samples for IntegrationAccounts ListKeyVaultKeys. */ +public final class IntegrationAccountsListKeyVaultKeysSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListKeyVaultKeys.json + */ + /** + * Sample code: Get Integration Account callback URL. + * + * @param manager Entry point to LogicManager. + */ + public static void getIntegrationAccountCallbackURL(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .listKeyVaultKeys( + "testResourceGroup", + "testIntegrationAccount", + new ListKeyVaultKeysDefinition() + .withKeyVault( + new KeyVaultReference() + .withId( + "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testResourceGroup/providers/Microsoft.KeyVault/vaults/testKeyVault")) + .withSkipToken("testSkipToken"), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListSamples.java new file mode 100644 index 000000000000..8148ca14394e --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationAccounts List. */ +public final class IntegrationAccountsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_ListBySubscription.json + */ + /** + * Sample code: List integration accounts by subscription. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationAccountsBySubscription(com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationAccounts().list(null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsLogTrackingEventsSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsLogTrackingEventsSamples.java new file mode 100644 index 000000000000..a61598a6a15d --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsLogTrackingEventsSamples.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.Context; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.EventLevel; +import com.azure.resourcemanager.logic.models.TrackingEvent; +import com.azure.resourcemanager.logic.models.TrackingEventErrorInfo; +import com.azure.resourcemanager.logic.models.TrackingEventsDefinition; +import com.azure.resourcemanager.logic.models.TrackingRecordType; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; + +/** Samples for IntegrationAccounts LogTrackingEvents. */ +public final class IntegrationAccountsLogTrackingEventsSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_LogTrackingEvents.json + */ + /** + * Sample code: Log a tracked event. + * + * @param manager Entry point to LogicManager. + */ + public static void logATrackedEvent(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .integrationAccounts() + .logTrackingEventsWithResponse( + "testResourceGroup", + "testIntegrationAccount", + new TrackingEventsDefinition() + .withSourceType("Microsoft.Logic/workflows") + .withEvents( + Arrays + .asList( + new TrackingEvent() + .withEventLevel(EventLevel.INFORMATIONAL) + .withEventTime(OffsetDateTime.parse("2016-08-05T01:54:49.505567Z")) + .withRecordType(TrackingRecordType.AS2MESSAGE) + .withRecord( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"agreementProperties\":{\"agreementName\":\"testAgreement\",\"as2From\":\"testas2from\",\"as2To\":\"testas2to\",\"receiverPartnerName\":\"testPartner2\",\"senderPartnerName\":\"testPartner1\"},\"messageProperties\":{\"IsMessageEncrypted\":false,\"IsMessageSigned\":false,\"correlationMessageId\":\"Unique" + + " message" + + " identifier\",\"direction\":\"Receive\",\"dispositionType\":\"received-success\",\"fileName\":\"test\",\"isMdnExpected\":true,\"isMessageCompressed\":false,\"isMessageFailed\":false,\"isNrrEnabled\":true,\"mdnType\":\"Async\",\"messageId\":\"12345\"}}", + Object.class, + SerializerEncoding.JSON)) + .withError( + new TrackingEventErrorInfo() + .withMessage("Some error occurred") + .withCode("NotFound")))), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsRegenerateAccessKeySamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsRegenerateAccessKeySamples.java new file mode 100644 index 000000000000..93ad6de4c4f0 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsRegenerateAccessKeySamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.KeyType; +import com.azure.resourcemanager.logic.models.RegenerateActionParameter; + +/** Samples for IntegrationAccounts RegenerateAccessKey. */ +public final class IntegrationAccountsRegenerateAccessKeySamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_RegenerateAccessKey.json + */ + /** + * Sample code: Regenerate access key. + * + * @param manager Entry point to LogicManager. + */ + public static void regenerateAccessKey(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationAccounts() + .regenerateAccessKeyWithResponse( + "testResourceGroup", + "testIntegrationAccount", + new RegenerateActionParameter().withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsUpdateSamples.java new file mode 100644 index 000000000000..093f77a77e77 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationAccountsUpdateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.IntegrationAccount; +import com.azure.resourcemanager.logic.models.IntegrationAccountSku; +import com.azure.resourcemanager.logic.models.IntegrationAccountSkuName; + +/** Samples for IntegrationAccounts Update. */ +public final class IntegrationAccountsUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationAccounts_Update.json + */ + /** + * Sample code: Patch an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void patchAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + IntegrationAccount resource = + manager + .integrationAccounts() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationAccount", Context.NONE) + .getValue(); + resource.update().withSku(new IntegrationAccountSku().withName(IntegrationAccountSkuName.STANDARD)).apply(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApiOperationsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApiOperationsListSamples.java new file mode 100644 index 000000000000..3567dc53feaa --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApiOperationsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApiOperations List. */ +public final class IntegrationServiceEnvironmentManagedApiOperationsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_ListApiOperations.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApiOperations() + .list("testResourceGroup", "testIntegrationServiceEnvironment", "servicebus", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisDeleteSamples.java new file mode 100644 index 000000000000..96feff5c9202 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApis Delete. */ +public final class IntegrationServiceEnvironmentManagedApisDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_Delete.json + */ + /** + * Sample code: Deletes the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void deletesTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .delete("testResourceGroup", "testIntegrationServiceEnvironment", "servicebus", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisGetSamples.java new file mode 100644 index 000000000000..7a0fd7a401e1 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApis Get. */ +public final class IntegrationServiceEnvironmentManagedApisGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_Get.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .getWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", "servicebus", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisListSamples.java new file mode 100644 index 000000000000..b081cd325934 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentManagedApis List. */ +public final class IntegrationServiceEnvironmentManagedApisListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_List.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .list("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisPutSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisPutSamples.java new file mode 100644 index 000000000000..845b23aefc74 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentManagedApisPutSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +/** Samples for IntegrationServiceEnvironmentManagedApis Put. */ +public final class IntegrationServiceEnvironmentManagedApisPutSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ManagedApis_Put.json + */ + /** + * Sample code: Gets the integration service environment managed Apis. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentManagedApis( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentManagedApis() + .define("servicebus") + .withRegion("brazilsouth") + .withExistingIntegrationServiceEnvironment("testResourceGroup", "testIntegrationServiceEnvironment") + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentNetworkHealthGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentNetworkHealthGetSamples.java new file mode 100644 index 000000000000..35be789f57b5 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentNetworkHealthGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentNetworkHealth Get. */ +public final class IntegrationServiceEnvironmentNetworkHealthGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_NetworkHealth.json + */ + /** + * Sample code: Gets the integration service environment network health. + * + * @param manager Entry point to LogicManager. + */ + public static void getsTheIntegrationServiceEnvironmentNetworkHealth( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentNetworkHealths() + .getWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentSkusListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentSkusListSamples.java new file mode 100644 index 000000000000..6bc1265777f0 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentSkusListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironmentSkus List. */ +public final class IntegrationServiceEnvironmentSkusListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Skus.json + */ + /** + * Sample code: List integration service environment skus. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationServiceEnvironmentSkus(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironmentSkus() + .list("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..154b2f832a56 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsCreateOrUpdateSamples.java @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmenEncryptionConfiguration; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmenEncryptionKeyReference; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentAccessEndpoint; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentAccessEndpointType; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentProperties; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSku; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSkuName; +import com.azure.resourcemanager.logic.models.NetworkConfiguration; +import com.azure.resourcemanager.logic.models.ResourceReference; +import java.util.Arrays; + +/** Samples for IntegrationServiceEnvironments CreateOrUpdate. */ +public final class IntegrationServiceEnvironmentsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Put.json + */ + /** + * Sample code: Create or update an integration service environment. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAnIntegrationServiceEnvironment( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .define("testIntegrationServiceEnvironment") + .withRegion("brazilsouth") + .withExistingResourceGroup("testResourceGroup") + .withProperties( + new IntegrationServiceEnvironmentProperties() + .withNetworkConfiguration( + new NetworkConfiguration() + .withAccessEndpoint( + new IntegrationServiceEnvironmentAccessEndpoint() + .withType(IntegrationServiceEnvironmentAccessEndpointType.INTERNAL)) + .withSubnets( + Arrays + .asList( + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s1"), + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s2"), + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s3"), + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s4")))) + .withEncryptionConfiguration( + new IntegrationServiceEnvironmenEncryptionConfiguration() + .withEncryptionKeyReference( + new IntegrationServiceEnvironmenEncryptionKeyReference() + .withKeyVault( + new ResourceReference() + .withId( + "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.KeyVault/vaults/testKeyVault")) + .withKeyName("testKeyName") + .withKeyVersion("13b261d30b984753869902d7f47f4d55")))) + .withSku( + new IntegrationServiceEnvironmentSku() + .withName(IntegrationServiceEnvironmentSkuName.PREMIUM) + .withCapacity(2)) + .create(); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsDeleteSamples.java new file mode 100644 index 000000000000..554ba46c5672 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments Delete. */ +public final class IntegrationServiceEnvironmentsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Delete.json + */ + /** + * Sample code: Delete an integration account. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAnIntegrationAccount(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .deleteWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsGetByResourceGroupSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..564af45cc683 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments GetByResourceGroup. */ +public final class IntegrationServiceEnvironmentsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Get.json + */ + /** + * Sample code: Get integration service environment by name. + * + * @param manager Entry point to LogicManager. + */ + public static void getIntegrationServiceEnvironmentByName(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsListByResourceGroupSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsListByResourceGroupSamples.java new file mode 100644 index 000000000000..22b65fb91494 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments ListByResourceGroup. */ +public final class IntegrationServiceEnvironmentsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ListByResourceGroup.json + */ + /** + * Sample code: List integration service environments by resource group name. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationServiceEnvironmentsByResourceGroupName( + com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationServiceEnvironments().listByResourceGroup("testResourceGroup", null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsListSamples.java new file mode 100644 index 000000000000..39c8622cf4fb --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments List. */ +public final class IntegrationServiceEnvironmentsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_ListBySubscription.json + */ + /** + * Sample code: List integration service environments by subscription. + * + * @param manager Entry point to LogicManager. + */ + public static void listIntegrationServiceEnvironmentsBySubscription( + com.azure.resourcemanager.logic.LogicManager manager) { + manager.integrationServiceEnvironments().list(null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsRestartSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsRestartSamples.java new file mode 100644 index 000000000000..8c68efe7d5b5 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsRestartSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for IntegrationServiceEnvironments Restart. */ +public final class IntegrationServiceEnvironmentsRestartSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Restart.json + */ + /** + * Sample code: Restarts an integration service environment. + * + * @param manager Entry point to LogicManager. + */ + public static void restartsAnIntegrationServiceEnvironment(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .integrationServiceEnvironments() + .restartWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsUpdateSamples.java new file mode 100644 index 000000000000..127d7458467f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/IntegrationServiceEnvironmentsUpdateSamples.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironment; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSku; +import com.azure.resourcemanager.logic.models.IntegrationServiceEnvironmentSkuName; +import java.util.HashMap; +import java.util.Map; + +/** Samples for IntegrationServiceEnvironments Update. */ +public final class IntegrationServiceEnvironmentsUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/IntegrationServiceEnvironments_Patch.json + */ + /** + * Sample code: Patch an integration service environment. + * + * @param manager Entry point to LogicManager. + */ + public static void patchAnIntegrationServiceEnvironment(com.azure.resourcemanager.logic.LogicManager manager) { + IntegrationServiceEnvironment resource = + manager + .integrationServiceEnvironments() + .getByResourceGroupWithResponse("testResourceGroup", "testIntegrationServiceEnvironment", Context.NONE) + .getValue(); + resource + .update() + .withTags(mapOf("tag1", "value1")) + .withSku( + new IntegrationServiceEnvironmentSku() + .withName(IntegrationServiceEnvironmentSkuName.DEVELOPER) + .withCapacity(0)) + .apply(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/OperationsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/OperationsListSamples.java new file mode 100644 index 000000000000..ce883e172a82 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/OperationsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Operations List. */ +public final class OperationsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Operations_List.json + */ + /** + * Sample code: List Microsoft.Logic operations. + * + * @param manager Entry point to LogicManager. + */ + public static void listMicrosoftLogicOperations(com.azure.resourcemanager.logic.LogicManager manager) { + manager.operations().list(Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsGetSamples.java new file mode 100644 index 000000000000..86446a49c2ac --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitions Get. */ +public final class WorkflowRunActionRepetitionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitions_Get.json + */ + /** + * Sample code: Get a repetition. + * + * @param manager Entry point to LogicManager. + */ + public static void getARepetition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitions() + .getWithResponse( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", "000001", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsListExpressionTracesSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsListExpressionTracesSamples.java new file mode 100644 index 000000000000..09aeb9c9d96e --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsListExpressionTracesSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitions ListExpressionTraces. */ +public final class WorkflowRunActionRepetitionsListExpressionTracesSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitions_ListExpressionTraces.json + */ + /** + * Sample code: List expression traces for a repetition. + * + * @param manager Entry point to LogicManager. + */ + public static void listExpressionTracesForARepetition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitions() + .listExpressionTraces( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", "000001", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsListSamples.java new file mode 100644 index 000000000000..3a61bda9b8b5 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitions List. */ +public final class WorkflowRunActionRepetitionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitions_List.json + */ + /** + * Sample code: List repetitions. + * + * @param manager Entry point to LogicManager. + */ + public static void listRepetitions(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitions() + .list("testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsRequestHistoriesGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsRequestHistoriesGetSamples.java new file mode 100644 index 000000000000..72347efb6e41 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsRequestHistoriesGetSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitionsRequestHistories Get. */ +public final class WorkflowRunActionRepetitionsRequestHistoriesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitionsRequestHistories_Get.json + */ + /** + * Sample code: Get a repetition request history. + * + * @param manager Entry point to LogicManager. + */ + public static void getARepetitionRequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitionsRequestHistories() + .getWithResponse( + "test-resource-group", + "test-workflow", + "08586776228332053161046300351", + "HTTP_Webhook", + "000001", + "08586611142732800686", + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsRequestHistoriesListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsRequestHistoriesListSamples.java new file mode 100644 index 000000000000..9ba66fd5c81e --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRepetitionsRequestHistoriesListSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRepetitionsRequestHistories List. */ +public final class WorkflowRunActionRepetitionsRequestHistoriesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRepetitionsRequestHistories_List.json + */ + /** + * Sample code: List repetition request history. + * + * @param manager Entry point to LogicManager. + */ + public static void listRepetitionRequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRepetitionsRequestHistories() + .list( + "test-resource-group", + "test-workflow", + "08586776228332053161046300351", + "HTTP_Webhook", + "000001", + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRequestHistoriesGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRequestHistoriesGetSamples.java new file mode 100644 index 000000000000..f2812df67303 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRequestHistoriesGetSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRequestHistories Get. */ +public final class WorkflowRunActionRequestHistoriesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRequestHistories_Get.json + */ + /** + * Sample code: Get a request history. + * + * @param manager Entry point to LogicManager. + */ + public static void getARequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRequestHistories() + .getWithResponse( + "test-resource-group", + "test-workflow", + "08586776228332053161046300351", + "HTTP_Webhook", + "08586611142732800686", + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRequestHistoriesListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRequestHistoriesListSamples.java new file mode 100644 index 000000000000..1b56d35fac1e --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionRequestHistoriesListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionRequestHistories List. */ +public final class WorkflowRunActionRequestHistoriesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionRequestHistories_List.json + */ + /** + * Sample code: List a request history. + * + * @param manager Entry point to LogicManager. + */ + public static void listARequestHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionRequestHistories() + .list( + "test-resource-group", "test-workflow", "08586776228332053161046300351", "HTTP_Webhook", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionScopeRepetitionsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionScopeRepetitionsGetSamples.java new file mode 100644 index 000000000000..34b153ec5036 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionScopeRepetitionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionScopeRepetitions Get. */ +public final class WorkflowRunActionScopeRepetitionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionScopeRepetitions_Get.json + */ + /** + * Sample code: Get a scoped repetition. + * + * @param manager Entry point to LogicManager. + */ + public static void getAScopedRepetition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionScopeRepetitions() + .getWithResponse( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "for_each", "000000", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionScopeRepetitionsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionScopeRepetitionsListSamples.java new file mode 100644 index 000000000000..9ab85fa3d8f4 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionScopeRepetitionsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActionScopeRepetitions List. */ +public final class WorkflowRunActionScopeRepetitionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActionScopeRepetitions_List.json + */ + /** + * Sample code: List the scoped repetitions. + * + * @param manager Entry point to LogicManager. + */ + public static void listTheScopedRepetitions(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActionScopeRepetitions() + .list("testResourceGroup", "testFlow", "08586776228332053161046300351", "for_each", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsGetSamples.java new file mode 100644 index 000000000000..d8d922f91399 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActions Get. */ +public final class WorkflowRunActionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActions_Get.json + */ + /** + * Sample code: Get a workflow run action. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowRunAction(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActions() + .getWithResponse( + "test-resource-group", "test-workflow", "08586676746934337772206998657CU22", "HTTP", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsListExpressionTracesSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsListExpressionTracesSamples.java new file mode 100644 index 000000000000..877d4546bebe --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsListExpressionTracesSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActions ListExpressionTraces. */ +public final class WorkflowRunActionsListExpressionTracesSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActions_ListExpressionTraces.json + */ + /** + * Sample code: List expression traces. + * + * @param manager Entry point to LogicManager. + */ + public static void listExpressionTraces(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActions() + .listExpressionTraces( + "testResourceGroup", "testFlow", "08586776228332053161046300351", "testAction", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsListSamples.java new file mode 100644 index 000000000000..a54d49089d46 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunActionsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunActions List. */ +public final class WorkflowRunActionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunActions_List.json + */ + /** + * Sample code: List a workflow run actions. + * + * @param manager Entry point to LogicManager. + */ + public static void listAWorkflowRunActions(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunActions() + .list( + "test-resource-group", "test-workflow", "08586676746934337772206998657CU22", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunOperationsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunOperationsGetSamples.java new file mode 100644 index 000000000000..5cbb80ad26f6 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunOperationsGetSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRunOperations Get. */ +public final class WorkflowRunOperationsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRunOperations_Get.json + */ + /** + * Sample code: Get a run operation. + * + * @param manager Entry point to LogicManager. + */ + public static void getARunOperation(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRunOperations() + .getWithResponse( + "testResourceGroup", + "testFlow", + "08586774142730039209110422528", + "ebdcbbde-c4db-43ec-987c-fd0f7726f43b", + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsCancelSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsCancelSamples.java new file mode 100644 index 000000000000..ff0625fdc97e --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsCancelSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRuns Cancel. */ +public final class WorkflowRunsCancelSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRuns_Cancel.json + */ + /** + * Sample code: Cancel a workflow run. + * + * @param manager Entry point to LogicManager. + */ + public static void cancelAWorkflowRun(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRuns() + .cancelWithResponse( + "test-resource-group", "test-workflow", "08586676746934337772206998657CU22", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsGetSamples.java new file mode 100644 index 000000000000..b13a34e391f3 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRuns Get. */ +public final class WorkflowRunsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRuns_Get.json + */ + /** + * Sample code: Get a run for a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void getARunForAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowRuns() + .getWithResponse("test-resource-group", "test-workflow", "08586676746934337772206998657CU22", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsListSamples.java new file mode 100644 index 000000000000..f7f0fc9998bb --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowRunsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowRuns List. */ +public final class WorkflowRunsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowRuns_List.json + */ + /** + * Sample code: List workflow runs. + * + * @param manager Entry point to LogicManager. + */ + public static void listWorkflowRuns(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowRuns().list("test-resource-group", "test-workflow", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesGetSamples.java new file mode 100644 index 000000000000..c26f8933d98c --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesGetSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggerHistories Get. */ +public final class WorkflowTriggerHistoriesGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggerHistories_Get.json + */ + /** + * Sample code: Get a workflow trigger history. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowTriggerHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggerHistories() + .getWithResponse( + "testResourceGroup", + "testWorkflowName", + "testTriggerName", + "08586676746934337772206998657CU22", + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesListSamples.java new file mode 100644 index 000000000000..5787503b8474 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggerHistories List. */ +public final class WorkflowTriggerHistoriesListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggerHistories_List.json + */ + /** + * Sample code: List a workflow trigger history. + * + * @param manager Entry point to LogicManager. + */ + public static void listAWorkflowTriggerHistory(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggerHistories() + .list("testResourceGroup", "testWorkflowName", "testTriggerName", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesResubmitSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesResubmitSamples.java new file mode 100644 index 000000000000..878db0259b64 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggerHistoriesResubmitSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggerHistories Resubmit. */ +public final class WorkflowTriggerHistoriesResubmitSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggerHistories_Resubmit.json + */ + /** + * Sample code: Resubmit a workflow run based on the trigger history. + * + * @param manager Entry point to LogicManager. + */ + public static void resubmitAWorkflowRunBasedOnTheTriggerHistory( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggerHistories() + .resubmitWithResponse( + "testResourceGroup", "testWorkflowName", "testTriggerName", "testHistoryName", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersGetSamples.java new file mode 100644 index 000000000000..3a1d7a877a9a --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersGetSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers Get. */ +public final class WorkflowTriggersGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_Get.json + */ + /** + * Sample code: Get a workflow trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowTrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().getWithResponse("test-resource-group", "test-workflow", "manual", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersGetSchemaJsonSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersGetSchemaJsonSamples.java new file mode 100644 index 000000000000..8de8584856c2 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersGetSchemaJsonSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers GetSchemaJson. */ +public final class WorkflowTriggersGetSchemaJsonSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_GetSchemaJson.json + */ + /** + * Sample code: Get trigger schema. + * + * @param manager Entry point to LogicManager. + */ + public static void getTriggerSchema(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggers() + .getSchemaJsonWithResponse("testResourceGroup", "testWorkflow", "testTrigger", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersListCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersListCallbackUrlSamples.java new file mode 100644 index 000000000000..e33855d76f14 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersListCallbackUrlSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers ListCallbackUrl. */ +public final class WorkflowTriggersListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_ListCallbackUrl.json + */ + /** + * Sample code: Get the callback URL for a trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheCallbackURLForATrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggers() + .listCallbackUrlWithResponse("test-resource-group", "test-workflow", "manual", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersListSamples.java new file mode 100644 index 000000000000..ddf672c15925 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers List. */ +public final class WorkflowTriggersListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_List.json + */ + /** + * Sample code: List workflow triggers. + * + * @param manager Entry point to LogicManager. + */ + public static void listWorkflowTriggers(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().list("test-resource-group", "test-workflow", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersResetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersResetSamples.java new file mode 100644 index 000000000000..b090c4205b3e --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersResetSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers Reset. */ +public final class WorkflowTriggersResetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_Reset.json + */ + /** + * Sample code: Reset trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void resetTrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().resetWithResponse("testResourceGroup", "testWorkflow", "testTrigger", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersRunSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersRunSamples.java new file mode 100644 index 000000000000..95fdf6aec015 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersRunSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowTriggers Run. */ +public final class WorkflowTriggersRunSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_Run.json + */ + /** + * Sample code: Run a workflow trigger. + * + * @param manager Entry point to LogicManager. + */ + public static void runAWorkflowTrigger(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowTriggers().runWithResponse("test-resource-group", "test-workflow", "manual", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersSetStateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersSetStateSamples.java new file mode 100644 index 000000000000..b42438a1be7f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowTriggersSetStateSamples.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.SetTriggerStateActionDefinition; +import com.azure.resourcemanager.logic.models.WorkflowTriggerReference; + +/** Samples for WorkflowTriggers SetState. */ +public final class WorkflowTriggersSetStateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowTriggers_SetState.json + */ + /** + * Sample code: Set trigger state. + * + * @param manager Entry point to LogicManager. + */ + public static void setTriggerState(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowTriggers() + .setStateWithResponse( + "testResourceGroup", + "testWorkflow", + "testTrigger", + new SetTriggerStateActionDefinition() + .withSource( + new WorkflowTriggerReference() + .withId( + "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sourceResGroup/providers/Microsoft.Logic/workflows/sourceWorkflow/triggers/sourceTrigger")), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionTriggersListCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionTriggersListCallbackUrlSamples.java new file mode 100644 index 000000000000..815d385b70f4 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionTriggersListCallbackUrlSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for WorkflowVersionTriggers ListCallbackUrl. */ +public final class WorkflowVersionTriggersListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowVersionTriggers_ListCallbackUrl.json + */ + /** + * Sample code: Get the callback url for a trigger of a workflow version. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheCallbackUrlForATriggerOfAWorkflowVersion( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowVersionTriggers() + .listCallbackUrlWithResponse( + "testResourceGroup", + "testWorkflowName", + "testWorkflowVersionId", + "testTriggerName", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2017-03-05T08:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionsGetSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionsGetSamples.java new file mode 100644 index 000000000000..e0dca981184b --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowVersions Get. */ +public final class WorkflowVersionsGetSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowVersions_Get.json + */ + /** + * Sample code: Get a workflow version. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflowVersion(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflowVersions() + .getWithResponse("test-resource-group", "test-workflow", "08586676824806722526", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionsListSamples.java new file mode 100644 index 000000000000..bd6097ee9503 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowVersionsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for WorkflowVersions List. */ +public final class WorkflowVersionsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/WorkflowVersions_List.json + */ + /** + * Sample code: List a workflows versions. + * + * @param manager Entry point to LogicManager. + */ + public static void listAWorkflowsVersions(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflowVersions().list("test-resource-group", "test-workflow", null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsCreateOrUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..4731f686f859 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsCreateOrUpdateSamples.java @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.models.ResourceReference; +import com.azure.resourcemanager.logic.models.WorkflowParameter; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for Workflows CreateOrUpdate. */ +public final class WorkflowsCreateOrUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void createOrUpdateAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) + throws IOException { + manager + .workflows() + .define("test-workflow") + .withRegion("brazilsouth") + .withExistingResourceGroup("test-resource-group") + .withTags(mapOf()) + .withIntegrationAccount( + new ResourceReference() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account")) + .withDefinition( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{\"Find_pet_by_ID\":{\"type\":\"ApiConnection\",\"inputs\":{\"path\":\"/pet/@{encodeURIComponent('1')}\",\"method\":\"get\",\"host\":{\"connection\":{\"name\":\"@parameters('$connections')['test-custom-connector']['connectionId']\"}}},\"runAfter\":{}}},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"parameters\":{\"$connections\":{\"type\":\"Object\",\"defaultValue\":{}}},\"triggers\":{\"manual\":{\"type\":\"Request\",\"inputs\":{\"schema\":{}},\"kind\":\"Http\"}}}", + Object.class, + SerializerEncoding.JSON)) + .withParameters( + mapOf( + "$connections", + new WorkflowParameter() + .withValue( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"test-custom-connector\":{\"connectionId\":\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Web/connections/test-custom-connector\",\"connectionName\":\"test-custom-connector\",\"id\":\"/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/brazilsouth/managedApis/test-custom-connector\"}}", + Object.class, + SerializerEncoding.JSON)))) + .create(); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsDeleteSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsDeleteSamples.java new file mode 100644 index 000000000000..485c8c452999 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsDeleteSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows Delete. */ +public final class WorkflowsDeleteSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Delete.json + */ + /** + * Sample code: Delete a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void deleteAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().deleteWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsDisableSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsDisableSamples.java new file mode 100644 index 000000000000..0081669324df --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsDisableSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows Disable. */ +public final class WorkflowsDisableSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Disable.json + */ + /** + * Sample code: Disable a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void disableAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().disableWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsEnableSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsEnableSamples.java new file mode 100644 index 000000000000..36a4198c15f8 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsEnableSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows Enable. */ +public final class WorkflowsEnableSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Enable.json + */ + /** + * Sample code: Enable a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void enableAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().enableWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsGenerateUpgradedDefinitionSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsGenerateUpgradedDefinitionSamples.java new file mode 100644 index 000000000000..7fc3c8eddb27 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsGenerateUpgradedDefinitionSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GenerateUpgradedDefinitionParameters; + +/** Samples for Workflows GenerateUpgradedDefinition. */ +public final class WorkflowsGenerateUpgradedDefinitionSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_GenerateUpgradedDefinition.json + */ + /** + * Sample code: Generate an upgraded definition. + * + * @param manager Entry point to LogicManager. + */ + public static void generateAnUpgradedDefinition(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .generateUpgradedDefinitionWithResponse( + "test-resource-group", + "test-workflow", + new GenerateUpgradedDefinitionParameters().withTargetSchemaVersion("2016-06-01"), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsGetByResourceGroupSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..0308cd10c1aa --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsGetByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows GetByResourceGroup. */ +public final class WorkflowsGetByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Get.json + */ + /** + * Sample code: Get a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void getAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().getByResourceGroupWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListByResourceGroupSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListByResourceGroupSamples.java new file mode 100644 index 000000000000..7ec6f2d50125 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows ListByResourceGroup. */ +public final class WorkflowsListByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListByResourceGroup.json + */ + /** + * Sample code: List all workflows in a resource group. + * + * @param manager Entry point to LogicManager. + */ + public static void listAllWorkflowsInAResourceGroup(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().listByResourceGroup("test-resource-group", null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListCallbackUrlSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListCallbackUrlSamples.java new file mode 100644 index 000000000000..0718491e1e41 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListCallbackUrlSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.GetCallbackUrlParameters; +import com.azure.resourcemanager.logic.models.KeyType; +import java.time.OffsetDateTime; + +/** Samples for Workflows ListCallbackUrl. */ +public final class WorkflowsListCallbackUrlSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListCallbackUrl.json + */ + /** + * Sample code: Get callback url. + * + * @param manager Entry point to LogicManager. + */ + public static void getCallbackUrl(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .listCallbackUrlWithResponse( + "testResourceGroup", + "testWorkflow", + new GetCallbackUrlParameters() + .withNotAfter(OffsetDateTime.parse("2018-04-19T16:00:00Z")) + .withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListSamples.java new file mode 100644 index 000000000000..4a57e8c20e8f --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows List. */ +public final class WorkflowsListSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListBySubscription.json + */ + /** + * Sample code: List all workflows in a subscription. + * + * @param manager Entry point to LogicManager. + */ + public static void listAllWorkflowsInASubscription(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().list(null, null, Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListSwaggerSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListSwaggerSamples.java new file mode 100644 index 000000000000..b490b84eb9f6 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsListSwaggerSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows ListSwagger. */ +public final class WorkflowsListSwaggerSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ListSwagger.json + */ + /** + * Sample code: Get the swagger for a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void getTheSwaggerForAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().listSwaggerWithResponse("testResourceGroup", "testWorkflowName", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsMoveSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsMoveSamples.java new file mode 100644 index 000000000000..c58046128ff6 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsMoveSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.WorkflowReference; + +/** Samples for Workflows Move. */ +public final class WorkflowsMoveSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Move.json + */ + /** + * Sample code: Move a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void moveAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .move( + "testResourceGroup", + "testWorkflow", + new WorkflowReference() + .withId( + "subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/newResourceGroup/providers/Microsoft.Logic/workflows/newWorkflowName"), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsRegenerateAccessKeySamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsRegenerateAccessKeySamples.java new file mode 100644 index 000000000000..f56adad05557 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsRegenerateAccessKeySamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.logic.models.KeyType; +import com.azure.resourcemanager.logic.models.RegenerateActionParameter; + +/** Samples for Workflows RegenerateAccessKey. */ +public final class WorkflowsRegenerateAccessKeySamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_RegenerateAccessKey.json + */ + /** + * Sample code: Regenerate the callback URL access key for request triggers. + * + * @param manager Entry point to LogicManager. + */ + public static void regenerateTheCallbackURLAccessKeyForRequestTriggers( + com.azure.resourcemanager.logic.LogicManager manager) { + manager + .workflows() + .regenerateAccessKeyWithResponse( + "testResourceGroup", + "testWorkflowName", + new RegenerateActionParameter().withKeyType(KeyType.PRIMARY), + Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsUpdateSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsUpdateSamples.java new file mode 100644 index 000000000000..2c9799617a36 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsUpdateSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.util.Context; + +/** Samples for Workflows Update. */ +public final class WorkflowsUpdateSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_Update.json + */ + /** + * Sample code: Patch a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void patchAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) { + manager.workflows().updateWithResponse("test-resource-group", "test-workflow", Context.NONE); + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsValidateByLocationSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsValidateByLocationSamples.java new file mode 100644 index 000000000000..19c96c6f6c83 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsValidateByLocationSamples.java @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.Context; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.fluent.models.WorkflowInner; +import com.azure.resourcemanager.logic.models.ResourceReference; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for Workflows ValidateByLocation. */ +public final class WorkflowsValidateByLocationSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ValidateByLocation.json + */ + /** + * Sample code: Validate a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void validateAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .workflows() + .validateByLocationWithResponse( + "test-resource-group", + "brazilsouth", + "test-workflow", + new WorkflowInner() + .withLocation("brazilsouth") + .withTags(mapOf()) + .withIntegrationAccount( + new ResourceReference() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account")) + .withDefinition( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"parameters\":{},\"triggers\":{}}", + Object.class, + SerializerEncoding.JSON)), + Context.NONE); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsValidateByResourceGroupSamples.java b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsValidateByResourceGroupSamples.java new file mode 100644 index 000000000000..86e53966ab43 --- /dev/null +++ b/sdk/logic/azure-resourcemanager-logic/src/samples/java/com/azure/resourcemanager/logic/generated/WorkflowsValidateByResourceGroupSamples.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.logic.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.Context; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.logic.fluent.models.WorkflowInner; +import com.azure.resourcemanager.logic.models.ResourceReference; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** Samples for Workflows ValidateByResourceGroup. */ +public final class WorkflowsValidateByResourceGroupSamples { + /* + * x-ms-original-file: specification/logic/resource-manager/Microsoft.Logic/stable/2019-05-01/examples/Workflows_ValidateByResourceGroup.json + */ + /** + * Sample code: Validate a workflow. + * + * @param manager Entry point to LogicManager. + */ + public static void validateAWorkflow(com.azure.resourcemanager.logic.LogicManager manager) throws IOException { + manager + .workflows() + .validateByResourceGroupWithResponse( + "test-resource-group", + "test-workflow", + new WorkflowInner() + .withLocation("brazilsouth") + .withTags(mapOf()) + .withIntegrationAccount( + new ResourceReference() + .withId( + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-resource-group/providers/Microsoft.Logic/integrationAccounts/test-integration-account")) + .withDefinition( + SerializerFactory + .createDefaultManagementSerializerAdapter() + .deserialize( + "{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"actions\":{},\"contentVersion\":\"1.0.0.0\",\"outputs\":{},\"parameters\":{},\"triggers\":{}}", + Object.class, + SerializerEncoding.JSON)), + Context.NONE); + } + + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +}