diff --git a/sdk/logic/azure-resourcemanager-logic/CHANGELOG.md b/sdk/logic/azure-resourcemanager-logic/CHANGELOG.md
index 9ce44b02901d..6025059524e4 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 (2021-10-05)
+- 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..55d730cfe916 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,8 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+
+
## Troubleshooting
## Next steps
diff --git a/sdk/logic/azure-resourcemanager-logic/pom.xml b/sdk/logic/azure-resourcemanager-logic/pom.xml
index 4660739cc938..28fb37075de7 100644
--- a/sdk/logic/azure-resourcemanager-logic/pom.xml
+++ b/sdk/logic/azure-resourcemanager-logic/pom.xml
@@ -1,67 +1,86 @@
- 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
-
-
-
-
- com.azure
- azure-core
- 1.21.0
-
-
- com.azure
- azure-core-management
- 1.4.2
-
-
-
-
-
- org.jacoco
- jacoco-maven-plugin
- 0.8.7
-
- true
-
-
-
-
+
+ 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
+
+
+
+
+ com.azure
+ azure-core
+ 1.21.0
+
+
+ com.azure
+ azure-core-management
+ 1.4.2
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.7
+
+ true
+
+
+
+ org.revapi
+ revapi-maven-plugin
+ 0.11.2
+
+
+
+ -
+
java.method.addedToInterface
+
+ -
+ true
+
.*
+ com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*
+
+
+
+
+
+
+
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..402f55d05ce4 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
@@ -9,7 +9,6 @@
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
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 +16,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;
@@ -181,6 +181,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 +221,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,6 +288,9 @@ 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);
}
@@ -285,10 +300,7 @@ public LogicManager authenticate(TokenCredential credential, AzureProfile profil
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies);
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
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..837630b03a7d 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
@@ -29,7 +29,8 @@ public interface IntegrationServiceEnvironmentManagedApisClient {
* @return the integration service environment managed Apis.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName);
+ PagedIterable list(
+ String resourceGroup, String integrationServiceEnvironmentName);
/**
* Gets the integration service environment managed Apis.
@@ -43,7 +44,7 @@ public interface IntegrationServiceEnvironmentManagedApisClient {
* @return the integration service environment managed Apis.
*/
@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.
@@ -73,7 +75,7 @@ PagedIterable list(
* @return the integration service environment managed Api.
*/
@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 integration service environment managed api.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, ManagedApiInner> beginPut(
- String resourceGroup, String integrationServiceEnvironmentName, String apiName);
+ 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 integration service environment managed api.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, ManagedApiInner> beginPut(
- String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context);
+ 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.
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..d973b056dc17 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
@@ -9,6 +9,7 @@
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;
@@ -30,7 +31,7 @@ public class IntegrationAccountInner extends Resource {
* The integration service environment.
*/
@JsonProperty(value = "properties.integrationServiceEnvironment")
- private IntegrationServiceEnvironmentInner integrationServiceEnvironment;
+ private ResourceReference integrationServiceEnvironment;
/*
* The workflow state.
@@ -63,7 +64,7 @@ public IntegrationAccountInner withSku(IntegrationAccountSku sku) {
*
* @return the integrationServiceEnvironment value.
*/
- public IntegrationServiceEnvironmentInner integrationServiceEnvironment() {
+ public ResourceReference integrationServiceEnvironment() {
return this.integrationServiceEnvironment;
}
@@ -73,8 +74,7 @@ public IntegrationServiceEnvironmentInner integrationServiceEnvironment() {
* @param integrationServiceEnvironment the integrationServiceEnvironment value to set.
* @return the IntegrationAccountInner object itself.
*/
- public IntegrationAccountInner withIntegrationServiceEnvironment(
- IntegrationServiceEnvironmentInner integrationServiceEnvironment) {
+ public IntegrationAccountInner withIntegrationServiceEnvironment(ResourceReference integrationServiceEnvironment) {
this.integrationServiceEnvironment = integrationServiceEnvironment;
return this;
}
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..947eec3fb381
--- /dev/null
+++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/models/IntegrationServiceEnvironmentManagedApiInner.java
@@ -0,0 +1,310 @@
+// Copyright (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.annotation.JsonFlatten;
+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.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** The integration service environment managed api. */
+@JsonFlatten
+@Fluent
+public class IntegrationServiceEnvironmentManagedApiInner extends Resource {
+ @JsonIgnore
+ private final ClientLogger logger = new ClientLogger(IntegrationServiceEnvironmentManagedApiInner.class);
+
+ /*
+ * The name
+ */
+ @JsonProperty(value = "properties.name", access = JsonProperty.Access.WRITE_ONLY)
+ private String namePropertiesName;
+
+ /*
+ * The connection parameters.
+ */
+ @JsonProperty(value = "properties.connectionParameters", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map connectionParameters;
+
+ /*
+ * The metadata.
+ */
+ @JsonProperty(value = "properties.metadata", access = JsonProperty.Access.WRITE_ONLY)
+ private ApiResourceMetadata metadata;
+
+ /*
+ * The runtime urls.
+ */
+ @JsonProperty(value = "properties.runtimeUrls", access = JsonProperty.Access.WRITE_ONLY)
+ private List runtimeUrls;
+
+ /*
+ * The api general information.
+ */
+ @JsonProperty(value = "properties.generalInformation", access = JsonProperty.Access.WRITE_ONLY)
+ private ApiResourceGeneralInformation generalInformation;
+
+ /*
+ * The capabilities.
+ */
+ @JsonProperty(value = "properties.capabilities", access = JsonProperty.Access.WRITE_ONLY)
+ private List capabilities;
+
+ /*
+ * The backend service.
+ */
+ @JsonProperty(value = "properties.backendService", access = JsonProperty.Access.WRITE_ONLY)
+ private ApiResourceBackendService backendService;
+
+ /*
+ * The policies for the API.
+ */
+ @JsonProperty(value = "properties.policies", access = JsonProperty.Access.WRITE_ONLY)
+ private ApiResourcePolicies policies;
+
+ /*
+ * The API definition.
+ */
+ @JsonProperty(value = "properties.apiDefinitionUrl", access = JsonProperty.Access.WRITE_ONLY)
+ private String apiDefinitionUrl;
+
+ /*
+ * The api definitions.
+ */
+ @JsonProperty(value = "properties.apiDefinitions", access = JsonProperty.Access.WRITE_ONLY)
+ private ApiResourceDefinitions apiDefinitions;
+
+ /*
+ * The integration service environment reference.
+ */
+ @JsonProperty(value = "properties.integrationServiceEnvironment")
+ private ResourceReference integrationServiceEnvironment;
+
+ /*
+ * The provisioning state.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private WorkflowProvisioningState provisioningState;
+
+ /*
+ * The category.
+ */
+ @JsonProperty(value = "properties.category", access = JsonProperty.Access.WRITE_ONLY)
+ private ApiTier category;
+
+ /*
+ * The integration service environment managed api deployment parameters.
+ */
+ @JsonProperty(value = "properties.deploymentParameters")
+ private IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters;
+
+ /**
+ * Get the namePropertiesName property: The name.
+ *
+ * @return the namePropertiesName value.
+ */
+ public String namePropertiesName() {
+ return this.namePropertiesName;
+ }
+
+ /**
+ * Get the connectionParameters property: The connection parameters.
+ *
+ * @return the connectionParameters value.
+ */
+ public Map connectionParameters() {
+ return this.connectionParameters;
+ }
+
+ /**
+ * Get the metadata property: The metadata.
+ *
+ * @return the metadata value.
+ */
+ public ApiResourceMetadata metadata() {
+ return this.metadata;
+ }
+
+ /**
+ * Get the runtimeUrls property: The runtime urls.
+ *
+ * @return the runtimeUrls value.
+ */
+ public List runtimeUrls() {
+ return this.runtimeUrls;
+ }
+
+ /**
+ * Get the generalInformation property: The api general information.
+ *
+ * @return the generalInformation value.
+ */
+ public ApiResourceGeneralInformation generalInformation() {
+ return this.generalInformation;
+ }
+
+ /**
+ * Get the capabilities property: The capabilities.
+ *
+ * @return the capabilities value.
+ */
+ public List capabilities() {
+ return this.capabilities;
+ }
+
+ /**
+ * Get the backendService property: The backend service.
+ *
+ * @return the backendService value.
+ */
+ public ApiResourceBackendService backendService() {
+ return this.backendService;
+ }
+
+ /**
+ * Get the policies property: The policies for the API.
+ *
+ * @return the policies value.
+ */
+ public ApiResourcePolicies policies() {
+ return this.policies;
+ }
+
+ /**
+ * Get the apiDefinitionUrl property: The API definition.
+ *
+ * @return the apiDefinitionUrl value.
+ */
+ public String apiDefinitionUrl() {
+ return this.apiDefinitionUrl;
+ }
+
+ /**
+ * Get the apiDefinitions property: The api definitions.
+ *
+ * @return the apiDefinitions value.
+ */
+ public ApiResourceDefinitions apiDefinitions() {
+ return this.apiDefinitions;
+ }
+
+ /**
+ * Get the integrationServiceEnvironment property: The integration service environment reference.
+ *
+ * @return the integrationServiceEnvironment value.
+ */
+ public ResourceReference integrationServiceEnvironment() {
+ return this.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) {
+ this.integrationServiceEnvironment = integrationServiceEnvironment;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public WorkflowProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the category property: The category.
+ *
+ * @return the category value.
+ */
+ public ApiTier category() {
+ return this.category;
+ }
+
+ /**
+ * 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 IntegrationServiceEnvironmentManagedApiInner object itself.
+ */
+ public IntegrationServiceEnvironmentManagedApiInner withDeploymentParameters(
+ IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters) {
+ this.deploymentParameters = deploymentParameters;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public IntegrationServiceEnvironmentManagedApiInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public IntegrationServiceEnvironmentManagedApiInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (metadata() != null) {
+ metadata().validate();
+ }
+ if (generalInformation() != null) {
+ generalInformation().validate();
+ }
+ if (backendService() != null) {
+ backendService().validate();
+ }
+ if (policies() != null) {
+ policies().validate();
+ }
+ if (apiDefinitions() != null) {
+ apiDefinitions().validate();
+ }
+ if (integrationServiceEnvironment() != null) {
+ integrationServiceEnvironment().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..55c6cac10a52 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
@@ -10,12 +10,14 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.logic.models.FlowAccessControlConfiguration;
import com.azure.resourcemanager.logic.models.FlowEndpointsConfiguration;
+import com.azure.resourcemanager.logic.models.ManagedServiceIdentity;
import com.azure.resourcemanager.logic.models.ResourceReference;
import com.azure.resourcemanager.logic.models.Sku;
import com.azure.resourcemanager.logic.models.WorkflowParameter;
import com.azure.resourcemanager.logic.models.WorkflowProvisioningState;
import com.azure.resourcemanager.logic.models.WorkflowState;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.Map;
@@ -26,6 +28,12 @@
public class WorkflowInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowInner.class);
+ /*
+ * Managed service identity properties.
+ */
+ @JsonProperty(value = "identity")
+ private ManagedServiceIdentity identity;
+
/*
* Gets the provisioning state.
*/
@@ -102,8 +110,29 @@ public class WorkflowInner extends Resource {
* The parameters.
*/
@JsonProperty(value = "properties.parameters")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map parameters;
+ /**
+ * 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 WorkflowInner object itself.
+ */
+ public WorkflowInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
/**
* Get the provisioningState property: Gets the provisioning state.
*
@@ -318,6 +347,9 @@ public WorkflowInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
if (endpointsConfiguration() != null) {
endpointsConfiguration().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..19f0ce058b17 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
@@ -56,7 +56,7 @@ public class WorkflowRunActionRepetitionDefinitionInner extends Resource {
private String code;
/*
- * Any object
+ * Anything
*/
@JsonProperty(value = "properties.error")
private Object error;
@@ -216,7 +216,7 @@ public WorkflowRunActionRepetitionDefinitionInner withCode(String code) {
}
/**
- * Get the error property: Any object.
+ * Get the error property: Anything.
*
* @return the error value.
*/
@@ -225,7 +225,7 @@ public Object error() {
}
/**
- * Set the error property: Any object.
+ * Set the error property: Anything.
*
* @param error the error value to set.
* @return the WorkflowRunActionRepetitionDefinitionInner object itself.
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..725212c231e7 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
@@ -14,6 +14,7 @@
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;
@@ -100,6 +101,7 @@ public class WorkflowRunInner extends SubResource {
* Gets the outputs.
*/
@JsonProperty(value = "properties.outputs", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map outputs;
/*
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..c603cb944d6e 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,7 +4,7 @@
package com.azure.resourcemanager.logic.fluent.models;
-import com.azure.core.annotation.Immutable;
+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;
@@ -19,7 +19,7 @@
/** The workflow trigger. */
@JsonFlatten
-@Immutable
+@Fluent
public class WorkflowTriggerInner extends SubResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(WorkflowTriggerInner.class);
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..f3a6588b0eb3 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
@@ -16,6 +16,7 @@
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;
@@ -96,6 +97,7 @@ public class WorkflowVersionInner extends Resource {
* The parameters.
*/
@JsonProperty(value = "properties.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/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/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..db1aae337d17
--- /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 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 IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters() {
+ return this.innerModel().deploymentParameters();
+ }
+
+ 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 withIntegrationServiceEnvironment(
+ ResourceReference integrationServiceEnvironment) {
+ this.innerModel().withIntegrationServiceEnvironment(integrationServiceEnvironment);
+ return this;
+ }
+
+ public IntegrationServiceEnvironmentManagedApiImpl withDeploymentParameters(
+ IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters) {
+ this.innerModel().withDeploymentParameters(deploymentParameters);
+ return this;
+ }
+}
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..b232ca385f03 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,
@@ -159,7 +162,7 @@ Mono> listNext(
* @return the integration service environment managed Apis.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
+ private Mono> listSinglePageAsync(
String resourceGroup, String integrationServiceEnvironmentName) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -195,7 +198,7 @@ private Mono> listSinglePageAsync(
this.client.getApiVersion(),
accept,
context))
- .>map(
+ .>map(
res ->
new PagedResponseBase<>(
res.getRequest(),
@@ -219,7 +222,7 @@ private Mono> listSinglePageAsync(
* @return the integration service environment managed Apis.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
+ private Mono> listSinglePageAsync(
String resourceGroup, String integrationServiceEnvironmentName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -275,7 +278,8 @@ private Mono> listSinglePageAsync(
* @return the integration service environment managed Apis.
*/
@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));
@@ -293,7 +297,7 @@ private PagedFlux listAsync(String resourceGroup, String integr
* @return the integration service environment managed Apis.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(
+ private PagedFlux listAsync(
String resourceGroup, String integrationServiceEnvironmentName, Context context) {
return new PagedFlux<>(
() -> listSinglePageAsync(resourceGroup, integrationServiceEnvironmentName, context),
@@ -311,7 +315,8 @@ private PagedFlux listAsync(
* @return the integration service environment managed Apis.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName) {
+ public PagedIterable list(
+ String resourceGroup, String integrationServiceEnvironmentName) {
return new PagedIterable<>(listAsync(resourceGroup, integrationServiceEnvironmentName));
}
@@ -327,7 +332,7 @@ public PagedIterable list(String resourceGroup, String integrat
* @return the integration service environment managed Apis.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(
+ public PagedIterable list(
String resourceGroup, String integrationServiceEnvironmentName, Context context) {
return new PagedIterable<>(listAsync(resourceGroup, integrationServiceEnvironmentName, context));
}
@@ -344,7 +349,7 @@ public PagedIterable list(
* @return the integration service environment managed Api.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
+ private Mono> getWithResponseAsync(
String resourceGroup, String integrationServiceEnvironmentName, String apiName) {
if (this.client.getEndpoint() == null) {
return Mono
@@ -400,7 +405,7 @@ private Mono> getWithResponseAsync(
* @return the integration service environment managed Api.
*/
@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
@@ -452,11 +457,11 @@ private Mono> getWithResponseAsync(
* @return the integration service environment managed Api.
*/
@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 +482,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();
}
@@ -494,7 +500,7 @@ public ManagedApiInner get(String resourceGroup, String integrationServiceEnviro
* @return the integration service environment managed Api.
*/
@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 +511,18 @@ 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.
*/
@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 +547,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 +567,7 @@ private Mono>> putWithResponseAsync(
integrationServiceEnvironmentName,
apiName,
this.client.getApiVersion(),
+ integrationServiceEnvironmentManagedApi,
accept,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -560,15 +579,20 @@ 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.
*/
@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 +617,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 +635,7 @@ private Mono>> putWithResponseAsync(
integrationServiceEnvironmentName,
apiName,
this.client.getApiVersion(),
+ integrationServiceEnvironmentManagedApi,
accept,
context);
}
@@ -613,20 +646,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 integration service environment managed api.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private PollerFlux, ManagedApiInner> beginPutAsync(
- String resourceGroup, String integrationServiceEnvironmentName, String apiName) {
+ 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,
+ Context.NONE);
}
/**
@@ -635,22 +679,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 integration service environment managed api.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private PollerFlux, ManagedApiInner> beginPutAsync(
- String resourceGroup, String integrationServiceEnvironmentName, String apiName, Context context) {
+ 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 +719,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 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();
+ public SyncPoller<
+ PollResult, IntegrationServiceEnvironmentManagedApiInner>
+ beginPut(
+ String resourceGroup,
+ String integrationServiceEnvironmentName,
+ String apiName,
+ IntegrationServiceEnvironmentManagedApiInner integrationServiceEnvironmentManagedApi) {
+ return beginPutAsync(
+ resourceGroup, integrationServiceEnvironmentName, apiName, integrationServiceEnvironmentManagedApi)
+ .getSyncPoller();
}
/**
@@ -676,16 +744,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 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();
+ 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 +775,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.
*/
@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 +799,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.
*/
@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 +829,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 +852,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();
}
/**
@@ -1025,10 +1139,10 @@ 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.
*/
@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 +1155,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 +1175,11 @@ 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.
*/
@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/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/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/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/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..4598f5132742 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 {
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..ac328ea10545 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.
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..14d99dc8b5db
--- /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 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 deploymentParameters property: The integration service environment managed api deployment parameters.
+ *
+ * @return the deploymentParameters value.
+ */
+ IntegrationServiceEnvironmentManagedApiDeploymentParameters deploymentParameters();
+
+ /**
+ * 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.WithIntegrationServiceEnvironment,
+ DefinitionStages.WithDeploymentParameters {
+ /**
+ * 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
+ * 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);
+ }
+ /**
+ * 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);
+ }
+ }
+ /**
+ * 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.WithIntegrationServiceEnvironment,
+ UpdateStages.WithDeploymentParameters {
+ /**
+ * 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
+ * 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);
+ }
+ /** 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);
+ }
+ }
+ /**
+ * 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/IntegrationServiceEnvironmentManagedApiProperties.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiProperties.java
new file mode 100644
index 000000000000..fe4487cc799e
--- /dev/null
+++ b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApiProperties.java
@@ -0,0 +1,65 @@
+// Copyright (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 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/models/IntegrationServiceEnvironmentManagedApis.java b/sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/IntegrationServiceEnvironmentManagedApis.java
index 02123d8697c4..d5c1c86d09fc 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
@@ -20,7 +20,8 @@ public interface IntegrationServiceEnvironmentManagedApis {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the integration service environment managed Apis.
*/
- PagedIterable list(String resourceGroup, String integrationServiceEnvironmentName);
+ PagedIterable list(
+ String resourceGroup, String integrationServiceEnvironmentName);
/**
* Gets the integration service environment managed Apis.
@@ -33,7 +34,8 @@ public interface IntegrationServiceEnvironmentManagedApis {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the integration service environment managed Apis.
*/
- 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.
@@ -60,58 +63,83 @@ public interface IntegrationServiceEnvironmentManagedApis {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the integration service environment managed Api.
*/
- 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.
+ */
+ 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.
+ */
+ 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/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/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..96f740b6141b 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 {
/**
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..c941ee5112b8 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
@@ -82,7 +82,7 @@ public interface WorkflowRunActionRepetitionDefinition {
String code();
/**
- * Gets the error property: Any object.
+ * Gets the error property: Anything.
*
* @return the error value.
*/