diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 2902a1de31f56..996cfe790a8a7 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -335,6 +335,7 @@ com.azure.resourcemanager:azure-resourcemanager-automanage;1.0.0-beta.1;1.0.0-be
com.azure.resourcemanager:azure-resourcemanager-edgeorder;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-securityinsights;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-oep;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-blockchain;1.0.0-beta.1;1.0.0-beta.1
com.azure.tools:azure-sdk-archetype;1.0.0;1.0.0
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
diff --git a/pom.xml b/pom.xml
index 621fa3aedede6..42b87941c0dd3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -866,6 +866,7 @@
sdk/batchsdk/batchaisdk/billing
+ sdk/blockchainsdk/bomssdk/botservicesdk/changeanalysis
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/CHANGELOG.md b/sdk/blockchain/azure-resourcemanager-blockchain/CHANGELOG.md
new file mode 100644
index 0000000000000..9593a0c130ab0
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-02-09)
+
+- Azure Resource Manager Blockchain client library for Java. This package contains Microsoft Azure SDK for Blockchain Management SDK. REST API for Azure Blockchain Service. Package tag package-2018-06-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/README.md b/sdk/blockchain/azure-resourcemanager-blockchain/README.md
new file mode 100644
index 0000000000000..012af3d4b0bbc
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/README.md
@@ -0,0 +1,102 @@
+# Azure Resource Manager Blockchain client library for Java
+
+Azure Resource Manager Blockchain client library for Java.
+
+This package contains Microsoft Azure SDK for Blockchain Management SDK. REST API for Azure Blockchain Service. Package tag package-2018-06-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-blockchain;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-blockchain
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+BlockchainManager manager = BlockchainManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/blockchain/azure-resourcemanager-blockchain/SAMPLE.md)
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/SAMPLE.md b/sdk/blockchain/azure-resourcemanager-blockchain/SAMPLE.md
new file mode 100644
index 0000000000000..f0515b1334170
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/SAMPLE.md
@@ -0,0 +1,532 @@
+# Code snippets and samples
+
+
+## BlockchainMemberOperationResults
+
+- [Get](#blockchainmemberoperationresults_get)
+
+## BlockchainMembers
+
+- [Create](#blockchainmembers_create)
+- [Delete](#blockchainmembers_delete)
+- [GetByResourceGroup](#blockchainmembers_getbyresourcegroup)
+- [List](#blockchainmembers_list)
+- [ListApiKeys](#blockchainmembers_listapikeys)
+- [ListByResourceGroup](#blockchainmembers_listbyresourcegroup)
+- [ListConsortiumMembers](#blockchainmembers_listconsortiummembers)
+- [ListRegenerateApiKeys](#blockchainmembers_listregenerateapikeys)
+- [Update](#blockchainmembers_update)
+
+## Locations
+
+- [CheckNameAvailability](#locations_checknameavailability)
+- [ListConsortiums](#locations_listconsortiums)
+
+## Operations
+
+- [List](#operations_list)
+
+## Skus
+
+- [List](#skus_list)
+
+## TransactionNodes
+
+- [Create](#transactionnodes_create)
+- [Delete](#transactionnodes_delete)
+- [Get](#transactionnodes_get)
+- [List](#transactionnodes_list)
+- [ListApiKeys](#transactionnodes_listapikeys)
+- [ListRegenerateApiKeys](#transactionnodes_listregenerateapikeys)
+- [Update](#transactionnodes_update)
+### BlockchainMemberOperationResults_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BlockchainMemberOperationResults Get. */
+public final class BlockchainMemberOperationResultsGetSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMemberOperationResults_Get.json
+ */
+ /**
+ * Sample code: BlockchainMemberOperationResults_Get.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void blockchainMemberOperationResultsGet(
+ com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager
+ .blockchainMemberOperationResults()
+ .getWithResponse("southeastasia", "12f4b309-01e3-4fcf-bc0b-1cc034ca03f8", Context.NONE);
+ }
+}
+```
+
+### BlockchainMembers_Create
+
+```java
+import com.azure.resourcemanager.blockchain.models.BlockchainMemberNodesSku;
+import com.azure.resourcemanager.blockchain.models.BlockchainProtocol;
+
+/** Samples for BlockchainMembers Create. */
+public final class BlockchainMembersCreateSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Create.json
+ */
+ /**
+ * Sample code: BlockchainMembers_Create.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void blockchainMembersCreate(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager
+ .blockchainMembers()
+ .define("contosemember1")
+ .withRegion("southeastasia")
+ .withExistingResourceGroup("mygroup")
+ .withProtocol(BlockchainProtocol.QUORUM)
+ .withValidatorNodesSku(new BlockchainMemberNodesSku().withCapacity(2))
+ .withPassword("")
+ .withConsortium("ContoseConsortium")
+ .withConsortiumManagementAccountPassword("")
+ .create();
+ }
+}
+```
+
+### BlockchainMembers_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BlockchainMembers Delete. */
+public final class BlockchainMembersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Delete.json
+ */
+ /**
+ * Sample code: BlockchainMembers_Delete.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void blockchainMembersDelete(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager.blockchainMembers().delete("mygroup", "contosemember1", Context.NONE);
+ }
+}
+```
+
+### BlockchainMembers_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BlockchainMembers GetByResourceGroup. */
+public final class BlockchainMembersGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Get.json
+ */
+ /**
+ * Sample code: BlockchainMembers_Get.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void blockchainMembersGet(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager.blockchainMembers().getByResourceGroupWithResponse("mygroup", "contosemember1", Context.NONE);
+ }
+}
+```
+
+### BlockchainMembers_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BlockchainMembers List. */
+public final class BlockchainMembersListSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_ListAll.json
+ */
+ /**
+ * Sample code: BlockchainMembers_ListAll.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void blockchainMembersListAll(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager.blockchainMembers().list(Context.NONE);
+ }
+}
+```
+
+### BlockchainMembers_ListApiKeys
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BlockchainMembers ListApiKeys. */
+public final class BlockchainMembersListApiKeysSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_ListApiKeys.json
+ */
+ /**
+ * Sample code: BlockchainMembers_ListApiKeys.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void blockchainMembersListApiKeys(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager.blockchainMembers().listApiKeysWithResponse("contosemember1", "mygroup", Context.NONE);
+ }
+}
+```
+
+### BlockchainMembers_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BlockchainMembers ListByResourceGroup. */
+public final class BlockchainMembersListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_List.json
+ */
+ /**
+ * Sample code: BlockchainMembers_List.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void blockchainMembersList(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager.blockchainMembers().listByResourceGroup("mygroup", Context.NONE);
+ }
+}
+```
+
+### BlockchainMembers_ListConsortiumMembers
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BlockchainMembers ListConsortiumMembers. */
+public final class BlockchainMembersListConsortiumMembersSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_ListConsortiumMembers.json
+ */
+ /**
+ * Sample code: BlockchainMembers_ListConsortiumMembers.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void blockchainMembersListConsortiumMembers(
+ com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager.blockchainMembers().listConsortiumMembers("contosemember1", "mygroup", Context.NONE);
+ }
+}
+```
+
+### BlockchainMembers_ListRegenerateApiKeys
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.blockchain.models.ApiKey;
+
+/** Samples for BlockchainMembers ListRegenerateApiKeys. */
+public final class BlockchainMembersListRegenerateApiKeysSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_ListRegenerateApiKeys.json
+ */
+ /**
+ * Sample code: BlockchainMembers_ListRegenerateApiKeys.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void blockchainMembersListRegenerateApiKeys(
+ com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager
+ .blockchainMembers()
+ .listRegenerateApiKeysWithResponse(
+ "contosemember1", "mygroup", new ApiKey().withKeyName("key1"), Context.NONE);
+ }
+}
+```
+
+### BlockchainMembers_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.blockchain.models.BlockchainMember;
+
+/** Samples for BlockchainMembers Update. */
+public final class BlockchainMembersUpdateSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/BlockchainMembers_Update.json
+ */
+ /**
+ * Sample code: BlockchainMembers_Update.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void blockchainMembersUpdate(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ BlockchainMember resource =
+ manager
+ .blockchainMembers()
+ .getByResourceGroupWithResponse("mygroup", "ContoseMember1", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withConsortiumManagementAccountPassword("")
+ .withPassword("")
+ .apply();
+ }
+}
+```
+
+### Locations_CheckNameAvailability
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.blockchain.models.NameAvailabilityRequest;
+
+/** Samples for Locations CheckNameAvailability. */
+public final class LocationsCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/Locations_CheckNameAvailability.json
+ */
+ /**
+ * Sample code: Locations_CheckNameAvailability.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void locationsCheckNameAvailability(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager
+ .locations()
+ .checkNameAvailabilityWithResponse(
+ "southeastasia",
+ new NameAvailabilityRequest()
+ .withName("contosemember1")
+ .withType("Microsoft.Blockchain/blockchainMembers"),
+ Context.NONE);
+ }
+}
+```
+
+### Locations_ListConsortiums
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Locations ListConsortiums. */
+public final class LocationsListConsortiumsSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/Locations_ListConsortiums.json
+ */
+ /**
+ * Sample code: Locations_ListConsortiums.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void locationsListConsortiums(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager.locations().listConsortiumsWithResponse("southeastasia", Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/Operations_List.json
+ */
+ /**
+ * Sample code: Operations_List.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void operationsList(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
+### Skus_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Skus List. */
+public final class SkusListSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/Skus_List.json
+ */
+ /**
+ * Sample code: Skus_List.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void skusList(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager.skus().listWithResponse(Context.NONE);
+ }
+}
+```
+
+### TransactionNodes_Create
+
+```java
+/** Samples for TransactionNodes Create. */
+public final class TransactionNodesCreateSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Create.json
+ */
+ /**
+ * Sample code: TransactionNodes_Create.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void transactionNodesCreate(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager
+ .transactionNodes()
+ .define("txnode2")
+ .withExistingBlockchainMember("contosemember1", "mygroup")
+ .withRegion("southeastasia")
+ .withPassword("")
+ .create();
+ }
+}
+```
+
+### TransactionNodes_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for TransactionNodes Delete. */
+public final class TransactionNodesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Delete.json
+ */
+ /**
+ * Sample code: TransactionNodes_Delete.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void transactionNodesDelete(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager.transactionNodes().delete("contosemember1", "txNode2", "mygroup", Context.NONE);
+ }
+}
+```
+
+### TransactionNodes_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for TransactionNodes Get. */
+public final class TransactionNodesGetSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Get.json
+ */
+ /**
+ * Sample code: TransactionNodes_Get.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void transactionNodesGet(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager.transactionNodes().getWithResponse("contosemember1", "txnode2", "mygroup", Context.NONE);
+ }
+}
+```
+
+### TransactionNodes_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for TransactionNodes List. */
+public final class TransactionNodesListSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_List.json
+ */
+ /**
+ * Sample code: TransactionNodes_List.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void transactionNodesList(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager.transactionNodes().list("contosemember1", "mygroup", Context.NONE);
+ }
+}
+```
+
+### TransactionNodes_ListApiKeys
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for TransactionNodes ListApiKeys. */
+public final class TransactionNodesListApiKeysSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_ListApiKeys.json
+ */
+ /**
+ * Sample code: TransactionNodes_ListApiKeys.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void transactionNodesListApiKeys(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager.transactionNodes().listApiKeysWithResponse("contosemember1", "txnode2", "mygroup", Context.NONE);
+ }
+}
+```
+
+### TransactionNodes_ListRegenerateApiKeys
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.blockchain.models.ApiKey;
+
+/** Samples for TransactionNodes ListRegenerateApiKeys. */
+public final class TransactionNodesListRegenerateApiKeysSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_ListRegenerateApiKeys.json
+ */
+ /**
+ * Sample code: TransactionNodes_ListRegenerateApiKeys.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void transactionNodesListRegenerateApiKeys(
+ com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ manager
+ .transactionNodes()
+ .listRegenerateApiKeysWithResponse(
+ "contosemember1", "txnode2", "mygroup", new ApiKey().withKeyName("key1"), Context.NONE);
+ }
+}
+```
+
+### TransactionNodes_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.blockchain.models.TransactionNode;
+
+/** Samples for TransactionNodes Update. */
+public final class TransactionNodesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/blockchain/resource-manager/Microsoft.Blockchain/preview/2018-06-01-preview/examples/TransactionNodes_Update.json
+ */
+ /**
+ * Sample code: TransactionNodes_Update.
+ *
+ * @param manager Entry point to BlockchainManager.
+ */
+ public static void transactionNodesUpdate(com.azure.resourcemanager.blockchain.BlockchainManager manager) {
+ TransactionNode resource =
+ manager.transactionNodes().getWithResponse("contosemember1", "txnode2", "mygroup", Context.NONE).getValue();
+ resource.update().withPassword("").apply();
+ }
+}
+```
+
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/pom.xml b/sdk/blockchain/azure-resourcemanager-blockchain/pom.xml
new file mode 100644
index 0000000000000..d938244898321
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/pom.xml
@@ -0,0 +1,55 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-blockchain
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for Blockchain Management
+ This package contains Microsoft Azure SDK for Blockchain Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for Azure Blockchain Service. Package tag package-2018-06-01-preview.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.25.0
+
+
+ com.azure
+ azure-core-management
+ 1.5.2
+
+
+
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/BlockchainManager.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/BlockchainManager.java
new file mode 100644
index 0000000000000..ccb74c6864a3d
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/BlockchainManager.java
@@ -0,0 +1,303 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+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;
+import com.azure.resourcemanager.blockchain.fluent.BlockchainManagementClient;
+import com.azure.resourcemanager.blockchain.implementation.BlockchainManagementClientBuilder;
+import com.azure.resourcemanager.blockchain.implementation.BlockchainMemberOperationResultsImpl;
+import com.azure.resourcemanager.blockchain.implementation.BlockchainMembersImpl;
+import com.azure.resourcemanager.blockchain.implementation.LocationsImpl;
+import com.azure.resourcemanager.blockchain.implementation.OperationsImpl;
+import com.azure.resourcemanager.blockchain.implementation.SkusImpl;
+import com.azure.resourcemanager.blockchain.implementation.TransactionNodesImpl;
+import com.azure.resourcemanager.blockchain.models.BlockchainMemberOperationResults;
+import com.azure.resourcemanager.blockchain.models.BlockchainMembers;
+import com.azure.resourcemanager.blockchain.models.Locations;
+import com.azure.resourcemanager.blockchain.models.Operations;
+import com.azure.resourcemanager.blockchain.models.Skus;
+import com.azure.resourcemanager.blockchain.models.TransactionNodes;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+/** Entry point to BlockchainManager. REST API for Azure Blockchain Service. */
+public final class BlockchainManager {
+ private BlockchainMembers blockchainMembers;
+
+ private BlockchainMemberOperationResults blockchainMemberOperationResults;
+
+ private Locations locations;
+
+ private Operations operations;
+
+ private Skus skus;
+
+ private TransactionNodes transactionNodes;
+
+ private final BlockchainManagementClient clientObject;
+
+ private BlockchainManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new BlockchainManagementClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of Blockchain service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Blockchain service API instance.
+ */
+ public static BlockchainManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create BlockchainManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new BlockchainManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private final ClientLogger logger = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ 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.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of Blockchain service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Blockchain service API instance.
+ */
+ public BlockchainManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.blockchain")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new BlockchainManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of BlockchainMembers. */
+ public BlockchainMembers blockchainMembers() {
+ if (this.blockchainMembers == null) {
+ this.blockchainMembers = new BlockchainMembersImpl(clientObject.getBlockchainMembers(), this);
+ }
+ return blockchainMembers;
+ }
+
+ /** @return Resource collection API of BlockchainMemberOperationResults. */
+ public BlockchainMemberOperationResults blockchainMemberOperationResults() {
+ if (this.blockchainMemberOperationResults == null) {
+ this.blockchainMemberOperationResults =
+ new BlockchainMemberOperationResultsImpl(clientObject.getBlockchainMemberOperationResults(), this);
+ }
+ return blockchainMemberOperationResults;
+ }
+
+ /** @return Resource collection API of Locations. */
+ public Locations locations() {
+ if (this.locations == null) {
+ this.locations = new LocationsImpl(clientObject.getLocations(), this);
+ }
+ return locations;
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of Skus. */
+ public Skus skus() {
+ if (this.skus == null) {
+ this.skus = new SkusImpl(clientObject.getSkus(), this);
+ }
+ return skus;
+ }
+
+ /** @return Resource collection API of TransactionNodes. */
+ public TransactionNodes transactionNodes() {
+ if (this.transactionNodes == null) {
+ this.transactionNodes = new TransactionNodesImpl(clientObject.getTransactionNodes(), this);
+ }
+ return transactionNodes;
+ }
+
+ /**
+ * @return Wrapped service client BlockchainManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ */
+ public BlockchainManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/BlockchainManagementClient.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/BlockchainManagementClient.java
new file mode 100644
index 0000000000000..059778ff39ac4
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/BlockchainManagementClient.java
@@ -0,0 +1,89 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for BlockchainManagementClient class. */
+public interface BlockchainManagementClient {
+ /**
+ * Gets Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is
+ * part of the URI for every service call.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the BlockchainMembersClient object to access its operations.
+ *
+ * @return the BlockchainMembersClient object.
+ */
+ BlockchainMembersClient getBlockchainMembers();
+
+ /**
+ * Gets the BlockchainMemberOperationResultsClient object to access its operations.
+ *
+ * @return the BlockchainMemberOperationResultsClient object.
+ */
+ BlockchainMemberOperationResultsClient getBlockchainMemberOperationResults();
+
+ /**
+ * Gets the LocationsClient object to access its operations.
+ *
+ * @return the LocationsClient object.
+ */
+ LocationsClient getLocations();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the SkusClient object to access its operations.
+ *
+ * @return the SkusClient object.
+ */
+ SkusClient getSkus();
+
+ /**
+ * Gets the TransactionNodesClient object to access its operations.
+ *
+ * @return the TransactionNodesClient object.
+ */
+ TransactionNodesClient getTransactionNodes();
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/BlockchainMemberOperationResultsClient.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/BlockchainMemberOperationResultsClient.java
new file mode 100644
index 0000000000000..d666c35469586
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/BlockchainMemberOperationResultsClient.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.blockchain.fluent.models.OperationResultInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in BlockchainMemberOperationResultsClient.
+ */
+public interface BlockchainMemberOperationResultsClient {
+ /**
+ * Get Async operation result.
+ *
+ * @param locationName Location name.
+ * @param operationId Operation 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 async operation result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationResultInner get(String locationName, String operationId);
+
+ /**
+ * Get Async operation result.
+ *
+ * @param locationName Location name.
+ * @param operationId Operation 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 async operation result along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String locationName, String operationId, Context context);
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/BlockchainMembersClient.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/BlockchainMembersClient.java
new file mode 100644
index 0000000000000..66cae29a2af8c
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/BlockchainMembersClient.java
@@ -0,0 +1,372 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.blockchain.fluent.models.ApiKeyCollectionInner;
+import com.azure.resourcemanager.blockchain.fluent.models.BlockchainMemberInner;
+import com.azure.resourcemanager.blockchain.fluent.models.ConsortiumMemberInner;
+import com.azure.resourcemanager.blockchain.models.ApiKey;
+import com.azure.resourcemanager.blockchain.models.BlockchainMemberUpdate;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in BlockchainMembersClient. */
+public interface BlockchainMembersClient {
+ /**
+ * Get details about a blockchain member.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param blockchainMemberName Blockchain member 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 details about a blockchain member.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BlockchainMemberInner getByResourceGroup(String resourceGroupName, String blockchainMemberName);
+
+ /**
+ * Get details about a blockchain member.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param blockchainMemberName Blockchain member 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 details about a blockchain member along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String blockchainMemberName, Context context);
+
+ /**
+ * Create a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param blockchainMember Payload to create a blockchain member.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return payload of the blockchain member which is exposed in the request/response of the resource provider along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, BlockchainMemberInner> beginCreate(
+ String blockchainMemberName, String resourceGroupName, BlockchainMemberInner blockchainMember);
+
+ /**
+ * Create a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param blockchainMember Payload to create a blockchain member.
+ * @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 payload of the blockchain member which is exposed in the request/response of the resource provider along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, BlockchainMemberInner> beginCreate(
+ String blockchainMemberName, String resourceGroupName, BlockchainMemberInner blockchainMember, Context context);
+
+ /**
+ * Create a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param blockchainMember Payload to create a blockchain member.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return payload of the blockchain member which is exposed in the request/response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BlockchainMemberInner create(
+ String blockchainMemberName, String resourceGroupName, BlockchainMemberInner blockchainMember);
+
+ /**
+ * Create a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return payload of the blockchain member which is exposed in the request/response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BlockchainMemberInner create(String blockchainMemberName, String resourceGroupName);
+
+ /**
+ * Create a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param blockchainMember Payload to create a blockchain member.
+ * @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 payload of the blockchain member which is exposed in the request/response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BlockchainMemberInner create(
+ String blockchainMemberName, String resourceGroupName, BlockchainMemberInner blockchainMember, Context context);
+
+ /**
+ * Delete a blockchain member.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param blockchainMemberName Blockchain member 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String blockchainMemberName);
+
+ /**
+ * Delete a blockchain member.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param blockchainMemberName Blockchain member 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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String blockchainMemberName, Context context);
+
+ /**
+ * Delete a blockchain member.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param blockchainMemberName Blockchain member 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String blockchainMemberName);
+
+ /**
+ * Delete a blockchain member.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param blockchainMemberName Blockchain member 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String blockchainMemberName, Context context);
+
+ /**
+ * Update a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return payload of the blockchain member which is exposed in the request/response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BlockchainMemberInner update(String blockchainMemberName, String resourceGroupName);
+
+ /**
+ * Update a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param blockchainMember Payload to update the blockchain member.
+ * @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 payload of the blockchain member which is exposed in the request/response of the resource provider along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String blockchainMemberName,
+ String resourceGroupName,
+ BlockchainMemberUpdate blockchainMember,
+ Context context);
+
+ /**
+ * Lists the blockchain members for a resource group.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of the blockchain member payload which is exposed in the request/response of the resource
+ * provider.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists the blockchain members for a resource group.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @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 collection of the blockchain member payload which is exposed in the request/response of the resource
+ * provider.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists the blockchain members for a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of the blockchain member payload which is exposed in the request/response of the resource
+ * provider.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists the blockchain members for a subscription.
+ *
+ * @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 collection of the blockchain member payload which is exposed in the request/response of the resource
+ * provider.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Lists the consortium members for a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of consortium payload.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listConsortiumMembers(String blockchainMemberName, String resourceGroupName);
+
+ /**
+ * Lists the consortium members for a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @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 collection of consortium payload.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listConsortiumMembers(
+ String blockchainMemberName, String resourceGroupName, Context context);
+
+ /**
+ * Lists the API keys for a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of the API key payload which is exposed in the response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApiKeyCollectionInner listApiKeys(String blockchainMemberName, String resourceGroupName);
+
+ /**
+ * Lists the API keys for a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @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 collection of the API key payload which is exposed in the response of the resource provider along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listApiKeysWithResponse(
+ String blockchainMemberName, String resourceGroupName, Context context);
+
+ /**
+ * Regenerate the API keys for a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of the API key payload which is exposed in the response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApiKeyCollectionInner listRegenerateApiKeys(String blockchainMemberName, String resourceGroupName);
+
+ /**
+ * Regenerate the API keys for a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param apiKey api key to be regenerate.
+ * @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 collection of the API key payload which is exposed in the response of the resource provider along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listRegenerateApiKeysWithResponse(
+ String blockchainMemberName, String resourceGroupName, ApiKey apiKey, Context context);
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/LocationsClient.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/LocationsClient.java
new file mode 100644
index 0000000000000..ad9d57d0141ec
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/LocationsClient.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.blockchain.fluent.models.ConsortiumCollectionInner;
+import com.azure.resourcemanager.blockchain.fluent.models.NameAvailabilityInner;
+import com.azure.resourcemanager.blockchain.models.NameAvailabilityRequest;
+
+/** An instance of this class provides access to all the operations defined in LocationsClient. */
+public interface LocationsClient {
+ /**
+ * To check whether a resource name is available.
+ *
+ * @param locationName Location 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 name availability payload which is exposed in the response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NameAvailabilityInner checkNameAvailability(String locationName);
+
+ /**
+ * To check whether a resource name is available.
+ *
+ * @param locationName Location Name.
+ * @param nameAvailabilityRequest Name availability request payload.
+ * @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 name availability payload which is exposed in the response of the resource provider along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ String locationName, NameAvailabilityRequest nameAvailabilityRequest, Context context);
+
+ /**
+ * Lists the available consortiums for a subscription.
+ *
+ * @param locationName Location 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 collection of the consortium payload.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConsortiumCollectionInner listConsortiums(String locationName);
+
+ /**
+ * Lists the available consortiums for a subscription.
+ *
+ * @param locationName Location 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 collection of the consortium payload along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listConsortiumsWithResponse(String locationName, Context context);
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/OperationsClient.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..b1365180f1180
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.blockchain.fluent.models.ResourceProviderOperationInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists the available operations of Microsoft.Blockchain resource provider.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of operation payload which is exposed in the response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists the available operations of Microsoft.Blockchain resource provider.
+ *
+ * @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 collection of operation payload which is exposed in the response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/SkusClient.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/SkusClient.java
new file mode 100644
index 0000000000000..c4e7b6129a29e
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/SkusClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.blockchain.fluent.models.ResourceTypeSkuCollectionInner;
+
+/** An instance of this class provides access to all the operations defined in SkusClient. */
+public interface SkusClient {
+ /**
+ * Lists the Skus of the resource type.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of the resource type Sku.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceTypeSkuCollectionInner list();
+
+ /**
+ * Lists the Skus of the resource type.
+ *
+ * @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 collection of the resource type Sku along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(Context context);
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/TransactionNodesClient.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/TransactionNodesClient.java
new file mode 100644
index 0000000000000..cebc2ddd0482c
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/TransactionNodesClient.java
@@ -0,0 +1,356 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.blockchain.fluent.models.ApiKeyCollectionInner;
+import com.azure.resourcemanager.blockchain.fluent.models.TransactionNodeInner;
+import com.azure.resourcemanager.blockchain.models.ApiKey;
+import com.azure.resourcemanager.blockchain.models.TransactionNodeUpdate;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in TransactionNodesClient. */
+public interface TransactionNodesClient {
+ /**
+ * Get the details of the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the details of the transaction node.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TransactionNodeInner get(String blockchainMemberName, String transactionNodeName, String resourceGroupName);
+
+ /**
+ * Get the details of the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @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 details of the transaction node along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String blockchainMemberName, String transactionNodeName, String resourceGroupName, Context context);
+
+ /**
+ * Create or update the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param transactionNode Payload to create the transaction node.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return payload of the transaction node which is the request/response of the resource provider along with {@link
+ * Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, TransactionNodeInner> beginCreate(
+ String blockchainMemberName,
+ String transactionNodeName,
+ String resourceGroupName,
+ TransactionNodeInner transactionNode);
+
+ /**
+ * Create or update the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param transactionNode Payload to create the transaction node.
+ * @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 payload of the transaction node which is the request/response of the resource provider along with {@link
+ * Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, TransactionNodeInner> beginCreate(
+ String blockchainMemberName,
+ String transactionNodeName,
+ String resourceGroupName,
+ TransactionNodeInner transactionNode,
+ Context context);
+
+ /**
+ * Create or update the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param transactionNode Payload to create the transaction node.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return payload of the transaction node which is the request/response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TransactionNodeInner create(
+ String blockchainMemberName,
+ String transactionNodeName,
+ String resourceGroupName,
+ TransactionNodeInner transactionNode);
+
+ /**
+ * Create or update the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return payload of the transaction node which is the request/response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TransactionNodeInner create(String blockchainMemberName, String transactionNodeName, String resourceGroupName);
+
+ /**
+ * Create or update the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param transactionNode Payload to create the transaction node.
+ * @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 payload of the transaction node which is the request/response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TransactionNodeInner create(
+ String blockchainMemberName,
+ String transactionNodeName,
+ String resourceGroupName,
+ TransactionNodeInner transactionNode,
+ Context context);
+
+ /**
+ * Delete the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String blockchainMemberName, String transactionNodeName, String resourceGroupName);
+
+ /**
+ * Delete the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @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 {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String blockchainMemberName, String transactionNodeName, String resourceGroupName, Context context);
+
+ /**
+ * Delete the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String blockchainMemberName, String transactionNodeName, String resourceGroupName);
+
+ /**
+ * Delete the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String blockchainMemberName, String transactionNodeName, String resourceGroupName, Context context);
+
+ /**
+ * Update the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return payload of the transaction node which is the request/response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TransactionNodeInner update(String blockchainMemberName, String transactionNodeName, String resourceGroupName);
+
+ /**
+ * Update the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param transactionNode Payload to create the transaction node.
+ * @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 payload of the transaction node which is the request/response of the resource provider along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String blockchainMemberName,
+ String transactionNodeName,
+ String resourceGroupName,
+ TransactionNodeUpdate transactionNode,
+ Context context);
+
+ /**
+ * Lists the transaction nodes for a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of transaction node payload which is exposed in the request/response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String blockchainMemberName, String resourceGroupName);
+
+ /**
+ * Lists the transaction nodes for a blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @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 collection of transaction node payload which is exposed in the request/response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String blockchainMemberName, String resourceGroupName, Context context);
+
+ /**
+ * List the API keys for the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of the API key payload which is exposed in the response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApiKeyCollectionInner listApiKeys(
+ String blockchainMemberName, String transactionNodeName, String resourceGroupName);
+
+ /**
+ * List the API keys for the transaction node.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @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 collection of the API key payload which is exposed in the response of the resource provider along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listApiKeysWithResponse(
+ String blockchainMemberName, String transactionNodeName, String resourceGroupName, Context context);
+
+ /**
+ * Regenerate the API keys for the blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collection of the API key payload which is exposed in the response of the resource provider.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApiKeyCollectionInner listRegenerateApiKeys(
+ String blockchainMemberName, String transactionNodeName, String resourceGroupName);
+
+ /**
+ * Regenerate the API keys for the blockchain member.
+ *
+ * @param blockchainMemberName Blockchain member name.
+ * @param transactionNodeName Transaction node name.
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
+ * from the Azure Resource Manager API or the portal.
+ * @param apiKey api key to be regenerated.
+ * @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 collection of the API key payload which is exposed in the response of the resource provider along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listRegenerateApiKeysWithResponse(
+ String blockchainMemberName,
+ String transactionNodeName,
+ String resourceGroupName,
+ ApiKey apiKey,
+ Context context);
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ApiKeyCollectionInner.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ApiKeyCollectionInner.java
new file mode 100644
index 0000000000000..e35a5a6cf228b
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ApiKeyCollectionInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.blockchain.models.ApiKey;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Collection of the API key payload which is exposed in the response of the resource provider. */
+@Fluent
+public final class ApiKeyCollectionInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiKeyCollectionInner.class);
+
+ /*
+ * Gets or sets the collection of API key.
+ */
+ @JsonProperty(value = "keys")
+ private List keys;
+
+ /**
+ * Get the keys property: Gets or sets the collection of API key.
+ *
+ * @return the keys value.
+ */
+ public List keys() {
+ return this.keys;
+ }
+
+ /**
+ * Set the keys property: Gets or sets the collection of API key.
+ *
+ * @param keys the keys value to set.
+ * @return the ApiKeyCollectionInner object itself.
+ */
+ public ApiKeyCollectionInner withKeys(List keys) {
+ this.keys = keys;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (keys() != null) {
+ keys().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/BlockchainMemberInner.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/BlockchainMemberInner.java
new file mode 100644
index 0000000000000..287cebaf97326
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/BlockchainMemberInner.java
@@ -0,0 +1,331 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.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.blockchain.models.BlockchainMemberNodesSku;
+import com.azure.resourcemanager.blockchain.models.BlockchainMemberProvisioningState;
+import com.azure.resourcemanager.blockchain.models.BlockchainProtocol;
+import com.azure.resourcemanager.blockchain.models.FirewallRule;
+import com.azure.resourcemanager.blockchain.models.Sku;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Payload of the blockchain member which is exposed in the request/response of the resource provider. */
+@Fluent
+public final class BlockchainMemberInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(BlockchainMemberInner.class);
+
+ /*
+ * Gets or sets the blockchain member properties.
+ */
+ @JsonProperty(value = "properties")
+ private BlockchainMemberProperties innerProperties;
+
+ /*
+ * Gets or sets the blockchain member Sku.
+ */
+ @JsonProperty(value = "sku")
+ private Sku sku;
+
+ /**
+ * Get the innerProperties property: Gets or sets the blockchain member properties.
+ *
+ * @return the innerProperties value.
+ */
+ private BlockchainMemberProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the sku property: Gets or sets the blockchain member Sku.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: Gets or sets the blockchain member Sku.
+ *
+ * @param sku the sku value to set.
+ * @return the BlockchainMemberInner object itself.
+ */
+ public BlockchainMemberInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public BlockchainMemberInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public BlockchainMemberInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the protocol property: Gets or sets the blockchain protocol.
+ *
+ * @return the protocol value.
+ */
+ public BlockchainProtocol protocol() {
+ return this.innerProperties() == null ? null : this.innerProperties().protocol();
+ }
+
+ /**
+ * Set the protocol property: Gets or sets the blockchain protocol.
+ *
+ * @param protocol the protocol value to set.
+ * @return the BlockchainMemberInner object itself.
+ */
+ public BlockchainMemberInner withProtocol(BlockchainProtocol protocol) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BlockchainMemberProperties();
+ }
+ this.innerProperties().withProtocol(protocol);
+ return this;
+ }
+
+ /**
+ * Get the validatorNodesSku property: Gets or sets the blockchain validator nodes Sku.
+ *
+ * @return the validatorNodesSku value.
+ */
+ public BlockchainMemberNodesSku validatorNodesSku() {
+ return this.innerProperties() == null ? null : this.innerProperties().validatorNodesSku();
+ }
+
+ /**
+ * Set the validatorNodesSku property: Gets or sets the blockchain validator nodes Sku.
+ *
+ * @param validatorNodesSku the validatorNodesSku value to set.
+ * @return the BlockchainMemberInner object itself.
+ */
+ public BlockchainMemberInner withValidatorNodesSku(BlockchainMemberNodesSku validatorNodesSku) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BlockchainMemberProperties();
+ }
+ this.innerProperties().withValidatorNodesSku(validatorNodesSku);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Gets or sets the blockchain member provision state.
+ *
+ * @return the provisioningState value.
+ */
+ public BlockchainMemberProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the dns property: Gets the dns endpoint of the blockchain member.
+ *
+ * @return the dns value.
+ */
+ public String dns() {
+ return this.innerProperties() == null ? null : this.innerProperties().dns();
+ }
+
+ /**
+ * Get the username property: Gets the auth user name of the blockchain member.
+ *
+ * @return the username value.
+ */
+ public String username() {
+ return this.innerProperties() == null ? null : this.innerProperties().username();
+ }
+
+ /**
+ * Get the password property: Sets the basic auth password of the blockchain member.
+ *
+ * @return the password value.
+ */
+ public String password() {
+ return this.innerProperties() == null ? null : this.innerProperties().password();
+ }
+
+ /**
+ * Set the password property: Sets the basic auth password of the blockchain member.
+ *
+ * @param password the password value to set.
+ * @return the BlockchainMemberInner object itself.
+ */
+ public BlockchainMemberInner withPassword(String password) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BlockchainMemberProperties();
+ }
+ this.innerProperties().withPassword(password);
+ return this;
+ }
+
+ /**
+ * Get the consortium property: Gets or sets the consortium for the blockchain member.
+ *
+ * @return the consortium value.
+ */
+ public String consortium() {
+ return this.innerProperties() == null ? null : this.innerProperties().consortium();
+ }
+
+ /**
+ * Set the consortium property: Gets or sets the consortium for the blockchain member.
+ *
+ * @param consortium the consortium value to set.
+ * @return the BlockchainMemberInner object itself.
+ */
+ public BlockchainMemberInner withConsortium(String consortium) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BlockchainMemberProperties();
+ }
+ this.innerProperties().withConsortium(consortium);
+ return this;
+ }
+
+ /**
+ * Get the consortiumManagementAccountAddress property: Gets the managed consortium management account address.
+ *
+ * @return the consortiumManagementAccountAddress value.
+ */
+ public String consortiumManagementAccountAddress() {
+ return this.innerProperties() == null ? null : this.innerProperties().consortiumManagementAccountAddress();
+ }
+
+ /**
+ * Get the consortiumManagementAccountPassword property: Sets the managed consortium management account password.
+ *
+ * @return the consortiumManagementAccountPassword value.
+ */
+ public String consortiumManagementAccountPassword() {
+ return this.innerProperties() == null ? null : this.innerProperties().consortiumManagementAccountPassword();
+ }
+
+ /**
+ * Set the consortiumManagementAccountPassword property: Sets the managed consortium management account password.
+ *
+ * @param consortiumManagementAccountPassword the consortiumManagementAccountPassword value to set.
+ * @return the BlockchainMemberInner object itself.
+ */
+ public BlockchainMemberInner withConsortiumManagementAccountPassword(String consortiumManagementAccountPassword) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BlockchainMemberProperties();
+ }
+ this.innerProperties().withConsortiumManagementAccountPassword(consortiumManagementAccountPassword);
+ return this;
+ }
+
+ /**
+ * Get the consortiumRole property: Gets the role of the member in the consortium.
+ *
+ * @return the consortiumRole value.
+ */
+ public String consortiumRole() {
+ return this.innerProperties() == null ? null : this.innerProperties().consortiumRole();
+ }
+
+ /**
+ * Set the consortiumRole property: Gets the role of the member in the consortium.
+ *
+ * @param consortiumRole the consortiumRole value to set.
+ * @return the BlockchainMemberInner object itself.
+ */
+ public BlockchainMemberInner withConsortiumRole(String consortiumRole) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BlockchainMemberProperties();
+ }
+ this.innerProperties().withConsortiumRole(consortiumRole);
+ return this;
+ }
+
+ /**
+ * Get the consortiumMemberDisplayName property: Gets the display name of the member in the consortium.
+ *
+ * @return the consortiumMemberDisplayName value.
+ */
+ public String consortiumMemberDisplayName() {
+ return this.innerProperties() == null ? null : this.innerProperties().consortiumMemberDisplayName();
+ }
+
+ /**
+ * Set the consortiumMemberDisplayName property: Gets the display name of the member in the consortium.
+ *
+ * @param consortiumMemberDisplayName the consortiumMemberDisplayName value to set.
+ * @return the BlockchainMemberInner object itself.
+ */
+ public BlockchainMemberInner withConsortiumMemberDisplayName(String consortiumMemberDisplayName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BlockchainMemberProperties();
+ }
+ this.innerProperties().withConsortiumMemberDisplayName(consortiumMemberDisplayName);
+ return this;
+ }
+
+ /**
+ * Get the rootContractAddress property: Gets the Ethereum root contract address of the blockchain.
+ *
+ * @return the rootContractAddress value.
+ */
+ public String rootContractAddress() {
+ return this.innerProperties() == null ? null : this.innerProperties().rootContractAddress();
+ }
+
+ /**
+ * Get the publicKey property: Gets the public key of the blockchain member (default transaction node).
+ *
+ * @return the publicKey value.
+ */
+ public String publicKey() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicKey();
+ }
+
+ /**
+ * Get the firewallRules property: Gets or sets firewall rules.
+ *
+ * @return the firewallRules value.
+ */
+ public List firewallRules() {
+ return this.innerProperties() == null ? null : this.innerProperties().firewallRules();
+ }
+
+ /**
+ * Set the firewallRules property: Gets or sets firewall rules.
+ *
+ * @param firewallRules the firewallRules value to set.
+ * @return the BlockchainMemberInner object itself.
+ */
+ public BlockchainMemberInner withFirewallRules(List firewallRules) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BlockchainMemberProperties();
+ }
+ this.innerProperties().withFirewallRules(firewallRules);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (sku() != null) {
+ sku().validate();
+ }
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/BlockchainMemberProperties.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/BlockchainMemberProperties.java
new file mode 100644
index 0000000000000..9e0cc07b68a74
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/BlockchainMemberProperties.java
@@ -0,0 +1,334 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.blockchain.models.BlockchainMemberNodesSku;
+import com.azure.resourcemanager.blockchain.models.BlockchainMemberProvisioningState;
+import com.azure.resourcemanager.blockchain.models.BlockchainProtocol;
+import com.azure.resourcemanager.blockchain.models.FirewallRule;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Payload of the blockchain member properties for a blockchain member. */
+@Fluent
+public final class BlockchainMemberProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(BlockchainMemberProperties.class);
+
+ /*
+ * Gets or sets the blockchain protocol.
+ */
+ @JsonProperty(value = "protocol")
+ private BlockchainProtocol protocol;
+
+ /*
+ * Gets or sets the blockchain validator nodes Sku.
+ */
+ @JsonProperty(value = "validatorNodesSku")
+ private BlockchainMemberNodesSku validatorNodesSku;
+
+ /*
+ * Gets or sets the blockchain member provision state.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private BlockchainMemberProvisioningState provisioningState;
+
+ /*
+ * Gets the dns endpoint of the blockchain member.
+ */
+ @JsonProperty(value = "dns", access = JsonProperty.Access.WRITE_ONLY)
+ private String dns;
+
+ /*
+ * Gets the auth user name of the blockchain member.
+ */
+ @JsonProperty(value = "userName", access = JsonProperty.Access.WRITE_ONLY)
+ private String username;
+
+ /*
+ * Sets the basic auth password of the blockchain member.
+ */
+ @JsonProperty(value = "password")
+ private String password;
+
+ /*
+ * Gets or sets the consortium for the blockchain member.
+ */
+ @JsonProperty(value = "consortium")
+ private String consortium;
+
+ /*
+ * Gets the managed consortium management account address.
+ */
+ @JsonProperty(value = "consortiumManagementAccountAddress", access = JsonProperty.Access.WRITE_ONLY)
+ private String consortiumManagementAccountAddress;
+
+ /*
+ * Sets the managed consortium management account password.
+ */
+ @JsonProperty(value = "consortiumManagementAccountPassword")
+ private String consortiumManagementAccountPassword;
+
+ /*
+ * Gets the role of the member in the consortium.
+ */
+ @JsonProperty(value = "consortiumRole")
+ private String consortiumRole;
+
+ /*
+ * Gets the display name of the member in the consortium.
+ */
+ @JsonProperty(value = "consortiumMemberDisplayName")
+ private String consortiumMemberDisplayName;
+
+ /*
+ * Gets the Ethereum root contract address of the blockchain.
+ */
+ @JsonProperty(value = "rootContractAddress", access = JsonProperty.Access.WRITE_ONLY)
+ private String rootContractAddress;
+
+ /*
+ * Gets the public key of the blockchain member (default transaction node).
+ */
+ @JsonProperty(value = "publicKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String publicKey;
+
+ /*
+ * Gets or sets firewall rules
+ */
+ @JsonProperty(value = "firewallRules")
+ private List firewallRules;
+
+ /**
+ * Get the protocol property: Gets or sets the blockchain protocol.
+ *
+ * @return the protocol value.
+ */
+ public BlockchainProtocol protocol() {
+ return this.protocol;
+ }
+
+ /**
+ * Set the protocol property: Gets or sets the blockchain protocol.
+ *
+ * @param protocol the protocol value to set.
+ * @return the BlockchainMemberProperties object itself.
+ */
+ public BlockchainMemberProperties withProtocol(BlockchainProtocol protocol) {
+ this.protocol = protocol;
+ return this;
+ }
+
+ /**
+ * Get the validatorNodesSku property: Gets or sets the blockchain validator nodes Sku.
+ *
+ * @return the validatorNodesSku value.
+ */
+ public BlockchainMemberNodesSku validatorNodesSku() {
+ return this.validatorNodesSku;
+ }
+
+ /**
+ * Set the validatorNodesSku property: Gets or sets the blockchain validator nodes Sku.
+ *
+ * @param validatorNodesSku the validatorNodesSku value to set.
+ * @return the BlockchainMemberProperties object itself.
+ */
+ public BlockchainMemberProperties withValidatorNodesSku(BlockchainMemberNodesSku validatorNodesSku) {
+ this.validatorNodesSku = validatorNodesSku;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Gets or sets the blockchain member provision state.
+ *
+ * @return the provisioningState value.
+ */
+ public BlockchainMemberProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the dns property: Gets the dns endpoint of the blockchain member.
+ *
+ * @return the dns value.
+ */
+ public String dns() {
+ return this.dns;
+ }
+
+ /**
+ * Get the username property: Gets the auth user name of the blockchain member.
+ *
+ * @return the username value.
+ */
+ public String username() {
+ return this.username;
+ }
+
+ /**
+ * Get the password property: Sets the basic auth password of the blockchain member.
+ *
+ * @return the password value.
+ */
+ public String password() {
+ return this.password;
+ }
+
+ /**
+ * Set the password property: Sets the basic auth password of the blockchain member.
+ *
+ * @param password the password value to set.
+ * @return the BlockchainMemberProperties object itself.
+ */
+ public BlockchainMemberProperties withPassword(String password) {
+ this.password = password;
+ return this;
+ }
+
+ /**
+ * Get the consortium property: Gets or sets the consortium for the blockchain member.
+ *
+ * @return the consortium value.
+ */
+ public String consortium() {
+ return this.consortium;
+ }
+
+ /**
+ * Set the consortium property: Gets or sets the consortium for the blockchain member.
+ *
+ * @param consortium the consortium value to set.
+ * @return the BlockchainMemberProperties object itself.
+ */
+ public BlockchainMemberProperties withConsortium(String consortium) {
+ this.consortium = consortium;
+ return this;
+ }
+
+ /**
+ * Get the consortiumManagementAccountAddress property: Gets the managed consortium management account address.
+ *
+ * @return the consortiumManagementAccountAddress value.
+ */
+ public String consortiumManagementAccountAddress() {
+ return this.consortiumManagementAccountAddress;
+ }
+
+ /**
+ * Get the consortiumManagementAccountPassword property: Sets the managed consortium management account password.
+ *
+ * @return the consortiumManagementAccountPassword value.
+ */
+ public String consortiumManagementAccountPassword() {
+ return this.consortiumManagementAccountPassword;
+ }
+
+ /**
+ * Set the consortiumManagementAccountPassword property: Sets the managed consortium management account password.
+ *
+ * @param consortiumManagementAccountPassword the consortiumManagementAccountPassword value to set.
+ * @return the BlockchainMemberProperties object itself.
+ */
+ public BlockchainMemberProperties withConsortiumManagementAccountPassword(
+ String consortiumManagementAccountPassword) {
+ this.consortiumManagementAccountPassword = consortiumManagementAccountPassword;
+ return this;
+ }
+
+ /**
+ * Get the consortiumRole property: Gets the role of the member in the consortium.
+ *
+ * @return the consortiumRole value.
+ */
+ public String consortiumRole() {
+ return this.consortiumRole;
+ }
+
+ /**
+ * Set the consortiumRole property: Gets the role of the member in the consortium.
+ *
+ * @param consortiumRole the consortiumRole value to set.
+ * @return the BlockchainMemberProperties object itself.
+ */
+ public BlockchainMemberProperties withConsortiumRole(String consortiumRole) {
+ this.consortiumRole = consortiumRole;
+ return this;
+ }
+
+ /**
+ * Get the consortiumMemberDisplayName property: Gets the display name of the member in the consortium.
+ *
+ * @return the consortiumMemberDisplayName value.
+ */
+ public String consortiumMemberDisplayName() {
+ return this.consortiumMemberDisplayName;
+ }
+
+ /**
+ * Set the consortiumMemberDisplayName property: Gets the display name of the member in the consortium.
+ *
+ * @param consortiumMemberDisplayName the consortiumMemberDisplayName value to set.
+ * @return the BlockchainMemberProperties object itself.
+ */
+ public BlockchainMemberProperties withConsortiumMemberDisplayName(String consortiumMemberDisplayName) {
+ this.consortiumMemberDisplayName = consortiumMemberDisplayName;
+ return this;
+ }
+
+ /**
+ * Get the rootContractAddress property: Gets the Ethereum root contract address of the blockchain.
+ *
+ * @return the rootContractAddress value.
+ */
+ public String rootContractAddress() {
+ return this.rootContractAddress;
+ }
+
+ /**
+ * Get the publicKey property: Gets the public key of the blockchain member (default transaction node).
+ *
+ * @return the publicKey value.
+ */
+ public String publicKey() {
+ return this.publicKey;
+ }
+
+ /**
+ * Get the firewallRules property: Gets or sets firewall rules.
+ *
+ * @return the firewallRules value.
+ */
+ public List firewallRules() {
+ return this.firewallRules;
+ }
+
+ /**
+ * Set the firewallRules property: Gets or sets firewall rules.
+ *
+ * @param firewallRules the firewallRules value to set.
+ * @return the BlockchainMemberProperties object itself.
+ */
+ public BlockchainMemberProperties withFirewallRules(List firewallRules) {
+ this.firewallRules = firewallRules;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (validatorNodesSku() != null) {
+ validatorNodesSku().validate();
+ }
+ if (firewallRules() != null) {
+ firewallRules().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/BlockchainMemberPropertiesUpdate.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/BlockchainMemberPropertiesUpdate.java
new file mode 100644
index 0000000000000..2756a4d4f66f5
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/BlockchainMemberPropertiesUpdate.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.blockchain.models.FirewallRule;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Update the payload of the blockchain member properties for a blockchain member. */
+@Fluent
+public final class BlockchainMemberPropertiesUpdate extends TransactionNodePropertiesUpdate {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(BlockchainMemberPropertiesUpdate.class);
+
+ /*
+ * Sets the managed consortium management account password.
+ */
+ @JsonProperty(value = "consortiumManagementAccountPassword")
+ private String consortiumManagementAccountPassword;
+
+ /**
+ * Get the consortiumManagementAccountPassword property: Sets the managed consortium management account password.
+ *
+ * @return the consortiumManagementAccountPassword value.
+ */
+ public String consortiumManagementAccountPassword() {
+ return this.consortiumManagementAccountPassword;
+ }
+
+ /**
+ * Set the consortiumManagementAccountPassword property: Sets the managed consortium management account password.
+ *
+ * @param consortiumManagementAccountPassword the consortiumManagementAccountPassword value to set.
+ * @return the BlockchainMemberPropertiesUpdate object itself.
+ */
+ public BlockchainMemberPropertiesUpdate withConsortiumManagementAccountPassword(
+ String consortiumManagementAccountPassword) {
+ this.consortiumManagementAccountPassword = consortiumManagementAccountPassword;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public BlockchainMemberPropertiesUpdate withPassword(String password) {
+ super.withPassword(password);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public BlockchainMemberPropertiesUpdate withFirewallRules(List firewallRules) {
+ super.withFirewallRules(firewallRules);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ConsortiumCollectionInner.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ConsortiumCollectionInner.java
new file mode 100644
index 0000000000000..f014c9703b96d
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ConsortiumCollectionInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.blockchain.models.Consortium;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Collection of the consortium payload. */
+@Fluent
+public final class ConsortiumCollectionInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ConsortiumCollectionInner.class);
+
+ /*
+ * Gets or sets the collection of consortiums.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: Gets or sets the collection of consortiums.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Gets or sets the collection of consortiums.
+ *
+ * @param value the value value to set.
+ * @return the ConsortiumCollectionInner object itself.
+ */
+ public ConsortiumCollectionInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ConsortiumMemberInner.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ConsortiumMemberInner.java
new file mode 100644
index 0000000000000..10c5f1c5cd270
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ConsortiumMemberInner.java
@@ -0,0 +1,207 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Consortium approval. */
+@Fluent
+public final class ConsortiumMemberInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ConsortiumMemberInner.class);
+
+ /*
+ * Gets the consortium member name.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Gets the consortium member display name.
+ */
+ @JsonProperty(value = "displayName")
+ private String displayName;
+
+ /*
+ * Gets the consortium member subscription id.
+ */
+ @JsonProperty(value = "subscriptionId")
+ private String subscriptionId;
+
+ /*
+ * Gets the consortium member role.
+ */
+ @JsonProperty(value = "role")
+ private String role;
+
+ /*
+ * Gets the consortium member status.
+ */
+ @JsonProperty(value = "status")
+ private String status;
+
+ /*
+ * Gets the consortium member join date.
+ */
+ @JsonProperty(value = "joinDate")
+ private OffsetDateTime joinDate;
+
+ /*
+ * Gets the consortium member modified date.
+ */
+ @JsonProperty(value = "dateModified")
+ private OffsetDateTime dateModified;
+
+ /**
+ * Get the name property: Gets the consortium member name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Gets the consortium member name.
+ *
+ * @param name the name value to set.
+ * @return the ConsortiumMemberInner object itself.
+ */
+ public ConsortiumMemberInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the displayName property: Gets the consortium member display name.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set the displayName property: Gets the consortium member display name.
+ *
+ * @param displayName the displayName value to set.
+ * @return the ConsortiumMemberInner object itself.
+ */
+ public ConsortiumMemberInner withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get the subscriptionId property: Gets the consortium member subscription id.
+ *
+ * @return the subscriptionId value.
+ */
+ public String subscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * Set the subscriptionId property: Gets the consortium member subscription id.
+ *
+ * @param subscriptionId the subscriptionId value to set.
+ * @return the ConsortiumMemberInner object itself.
+ */
+ public ConsortiumMemberInner withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /**
+ * Get the role property: Gets the consortium member role.
+ *
+ * @return the role value.
+ */
+ public String role() {
+ return this.role;
+ }
+
+ /**
+ * Set the role property: Gets the consortium member role.
+ *
+ * @param role the role value to set.
+ * @return the ConsortiumMemberInner object itself.
+ */
+ public ConsortiumMemberInner withRole(String role) {
+ this.role = role;
+ return this;
+ }
+
+ /**
+ * Get the status property: Gets the consortium member status.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Gets the consortium member status.
+ *
+ * @param status the status value to set.
+ * @return the ConsortiumMemberInner object itself.
+ */
+ public ConsortiumMemberInner withStatus(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the joinDate property: Gets the consortium member join date.
+ *
+ * @return the joinDate value.
+ */
+ public OffsetDateTime joinDate() {
+ return this.joinDate;
+ }
+
+ /**
+ * Set the joinDate property: Gets the consortium member join date.
+ *
+ * @param joinDate the joinDate value to set.
+ * @return the ConsortiumMemberInner object itself.
+ */
+ public ConsortiumMemberInner withJoinDate(OffsetDateTime joinDate) {
+ this.joinDate = joinDate;
+ return this;
+ }
+
+ /**
+ * Get the dateModified property: Gets the consortium member modified date.
+ *
+ * @return the dateModified value.
+ */
+ public OffsetDateTime dateModified() {
+ return this.dateModified;
+ }
+
+ /**
+ * Set the dateModified property: Gets the consortium member modified date.
+ *
+ * @param dateModified the dateModified value to set.
+ * @return the ConsortiumMemberInner object itself.
+ */
+ public ConsortiumMemberInner withDateModified(OffsetDateTime dateModified) {
+ this.dateModified = dateModified;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/NameAvailabilityInner.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/NameAvailabilityInner.java
new file mode 100644
index 0000000000000..ac7a1b684058b
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/NameAvailabilityInner.java
@@ -0,0 +1,103 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.blockchain.models.NameAvailabilityReason;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Name availability payload which is exposed in the response of the resource provider. */
+@Fluent
+public final class NameAvailabilityInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(NameAvailabilityInner.class);
+
+ /*
+ * Gets or sets the value indicating whether the name is available.
+ */
+ @JsonProperty(value = "nameAvailable")
+ private Boolean nameAvailable;
+
+ /*
+ * Gets or sets the message.
+ */
+ @JsonProperty(value = "message")
+ private String message;
+
+ /*
+ * Gets or sets the name availability reason.
+ */
+ @JsonProperty(value = "reason")
+ private NameAvailabilityReason reason;
+
+ /**
+ * Get the nameAvailable property: Gets or sets the value indicating whether the name is available.
+ *
+ * @return the nameAvailable value.
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Set the nameAvailable property: Gets or sets the value indicating whether the name is available.
+ *
+ * @param nameAvailable the nameAvailable value to set.
+ * @return the NameAvailabilityInner object itself.
+ */
+ public NameAvailabilityInner withNameAvailable(Boolean nameAvailable) {
+ this.nameAvailable = nameAvailable;
+ return this;
+ }
+
+ /**
+ * Get the message property: Gets or sets the message.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Set the message property: Gets or sets the message.
+ *
+ * @param message the message value to set.
+ * @return the NameAvailabilityInner object itself.
+ */
+ public NameAvailabilityInner withMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * Get the reason property: Gets or sets the name availability reason.
+ *
+ * @return the reason value.
+ */
+ public NameAvailabilityReason reason() {
+ return this.reason;
+ }
+
+ /**
+ * Set the reason property: Gets or sets the name availability reason.
+ *
+ * @param reason the reason value to set.
+ * @return the NameAvailabilityInner object itself.
+ */
+ public NameAvailabilityInner withReason(NameAvailabilityReason reason) {
+ this.reason = reason;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/OperationResultInner.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/OperationResultInner.java
new file mode 100644
index 0000000000000..e27d51147e274
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/OperationResultInner.java
@@ -0,0 +1,103 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Operation result payload which is exposed in the response of the resource provider. */
+@Fluent
+public final class OperationResultInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationResultInner.class);
+
+ /*
+ * Gets or sets the operation name.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Gets or sets the operation start time.
+ */
+ @JsonProperty(value = "startTime")
+ private OffsetDateTime startTime;
+
+ /*
+ * Gets or sets the operation end time.
+ */
+ @JsonProperty(value = "endTime")
+ private OffsetDateTime endTime;
+
+ /**
+ * Get the name property: Gets or sets the operation name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Gets or sets the operation name.
+ *
+ * @param name the name value to set.
+ * @return the OperationResultInner object itself.
+ */
+ public OperationResultInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the startTime property: Gets or sets the operation start time.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Set the startTime property: Gets or sets the operation start time.
+ *
+ * @param startTime the startTime value to set.
+ * @return the OperationResultInner object itself.
+ */
+ public OperationResultInner withStartTime(OffsetDateTime startTime) {
+ this.startTime = startTime;
+ return this;
+ }
+
+ /**
+ * Get the endTime property: Gets or sets the operation end time.
+ *
+ * @return the endTime value.
+ */
+ public OffsetDateTime endTime() {
+ return this.endTime;
+ }
+
+ /**
+ * Set the endTime property: Gets or sets the operation end time.
+ *
+ * @param endTime the endTime value to set.
+ * @return the OperationResultInner object itself.
+ */
+ public OperationResultInner withEndTime(OffsetDateTime endTime) {
+ this.endTime = endTime;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ResourceProviderOperationInner.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ResourceProviderOperationInner.java
new file mode 100644
index 0000000000000..6e2434e09e815
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ResourceProviderOperationInner.java
@@ -0,0 +1,133 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.blockchain.models.ResourceProviderOperationDisplay;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Operation payload which is exposed in the response of the resource provider. */
+@Fluent
+public final class ResourceProviderOperationInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceProviderOperationInner.class);
+
+ /*
+ * Gets or sets the origin.
+ */
+ @JsonProperty(value = "origin")
+ private String origin;
+
+ /*
+ * Gets or sets the operation name.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Gets or sets a value indicating whether the operation is a data action
+ * or not.
+ */
+ @JsonProperty(value = "isDataAction")
+ private Boolean isDataAction;
+
+ /*
+ * Gets or sets operation display
+ */
+ @JsonProperty(value = "display")
+ private ResourceProviderOperationDisplay display;
+
+ /**
+ * Get the origin property: Gets or sets the origin.
+ *
+ * @return the origin value.
+ */
+ public String origin() {
+ return this.origin;
+ }
+
+ /**
+ * Set the origin property: Gets or sets the origin.
+ *
+ * @param origin the origin value to set.
+ * @return the ResourceProviderOperationInner object itself.
+ */
+ public ResourceProviderOperationInner withOrigin(String origin) {
+ this.origin = origin;
+ return this;
+ }
+
+ /**
+ * Get the name property: Gets or sets the operation name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Gets or sets the operation name.
+ *
+ * @param name the name value to set.
+ * @return the ResourceProviderOperationInner object itself.
+ */
+ public ResourceProviderOperationInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the isDataAction property: Gets or sets a value indicating whether the operation is a data action or not.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Set the isDataAction property: Gets or sets a value indicating whether the operation is a data action or not.
+ *
+ * @param isDataAction the isDataAction value to set.
+ * @return the ResourceProviderOperationInner object itself.
+ */
+ public ResourceProviderOperationInner withIsDataAction(Boolean isDataAction) {
+ this.isDataAction = isDataAction;
+ return this;
+ }
+
+ /**
+ * Get the display property: Gets or sets operation display.
+ *
+ * @return the display value.
+ */
+ public ResourceProviderOperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: Gets or sets operation display.
+ *
+ * @param display the display value to set.
+ * @return the ResourceProviderOperationInner object itself.
+ */
+ public ResourceProviderOperationInner withDisplay(ResourceProviderOperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ResourceTypeSkuCollectionInner.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ResourceTypeSkuCollectionInner.java
new file mode 100644
index 0000000000000..3fc0005a8a307
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/ResourceTypeSkuCollectionInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.blockchain.models.ResourceTypeSku;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Collection of the resource type Sku. */
+@Fluent
+public final class ResourceTypeSkuCollectionInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceTypeSkuCollectionInner.class);
+
+ /*
+ * Gets or sets the collection of resource type Sku.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: Gets or sets the collection of resource type Sku.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Gets or sets the collection of resource type Sku.
+ *
+ * @param value the value value to set.
+ * @return the ResourceTypeSkuCollectionInner object itself.
+ */
+ public ResourceTypeSkuCollectionInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/TransactionNodeInner.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/TransactionNodeInner.java
new file mode 100644
index 0000000000000..35cab125c8dcf
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/TransactionNodeInner.java
@@ -0,0 +1,154 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.blockchain.models.FirewallRule;
+import com.azure.resourcemanager.blockchain.models.NodeProvisioningState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Payload of the transaction node which is the request/response of the resource provider. */
+@Fluent
+public final class TransactionNodeInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(TransactionNodeInner.class);
+
+ /*
+ * Gets or sets the transaction node location.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /*
+ * Gets or sets the blockchain member properties.
+ */
+ @JsonProperty(value = "properties")
+ private TransactionNodeProperties innerProperties;
+
+ /**
+ * Get the location property: Gets or sets the transaction node location.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location property: Gets or sets the transaction node location.
+ *
+ * @param location the location value to set.
+ * @return the TransactionNodeInner object itself.
+ */
+ public TransactionNodeInner withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: Gets or sets the blockchain member properties.
+ *
+ * @return the innerProperties value.
+ */
+ private TransactionNodeProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the provisioningState property: Gets or sets the blockchain member provision state.
+ *
+ * @return the provisioningState value.
+ */
+ public NodeProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the dns property: Gets or sets the transaction node dns endpoint.
+ *
+ * @return the dns value.
+ */
+ public String dns() {
+ return this.innerProperties() == null ? null : this.innerProperties().dns();
+ }
+
+ /**
+ * Get the publicKey property: Gets or sets the transaction node public key.
+ *
+ * @return the publicKey value.
+ */
+ public String publicKey() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicKey();
+ }
+
+ /**
+ * Get the username property: Gets or sets the transaction node dns endpoint basic auth user name.
+ *
+ * @return the username value.
+ */
+ public String username() {
+ return this.innerProperties() == null ? null : this.innerProperties().username();
+ }
+
+ /**
+ * Get the password property: Sets the transaction node dns endpoint basic auth password.
+ *
+ * @return the password value.
+ */
+ public String password() {
+ return this.innerProperties() == null ? null : this.innerProperties().password();
+ }
+
+ /**
+ * Set the password property: Sets the transaction node dns endpoint basic auth password.
+ *
+ * @param password the password value to set.
+ * @return the TransactionNodeInner object itself.
+ */
+ public TransactionNodeInner withPassword(String password) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new TransactionNodeProperties();
+ }
+ this.innerProperties().withPassword(password);
+ return this;
+ }
+
+ /**
+ * Get the firewallRules property: Gets or sets the firewall rules.
+ *
+ * @return the firewallRules value.
+ */
+ public List firewallRules() {
+ return this.innerProperties() == null ? null : this.innerProperties().firewallRules();
+ }
+
+ /**
+ * Set the firewallRules property: Gets or sets the firewall rules.
+ *
+ * @param firewallRules the firewallRules value to set.
+ * @return the TransactionNodeInner object itself.
+ */
+ public TransactionNodeInner withFirewallRules(List firewallRules) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new TransactionNodeProperties();
+ }
+ this.innerProperties().withFirewallRules(firewallRules);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/TransactionNodeProperties.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/TransactionNodeProperties.java
new file mode 100644
index 0000000000000..28fb72268e64f
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/TransactionNodeProperties.java
@@ -0,0 +1,142 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.blockchain.models.FirewallRule;
+import com.azure.resourcemanager.blockchain.models.NodeProvisioningState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Payload of transaction node properties payload in the transaction node payload. */
+@Fluent
+public final class TransactionNodeProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(TransactionNodeProperties.class);
+
+ /*
+ * Gets or sets the blockchain member provision state.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private NodeProvisioningState provisioningState;
+
+ /*
+ * Gets or sets the transaction node dns endpoint.
+ */
+ @JsonProperty(value = "dns", access = JsonProperty.Access.WRITE_ONLY)
+ private String dns;
+
+ /*
+ * Gets or sets the transaction node public key.
+ */
+ @JsonProperty(value = "publicKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String publicKey;
+
+ /*
+ * Gets or sets the transaction node dns endpoint basic auth user name.
+ */
+ @JsonProperty(value = "userName", access = JsonProperty.Access.WRITE_ONLY)
+ private String username;
+
+ /*
+ * Sets the transaction node dns endpoint basic auth password.
+ */
+ @JsonProperty(value = "password")
+ private String password;
+
+ /*
+ * Gets or sets the firewall rules.
+ */
+ @JsonProperty(value = "firewallRules")
+ private List firewallRules;
+
+ /**
+ * Get the provisioningState property: Gets or sets the blockchain member provision state.
+ *
+ * @return the provisioningState value.
+ */
+ public NodeProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the dns property: Gets or sets the transaction node dns endpoint.
+ *
+ * @return the dns value.
+ */
+ public String dns() {
+ return this.dns;
+ }
+
+ /**
+ * Get the publicKey property: Gets or sets the transaction node public key.
+ *
+ * @return the publicKey value.
+ */
+ public String publicKey() {
+ return this.publicKey;
+ }
+
+ /**
+ * Get the username property: Gets or sets the transaction node dns endpoint basic auth user name.
+ *
+ * @return the username value.
+ */
+ public String username() {
+ return this.username;
+ }
+
+ /**
+ * Get the password property: Sets the transaction node dns endpoint basic auth password.
+ *
+ * @return the password value.
+ */
+ public String password() {
+ return this.password;
+ }
+
+ /**
+ * Set the password property: Sets the transaction node dns endpoint basic auth password.
+ *
+ * @param password the password value to set.
+ * @return the TransactionNodeProperties object itself.
+ */
+ public TransactionNodeProperties withPassword(String password) {
+ this.password = password;
+ return this;
+ }
+
+ /**
+ * Get the firewallRules property: Gets or sets the firewall rules.
+ *
+ * @return the firewallRules value.
+ */
+ public List firewallRules() {
+ return this.firewallRules;
+ }
+
+ /**
+ * Set the firewallRules property: Gets or sets the firewall rules.
+ *
+ * @param firewallRules the firewallRules value to set.
+ * @return the TransactionNodeProperties object itself.
+ */
+ public TransactionNodeProperties withFirewallRules(List firewallRules) {
+ this.firewallRules = firewallRules;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (firewallRules() != null) {
+ firewallRules().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/TransactionNodePropertiesUpdate.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/TransactionNodePropertiesUpdate.java
new file mode 100644
index 0000000000000..428695079e504
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/TransactionNodePropertiesUpdate.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.blockchain.models.FirewallRule;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Update the payload of the transaction node properties in the transaction node payload. */
+@Fluent
+public class TransactionNodePropertiesUpdate {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(TransactionNodePropertiesUpdate.class);
+
+ /*
+ * Sets the transaction node dns endpoint basic auth password.
+ */
+ @JsonProperty(value = "password")
+ private String password;
+
+ /*
+ * Gets or sets the firewall rules.
+ */
+ @JsonProperty(value = "firewallRules")
+ private List firewallRules;
+
+ /**
+ * Get the password property: Sets the transaction node dns endpoint basic auth password.
+ *
+ * @return the password value.
+ */
+ public String password() {
+ return this.password;
+ }
+
+ /**
+ * Set the password property: Sets the transaction node dns endpoint basic auth password.
+ *
+ * @param password the password value to set.
+ * @return the TransactionNodePropertiesUpdate object itself.
+ */
+ public TransactionNodePropertiesUpdate withPassword(String password) {
+ this.password = password;
+ return this;
+ }
+
+ /**
+ * Get the firewallRules property: Gets or sets the firewall rules.
+ *
+ * @return the firewallRules value.
+ */
+ public List firewallRules() {
+ return this.firewallRules;
+ }
+
+ /**
+ * Set the firewallRules property: Gets or sets the firewall rules.
+ *
+ * @param firewallRules the firewallRules value to set.
+ * @return the TransactionNodePropertiesUpdate object itself.
+ */
+ public TransactionNodePropertiesUpdate withFirewallRules(List firewallRules) {
+ this.firewallRules = firewallRules;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (firewallRules() != null) {
+ firewallRules().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/package-info.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/package-info.java
new file mode 100644
index 0000000000000..06451f36ccb87
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/models/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the inner data models for BlockchainManagementClient. REST API for Azure Blockchain Service. */
+package com.azure.resourcemanager.blockchain.fluent.models;
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/package-info.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/package-info.java
new file mode 100644
index 0000000000000..fe5535b55fb48
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/fluent/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the service clients for BlockchainManagementClient. REST API for Azure Blockchain Service. */
+package com.azure.resourcemanager.blockchain.fluent;
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/implementation/ApiKeyCollectionImpl.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/implementation/ApiKeyCollectionImpl.java
new file mode 100644
index 0000000000000..25ab1dfa4fd6a
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/implementation/ApiKeyCollectionImpl.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.implementation;
+
+import com.azure.resourcemanager.blockchain.fluent.models.ApiKeyCollectionInner;
+import com.azure.resourcemanager.blockchain.models.ApiKey;
+import com.azure.resourcemanager.blockchain.models.ApiKeyCollection;
+import java.util.Collections;
+import java.util.List;
+
+public final class ApiKeyCollectionImpl implements ApiKeyCollection {
+ private ApiKeyCollectionInner innerObject;
+
+ private final com.azure.resourcemanager.blockchain.BlockchainManager serviceManager;
+
+ ApiKeyCollectionImpl(
+ ApiKeyCollectionInner innerObject, com.azure.resourcemanager.blockchain.BlockchainManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List keys() {
+ List inner = this.innerModel().keys();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ApiKeyCollectionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.blockchain.BlockchainManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/implementation/BlockchainManagementClientBuilder.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/implementation/BlockchainManagementClientBuilder.java
new file mode 100644
index 0000000000000..7e1a6dae58d50
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/implementation/BlockchainManagementClientBuilder.java
@@ -0,0 +1,149 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.CookiePolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/** A builder for creating a new instance of the BlockchainManagementClientImpl type. */
+@ServiceClientBuilder(serviceClients = {BlockchainManagementClientImpl.class})
+public final class BlockchainManagementClientBuilder {
+ /*
+ * Gets the subscription Id which uniquely identifies the Microsoft Azure
+ * subscription. The subscription ID is part of the URI for every service
+ * call.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is
+ * part of the URI for every service call.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the BlockchainManagementClientBuilder.
+ */
+ public BlockchainManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the BlockchainManagementClientBuilder.
+ */
+ public BlockchainManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the BlockchainManagementClientBuilder.
+ */
+ public BlockchainManagementClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the BlockchainManagementClientBuilder.
+ */
+ public BlockchainManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the BlockchainManagementClientBuilder.
+ */
+ public BlockchainManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the BlockchainManagementClientBuilder.
+ */
+ public BlockchainManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of BlockchainManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of BlockchainManagementClientImpl.
+ */
+ public BlockchainManagementClientImpl buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (defaultPollInterval == null) {
+ this.defaultPollInterval = Duration.ofSeconds(30);
+ }
+ if (pipeline == null) {
+ this.pipeline =
+ new HttpPipelineBuilder()
+ .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
+ .build();
+ }
+ if (serializerAdapter == null) {
+ this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
+ }
+ BlockchainManagementClientImpl client =
+ new BlockchainManagementClientImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/implementation/BlockchainManagementClientImpl.java b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/implementation/BlockchainManagementClientImpl.java
new file mode 100644
index 0000000000000..2d01b35ba1823
--- /dev/null
+++ b/sdk/blockchain/azure-resourcemanager-blockchain/src/main/java/com/azure/resourcemanager/blockchain/implementation/BlockchainManagementClientImpl.java
@@ -0,0 +1,368 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.blockchain.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.blockchain.fluent.BlockchainManagementClient;
+import com.azure.resourcemanager.blockchain.fluent.BlockchainMemberOperationResultsClient;
+import com.azure.resourcemanager.blockchain.fluent.BlockchainMembersClient;
+import com.azure.resourcemanager.blockchain.fluent.LocationsClient;
+import com.azure.resourcemanager.blockchain.fluent.OperationsClient;
+import com.azure.resourcemanager.blockchain.fluent.SkusClient;
+import com.azure.resourcemanager.blockchain.fluent.TransactionNodesClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Map;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the BlockchainManagementClientImpl type. */
+@ServiceClient(builder = BlockchainManagementClientBuilder.class)
+public final class BlockchainManagementClientImpl implements BlockchainManagementClient {
+ private final ClientLogger logger = new ClientLogger(BlockchainManagementClientImpl.class);
+
+ /**
+ * Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part
+ * of the URI for every service call.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is
+ * part of the URI for every service call.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The serializer to serialize an object into a string. */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /** The default poll interval for long-running operation. */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /** The BlockchainMembersClient object to access its operations. */
+ private final BlockchainMembersClient blockchainMembers;
+
+ /**
+ * Gets the BlockchainMembersClient object to access its operations.
+ *
+ * @return the BlockchainMembersClient object.
+ */
+ public BlockchainMembersClient getBlockchainMembers() {
+ return this.blockchainMembers;
+ }
+
+ /** The BlockchainMemberOperationResultsClient object to access its operations. */
+ private final BlockchainMemberOperationResultsClient blockchainMemberOperationResults;
+
+ /**
+ * Gets the BlockchainMemberOperationResultsClient object to access its operations.
+ *
+ * @return the BlockchainMemberOperationResultsClient object.
+ */
+ public BlockchainMemberOperationResultsClient getBlockchainMemberOperationResults() {
+ return this.blockchainMemberOperationResults;
+ }
+
+ /** The LocationsClient object to access its operations. */
+ private final LocationsClient locations;
+
+ /**
+ * Gets the LocationsClient object to access its operations.
+ *
+ * @return the LocationsClient object.
+ */
+ public LocationsClient getLocations() {
+ return this.locations;
+ }
+
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /** The SkusClient object to access its operations. */
+ private final SkusClient skus;
+
+ /**
+ * Gets the SkusClient object to access its operations.
+ *
+ * @return the SkusClient object.
+ */
+ public SkusClient getSkus() {
+ return this.skus;
+ }
+
+ /** The TransactionNodesClient object to access its operations. */
+ private final TransactionNodesClient transactionNodes;
+
+ /**
+ * Gets the TransactionNodesClient object to access its operations.
+ *
+ * @return the TransactionNodesClient object.
+ */
+ public TransactionNodesClient getTransactionNodes() {
+ return this.transactionNodes;
+ }
+
+ /**
+ * Initializes an instance of BlockchainManagementClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param subscriptionId Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The
+ * subscription ID is part of the URI for every service call.
+ * @param endpoint server parameter.
+ */
+ BlockchainManagementClientImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String subscriptionId,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2018-06-01-preview";
+ this.blockchainMembers = new BlockchainMembersClientImpl(this);
+ this.blockchainMemberOperationResults = new BlockchainMemberOperationResultsClientImpl(this);
+ this.locations = new LocationsClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
+ this.skus = new SkusClientImpl(this);
+ this.transactionNodes = new TransactionNodesClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ for (Map.Entry