diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 45ef90cd522d..887fd4eae9b2 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -294,7 +294,7 @@ com.azure.resourcemanager:azure-resourcemanager-kusto;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-loganalytics;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-eventgrid;1.1.0;1.2.0-beta.6
com.azure.resourcemanager:azure-resourcemanager-healthbot;1.0.0-beta.2;1.0.0-beta.3
-com.azure.resourcemanager:azure-resourcemanager-confluent;1.0.0;1.1.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-confluent;1.0.0;1.1.0
com.azure.resourcemanager:azure-resourcemanager-digitaltwins;1.2.0;1.3.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-netapp;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-storagecache;1.0.0-beta.10;1.0.0-beta.11
diff --git a/sdk/confluent/azure-resourcemanager-confluent/CHANGELOG.md b/sdk/confluent/azure-resourcemanager-confluent/CHANGELOG.md
index d5ff86bfffb2..2d16089ea59c 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/CHANGELOG.md
+++ b/sdk/confluent/azure-resourcemanager-confluent/CHANGELOG.md
@@ -1,14 +1,93 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.1.0 (2024-03-21)
+
+- Azure Resource Manager Confluent client library for Java. This package contains Microsoft Azure SDK for Confluent Management SDK. Package tag package-2024-02. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
-### Breaking Changes
+* `models.SCMetadataEntity` was added
+
+* `models.ApiKeyResourceEntity` was added
+
+* `models.SchemaRegistryClusterRecord` was added
+
+* `models.ListSchemaRegistryClustersResponse` was added
+
+* `models.GetEnvironmentsResponse` was added
+
+* `models.ApiKeyRecord` was added
+
+* `models.AccessRoleBindingNameListSuccessResponse` was added
+
+* `models.SchemaRegistryClusterSpecEntity` was added
+
+* `models.ListRegionsSuccessResponse` was added
+
+* `models.SCEnvironmentRecord` was added
+
+* `models.RegionRecord` was added
+
+* `models.CreateApiKeyModel` was added
+
+* `models.SCClusterSpecEntity` was added
+
+* `models.RegionSpecEntity` was added
-### Bugs Fixed
+* `models.ListClustersSuccessResponse` was added
+
+* `models.SchemaRegistryClusterStatusEntity` was added
+
+* `models.SCClusterRecord` was added
+
+* `models.SCClusterByokEntity` was added
+
+* `models.SCClusterNetworkEnvironmentEntity` was added
+
+* `models.ApiKeyOwnerEntity` was added
+
+* `models.SchemaRegistryClusterEnvironmentRegionEntity` was added
+
+* `models.AccessCreateRoleBindingRequestModel` was added
+
+* `models.ApiKeySpecEntity` was added
+
+#### `models.Organizations` was modified
+
+* `listEnvironments(java.lang.String,java.lang.String)` was added
+* `deleteClusterApiKeyWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `getClusterApiKey(java.lang.String,java.lang.String,java.lang.String)` was added
+* `getSchemaRegistryClusterById(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` was added
+* `listSchemaRegistryClusters(java.lang.String,java.lang.String,java.lang.String)` was added
+* `getSchemaRegistryClusterByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `listClusters(java.lang.String,java.lang.String,java.lang.String)` was added
+* `deleteClusterApiKey(java.lang.String,java.lang.String,java.lang.String)` was added
+* `createApiKey(java.lang.String,java.lang.String,java.lang.String,java.lang.String,models.CreateApiKeyModel)` was added
+* `listEnvironments(java.lang.String,java.lang.String,java.lang.Integer,java.lang.String,com.azure.core.util.Context)` was added
+* `getClusterByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `createApiKeyWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,models.CreateApiKeyModel,com.azure.core.util.Context)` was added
+* `listRegions(java.lang.String,java.lang.String,models.ListAccessRequestModel)` was added
+* `listSchemaRegistryClusters(java.lang.String,java.lang.String,java.lang.String,java.lang.Integer,java.lang.String,com.azure.core.util.Context)` was added
+* `getClusterApiKeyWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `listRegionsWithResponse(java.lang.String,java.lang.String,models.ListAccessRequestModel,com.azure.core.util.Context)` was added
+* `getEnvironmentById(java.lang.String,java.lang.String,java.lang.String)` was added
+* `getClusterById(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` was added
+* `listClusters(java.lang.String,java.lang.String,java.lang.String,java.lang.Integer,java.lang.String,com.azure.core.util.Context)` was added
+* `getEnvironmentByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.Access` was modified
+
+* `createRoleBinding(java.lang.String,java.lang.String,models.AccessCreateRoleBindingRequestModel)` was added
+* `listRoleBindingNameList(java.lang.String,java.lang.String,models.ListAccessRequestModel)` was added
+* `listRoleBindingNameListWithResponse(java.lang.String,java.lang.String,models.ListAccessRequestModel,com.azure.core.util.Context)` was added
+* `deleteRoleBinding(java.lang.String,java.lang.String,java.lang.String)` was added
+* `createRoleBindingWithResponse(java.lang.String,java.lang.String,models.AccessCreateRoleBindingRequestModel,com.azure.core.util.Context)` was added
+* `deleteRoleBindingWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.OrganizationResource` was modified
-### Other Changes
+* `listRegionsWithResponse(models.ListAccessRequestModel,com.azure.core.util.Context)` was added
+* `listRegions(models.ListAccessRequestModel)` was added
## 1.0.0 (2023-11-16)
diff --git a/sdk/confluent/azure-resourcemanager-confluent/README.md b/sdk/confluent/azure-resourcemanager-confluent/README.md
index 6c0e2371f61d..3f402eccfcf1 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/README.md
+++ b/sdk/confluent/azure-resourcemanager-confluent/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager Confluent client library for Java.
-This package contains Microsoft Azure SDK for Confluent Management SDK. Package tag package-2023-08-22. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for Confluent Management SDK. Package tag package-2024-02. 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
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-confluent
- 1.0.0
+ 1.1.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/confluent/azure-resourcemanager-confluent/SAMPLE.md b/sdk/confluent/azure-resourcemanager-confluent/SAMPLE.md
index 9b80dd14cff5..8874bf6c0efb 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/SAMPLE.md
+++ b/sdk/confluent/azure-resourcemanager-confluent/SAMPLE.md
@@ -3,10 +3,13 @@
## Access
+- [CreateRoleBinding](#access_createrolebinding)
+- [DeleteRoleBinding](#access_deleterolebinding)
- [InviteUser](#access_inviteuser)
- [ListClusters](#access_listclusters)
- [ListEnvironments](#access_listenvironments)
- [ListInvitations](#access_listinvitations)
+- [ListRoleBindingNameList](#access_listrolebindingnamelist)
- [ListRoleBindings](#access_listrolebindings)
- [ListServiceAccounts](#access_listserviceaccounts)
- [ListUsers](#access_listusers)
@@ -19,10 +22,20 @@
## Organization
- [Create](#organization_create)
+- [CreateApiKey](#organization_createapikey)
- [Delete](#organization_delete)
+- [DeleteClusterApiKey](#organization_deleteclusterapikey)
- [GetByResourceGroup](#organization_getbyresourcegroup)
+- [GetClusterApiKey](#organization_getclusterapikey)
+- [GetClusterById](#organization_getclusterbyid)
+- [GetEnvironmentById](#organization_getenvironmentbyid)
+- [GetSchemaRegistryClusterById](#organization_getschemaregistryclusterbyid)
- [List](#organization_list)
- [ListByResourceGroup](#organization_listbyresourcegroup)
+- [ListClusters](#organization_listclusters)
+- [ListEnvironments](#organization_listenvironments)
+- [ListRegions](#organization_listregions)
+- [ListSchemaRegistryClusters](#organization_listschemaregistryclusters)
- [Update](#organization_update)
## OrganizationOperations
@@ -33,18 +46,72 @@
- [ValidateOrganization](#validations_validateorganization)
- [ValidateOrganizationV2](#validations_validateorganizationv2)
+### Access_CreateRoleBinding
+
+```java
+import com.azure.resourcemanager.confluent.models.AccessCreateRoleBindingRequestModel;
+
+/**
+ * Samples for Access CreateRoleBinding.
+ */
+public final class AccessCreateRoleBindingSamples {
+ /*
+ * x-ms-original-file:
+ * specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_CreateRoleBinding.
+ * json
+ */
+ /**
+ * Sample code: Access_CreateRoleBinding.
+ *
+ * @param manager Entry point to ConfluentManager.
+ */
+ public static void accessCreateRoleBinding(com.azure.resourcemanager.confluent.ConfluentManager manager) {
+ manager.access().createRoleBindingWithResponse("myResourceGroup", "myOrganization",
+ new AccessCreateRoleBindingRequestModel().withPrincipal("User:u-111aaa").withRoleName("CloudClusterAdmin")
+ .withCrnPattern(
+ "crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-aaa1111/cloud-cluster=lkc-1111aaa"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Access_DeleteRoleBinding
+
+```java
+/**
+ * Samples for Access DeleteRoleBinding.
+ */
+public final class AccessDeleteRoleBindingSamples {
+ /*
+ * x-ms-original-file:
+ * specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_DeleteRoleBinding.
+ * json
+ */
+ /**
+ * Sample code: Access_DeleteRoleBinding.
+ *
+ * @param manager Entry point to ConfluentManager.
+ */
+ public static void accessDeleteRoleBinding(com.azure.resourcemanager.confluent.ConfluentManager manager) {
+ manager.access().deleteRoleBindingWithResponse("myResourceGroup", "myOrganization", "dlz-f3a90de",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Access_InviteUser
```java
-import com.azure.resourcemanager.confluent.models.AccessInvitedUserDetails;
import com.azure.resourcemanager.confluent.models.AccessInviteUserAccountModel;
+import com.azure.resourcemanager.confluent.models.AccessInvitedUserDetails;
/**
* Samples for Access InviteUser.
*/
public final class AccessInviteUserSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InviteUser.json
+ * x-ms-original-file:
+ * specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InviteUser.json
*/
/**
* Sample code: Access_InviteUser.
@@ -52,7 +119,10 @@ public final class AccessInviteUserSamples {
* @param manager Entry point to ConfluentManager.
*/
public static void accessInviteUser(com.azure.resourcemanager.confluent.ConfluentManager manager) {
- manager.access().inviteUserWithResponse("myResourceGroup", "myOrganization", new AccessInviteUserAccountModel().withInvitedUserDetails(new AccessInvitedUserDetails().withInvitedEmail("user2@onmicrosoft.com").withAuthType("AUTH_TYPE_SSO")), com.azure.core.util.Context.NONE);
+ manager.access().inviteUserWithResponse("myResourceGroup", "myOrganization",
+ new AccessInviteUserAccountModel().withInvitedUserDetails(
+ new AccessInvitedUserDetails().withInvitedEmail("user2@onmicrosoft.com").withAuthType("AUTH_TYPE_SSO")),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -69,7 +139,8 @@ import java.util.Map;
*/
public final class AccessListClustersSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ClusterList.json
+ * x-ms-original-file:
+ * specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ClusterList.json
*/
/**
* Sample code: Access_ClusterList.
@@ -77,7 +148,10 @@ public final class AccessListClustersSamples {
* @param manager Entry point to ConfluentManager.
*/
public static void accessClusterList(com.azure.resourcemanager.confluent.ConfluentManager manager) {
- manager.access().listClustersWithResponse("myResourceGroup", "myOrganization", new ListAccessRequestModel().withSearchFilters(mapOf("pageSize", "10", "pageToken", "fakeTokenPlaceholder")), com.azure.core.util.Context.NONE);
+ manager.access()
+ .listClustersWithResponse("myResourceGroup", "myOrganization", new ListAccessRequestModel()
+ .withSearchFilters(mapOf("pageSize", "10", "pageToken", "fakeTokenPlaceholder")),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -106,7 +180,9 @@ import java.util.Map;
*/
public final class AccessListEnvironmentsSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_EnvironmentList.json
+ * x-ms-original-file:
+ * specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_EnvironmentList.
+ * json
*/
/**
* Sample code: Access_EnvironmentList.
@@ -114,7 +190,10 @@ public final class AccessListEnvironmentsSamples {
* @param manager Entry point to ConfluentManager.
*/
public static void accessEnvironmentList(com.azure.resourcemanager.confluent.ConfluentManager manager) {
- manager.access().listEnvironmentsWithResponse("myResourceGroup", "myOrganization", new ListAccessRequestModel().withSearchFilters(mapOf("pageSize", "10", "pageToken", "fakeTokenPlaceholder")), com.azure.core.util.Context.NONE);
+ manager.access()
+ .listEnvironmentsWithResponse("myResourceGroup", "myOrganization", new ListAccessRequestModel()
+ .withSearchFilters(mapOf("pageSize", "10", "pageToken", "fakeTokenPlaceholder")),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -143,7 +222,9 @@ import java.util.Map;
*/
public final class AccessListInvitationsSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InvitationsList.json
+ * x-ms-original-file:
+ * specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InvitationsList.
+ * json
*/
/**
* Sample code: Access_InvitationsList.
@@ -151,7 +232,52 @@ public final class AccessListInvitationsSamples {
* @param manager Entry point to ConfluentManager.
*/
public static void accessInvitationsList(com.azure.resourcemanager.confluent.ConfluentManager manager) {
- manager.access().listInvitationsWithResponse("myResourceGroup", "myOrganization", new ListAccessRequestModel().withSearchFilters(mapOf("pageSize", "10", "pageToken", "fakeTokenPlaceholder", "status", "INVITE_STATUS_SENT")), com.azure.core.util.Context.NONE);
+ manager.access().listInvitationsWithResponse("myResourceGroup", "myOrganization",
+ new ListAccessRequestModel().withSearchFilters(
+ mapOf("pageSize", "10", "pageToken", "fakeTokenPlaceholder", "status", "INVITE_STATUS_SENT")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Access_ListRoleBindingNameList
+
+```java
+import com.azure.resourcemanager.confluent.models.ListAccessRequestModel;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Access ListRoleBindingNameList.
+ */
+public final class AccessListRoleBindingNameListSamples {
+ /*
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * Access_RoleBindingNameList.json
+ */
+ /**
+ * Sample code: Access_RoleBindingNameList.
+ *
+ * @param manager Entry point to ConfluentManager.
+ */
+ public static void accessRoleBindingNameList(com.azure.resourcemanager.confluent.ConfluentManager manager) {
+ manager.access().listRoleBindingNameListWithResponse("myResourceGroup", "myOrganization",
+ new ListAccessRequestModel().withSearchFilters(mapOf("crn_pattern",
+ "crn://confluent.cloud/organization=1aa7de07-298e-479c-8f2f-16ac91fd8e76", "namespace",
+ "public,dataplane,networking,identity,datagovernance,connect,streamcatalog,pipelines,ksql")),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -180,7 +306,9 @@ import java.util.Map;
*/
public final class AccessListRoleBindingsSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_RoleBindingList.json
+ * x-ms-original-file:
+ * specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingList.
+ * json
*/
/**
* Sample code: Access_RoleBindingList.
@@ -188,7 +316,10 @@ public final class AccessListRoleBindingsSamples {
* @param manager Entry point to ConfluentManager.
*/
public static void accessRoleBindingList(com.azure.resourcemanager.confluent.ConfluentManager manager) {
- manager.access().listRoleBindingsWithResponse("myResourceGroup", "myOrganization", new ListAccessRequestModel().withSearchFilters(mapOf("pageSize", "10", "pageToken", "fakeTokenPlaceholder")), com.azure.core.util.Context.NONE);
+ manager.access()
+ .listRoleBindingsWithResponse("myResourceGroup", "myOrganization", new ListAccessRequestModel()
+ .withSearchFilters(mapOf("pageSize", "10", "pageToken", "fakeTokenPlaceholder")),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -217,7 +348,8 @@ import java.util.Map;
*/
public final class AccessListServiceAccountsSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ServiceAccountsList.json
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * Access_ServiceAccountsList.json
*/
/**
* Sample code: Access_ServiceAccountsList.
@@ -225,7 +357,10 @@ public final class AccessListServiceAccountsSamples {
* @param manager Entry point to ConfluentManager.
*/
public static void accessServiceAccountsList(com.azure.resourcemanager.confluent.ConfluentManager manager) {
- manager.access().listServiceAccountsWithResponse("myResourceGroup", "myOrganization", new ListAccessRequestModel().withSearchFilters(mapOf("pageSize", "10", "pageToken", "fakeTokenPlaceholder")), com.azure.core.util.Context.NONE);
+ manager.access()
+ .listServiceAccountsWithResponse("myResourceGroup", "myOrganization", new ListAccessRequestModel()
+ .withSearchFilters(mapOf("pageSize", "10", "pageToken", "fakeTokenPlaceholder")),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -254,7 +389,8 @@ import java.util.Map;
*/
public final class AccessListUsersSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_UsersList.json
+ * x-ms-original-file:
+ * specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_UsersList.json
*/
/**
* Sample code: Access_UsersList.
@@ -262,7 +398,9 @@ public final class AccessListUsersSamples {
* @param manager Entry point to ConfluentManager.
*/
public static void accessUsersList(com.azure.resourcemanager.confluent.ConfluentManager manager) {
- manager.access().listUsersWithResponse("myResourceGroup", "myOrganization", new ListAccessRequestModel().withSearchFilters(mapOf("pageSize", "10", "pageToken", "fakeTokenPlaceholder")), com.azure.core.util.Context.NONE);
+ manager.access().listUsersWithResponse("myResourceGroup", "myOrganization", new ListAccessRequestModel()
+ .withSearchFilters(mapOf("pageSize", "10", "pageToken", "fakeTokenPlaceholder")),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -282,14 +420,14 @@ public final class AccessListUsersSamples {
### MarketplaceAgreements_Create
```java
-import com.azure.resourcemanager.confluent.fluent.models.ConfluentAgreementResourceInner;
/**
* Samples for MarketplaceAgreements Create.
*/
public final class MarketplaceAgreementsCreateSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_Create.json
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * MarketplaceAgreements_Create.json
*/
/**
* Sample code: MarketplaceAgreements_Create.
@@ -310,7 +448,8 @@ public final class MarketplaceAgreementsCreateSamples {
*/
public final class MarketplaceAgreementsListSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_List.json
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * MarketplaceAgreements_List.json
*/
/**
* Sample code: MarketplaceAgreements_List.
@@ -338,7 +477,8 @@ import java.util.Map;
*/
public final class OrganizationCreateSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Create.json
+ * x-ms-original-file:
+ * specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Create.json
*/
/**
* Sample code: Organization_Create.
@@ -346,7 +486,16 @@ public final class OrganizationCreateSamples {
* @param manager Entry point to ConfluentManager.
*/
public static void organizationCreate(com.azure.resourcemanager.confluent.ConfluentManager manager) {
- manager.organizations().define("myOrganization").withRegion("West US").withExistingResourceGroup("myResourceGroup").withOfferDetail(new OfferDetail().withPublisherId("string").withId("string").withPlanId("string").withPlanName("string").withTermUnit("string").withPrivateOfferId("string").withPrivateOfferIds(Arrays.asList("string"))).withUserDetail(new UserDetail().withFirstName("string").withLastName("string").withEmailAddress("contoso@microsoft.com").withUserPrincipalName("contoso@microsoft.com").withAadEmail("contoso@microsoft.com")).withTags(mapOf("Environment", "Dev")).withLinkOrganization(new LinkOrganization().withToken("fakeTokenPlaceholder")).create();
+ manager.organizations().define("myOrganization").withRegion("West US")
+ .withExistingResourceGroup("myResourceGroup")
+ .withOfferDetail(
+ new OfferDetail().withPublisherId("string").withId("string").withPlanId("string").withPlanName("string")
+ .withTermUnit("string").withPrivateOfferId("string").withPrivateOfferIds(Arrays.asList("string")))
+ .withUserDetail(new UserDetail().withFirstName("string").withLastName("string")
+ .withEmailAddress("contoso@microsoft.com").withUserPrincipalName("contoso@microsoft.com")
+ .withAadEmail("contoso@microsoft.com"))
+ .withTags(mapOf("Environment", "Dev"))
+ .withLinkOrganization(new LinkOrganization().withToken("fakeTokenPlaceholder")).create();
}
// Use "Map.of" if available
@@ -363,6 +512,33 @@ public final class OrganizationCreateSamples {
}
```
+### Organization_CreateApiKey
+
+```java
+import com.azure.resourcemanager.confluent.models.CreateApiKeyModel;
+
+/**
+ * Samples for Organization CreateApiKey.
+ */
+public final class OrganizationCreateApiKeySamples {
+ /*
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * Organization_CreateClusterAPIKey.json
+ */
+ /**
+ * Sample code: Organization_CreateAPIKey.
+ *
+ * @param manager Entry point to ConfluentManager.
+ */
+ public static void organizationCreateAPIKey(com.azure.resourcemanager.confluent.ConfluentManager manager) {
+ manager.organizations().createApiKeyWithResponse(
+ "myResourceGroup", "myOrganization", "env-12132", "clusterId-123", new CreateApiKeyModel()
+ .withName("CI kafka access key").withDescription("This API key provides kafka access to cluster x"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Organization_Delete
```java
@@ -371,7 +547,8 @@ public final class OrganizationCreateSamples {
*/
public final class OrganizationDeleteSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Delete.json
+ * x-ms-original-file:
+ * specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Delete.json
*/
/**
* Sample code: Confluent_Delete.
@@ -384,6 +561,29 @@ public final class OrganizationDeleteSamples {
}
```
+### Organization_DeleteClusterApiKey
+
+```java
+/**
+ * Samples for Organization DeleteClusterApiKey.
+ */
+public final class OrganizationDeleteClusterApiKeySamples {
+ /*
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * Organization_DeleteClusterAPIKey.json
+ */
+ /**
+ * Sample code: Organization_DeleteClusterAPIKey.
+ *
+ * @param manager Entry point to ConfluentManager.
+ */
+ public static void organizationDeleteClusterAPIKey(com.azure.resourcemanager.confluent.ConfluentManager manager) {
+ manager.organizations().deleteClusterApiKeyWithResponse("myResourceGroup", "myOrganization", "ZFZ6SZZZWGYBEIFB",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Organization_GetByResourceGroup
```java
@@ -392,7 +592,8 @@ public final class OrganizationDeleteSamples {
*/
public final class OrganizationGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Get.json
+ * x-ms-original-file:
+ * specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json
*/
/**
* Sample code: Organization_Get.
@@ -400,7 +601,101 @@ public final class OrganizationGetByResourceGroupSamples {
* @param manager Entry point to ConfluentManager.
*/
public static void organizationGet(com.azure.resourcemanager.confluent.ConfluentManager manager) {
- manager.organizations().getByResourceGroupWithResponse("myResourceGroup", "myOrganization", com.azure.core.util.Context.NONE);
+ manager.organizations().getByResourceGroupWithResponse("myResourceGroup", "myOrganization",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Organization_GetClusterApiKey
+
+```java
+/**
+ * Samples for Organization GetClusterApiKey.
+ */
+public final class OrganizationGetClusterApiKeySamples {
+ /*
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * Organization_GetClusterAPIKey.json
+ */
+ /**
+ * Sample code: Organization_GetClusterAPIKey.
+ *
+ * @param manager Entry point to ConfluentManager.
+ */
+ public static void organizationGetClusterAPIKey(com.azure.resourcemanager.confluent.ConfluentManager manager) {
+ manager.organizations().getClusterApiKeyWithResponse("myResourceGroup", "myOrganization", "apiKeyId-123",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Organization_GetClusterById
+
+```java
+/**
+ * Samples for Organization GetClusterById.
+ */
+public final class OrganizationGetClusterByIdSamples {
+ /*
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * Organization_GetClusterById.json
+ */
+ /**
+ * Sample code: Organization_GetClusterById.
+ *
+ * @param manager Entry point to ConfluentManager.
+ */
+ public static void organizationGetClusterById(com.azure.resourcemanager.confluent.ConfluentManager manager) {
+ manager.organizations().getClusterByIdWithResponse("myResourceGroup", "myOrganization", "env-12132",
+ "dlz-f3a90de", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Organization_GetEnvironmentById
+
+```java
+/**
+ * Samples for Organization GetEnvironmentById.
+ */
+public final class OrganizationGetEnvironmentByIdSamples {
+ /*
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * Organization_GetEnvironmentById.json
+ */
+ /**
+ * Sample code: Organization_GetEnvironmentById.
+ *
+ * @param manager Entry point to ConfluentManager.
+ */
+ public static void organizationGetEnvironmentById(com.azure.resourcemanager.confluent.ConfluentManager manager) {
+ manager.organizations().getEnvironmentByIdWithResponse("myResourceGroup", "myOrganization", "dlz-f3a90de",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Organization_GetSchemaRegistryClusterById
+
+```java
+/**
+ * Samples for Organization GetSchemaRegistryClusterById.
+ */
+public final class OrganizationGetSchemaRegistryClusterByIdSamples {
+ /*
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * Organization_GetSchemaRegistryClusterById.json
+ */
+ /**
+ * Sample code: Organization_GetSchemaRegistryClusterById.
+ *
+ * @param manager Entry point to ConfluentManager.
+ */
+ public static void
+ organizationGetSchemaRegistryClusterById(com.azure.resourcemanager.confluent.ConfluentManager manager) {
+ manager.organizations().getSchemaRegistryClusterByIdWithResponse("myResourceGroup", "myOrganization",
+ "env-stgcczjp2j3", "lsrc-stgczkq22z", com.azure.core.util.Context.NONE);
}
}
```
@@ -413,7 +708,8 @@ public final class OrganizationGetByResourceGroupSamples {
*/
public final class OrganizationListSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListBySubscription.json
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * Organization_ListBySubscription.json
*/
/**
* Sample code: Organization_ListBySubscription.
@@ -434,7 +730,8 @@ public final class OrganizationListSamples {
*/
public final class OrganizationListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListByResourceGroup.json
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * Organization_ListByResourceGroup.json
*/
/**
* Sample code: Organization_ListByResourceGroup.
@@ -447,6 +744,119 @@ public final class OrganizationListByResourceGroupSamples {
}
```
+### Organization_ListClusters
+
+```java
+/**
+ * Samples for Organization ListClusters.
+ */
+public final class OrganizationListClustersSamples {
+ /*
+ * x-ms-original-file:
+ * specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ClusterList.
+ * json
+ */
+ /**
+ * Sample code: Organization_ListClusters.
+ *
+ * @param manager Entry point to ConfluentManager.
+ */
+ public static void organizationListClusters(com.azure.resourcemanager.confluent.ConfluentManager manager) {
+ manager.organizations().listClusters("myResourceGroup", "myOrganization", "env-12132", 10, null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Organization_ListEnvironments
+
+```java
+/**
+ * Samples for Organization ListEnvironments.
+ */
+public final class OrganizationListEnvironmentsSamples {
+ /*
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * Organization_EnvironmentList.json
+ */
+ /**
+ * Sample code: Organization_ListEnvironments.
+ *
+ * @param manager Entry point to ConfluentManager.
+ */
+ public static void organizationListEnvironments(com.azure.resourcemanager.confluent.ConfluentManager manager) {
+ manager.organizations().listEnvironments("myResourceGroup", "myOrganization", 10, null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Organization_ListRegions
+
+```java
+import com.azure.resourcemanager.confluent.models.ListAccessRequestModel;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Organization ListRegions.
+ */
+public final class OrganizationListRegionsSamples {
+ /*
+ * x-ms-original-file:
+ * specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListRegions.
+ * json
+ */
+ /**
+ * Sample code: Organization_ListRegions.
+ *
+ * @param manager Entry point to ConfluentManager.
+ */
+ public static void organizationListRegions(com.azure.resourcemanager.confluent.ConfluentManager manager) {
+ manager.organizations().listRegionsWithResponse("myResourceGroup", "myOrganization",
+ new ListAccessRequestModel()
+ .withSearchFilters(mapOf("cloud", "azure", "packages", "ADVANCED,ESSENTIALS", "region", "eastus")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Organization_ListSchemaRegistryClusters
+
+```java
+/**
+ * Samples for Organization ListSchemaRegistryClusters.
+ */
+public final class OrganizationListSchemaRegistryClustersSamples {
+ /*
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * Organization_ListSchemaRegistryClusters.json
+ */
+ /**
+ * Sample code: Organization_ListSchemaRegistryClusters.
+ *
+ * @param manager Entry point to ConfluentManager.
+ */
+ public static void
+ organizationListSchemaRegistryClusters(com.azure.resourcemanager.confluent.ConfluentManager manager) {
+ manager.organizations().listSchemaRegistryClusters("myResourceGroup", "myOrganization", "env-stgcczjp2j3", null,
+ null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Organization_Update
```java
@@ -459,7 +869,8 @@ import java.util.Map;
*/
public final class OrganizationUpdateSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Update.json
+ * x-ms-original-file:
+ * specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Update.json
*/
/**
* Sample code: Confluent_Update.
@@ -467,7 +878,9 @@ public final class OrganizationUpdateSamples {
* @param manager Entry point to ConfluentManager.
*/
public static void confluentUpdate(com.azure.resourcemanager.confluent.ConfluentManager manager) {
- OrganizationResource resource = manager.organizations().getByResourceGroupWithResponse("myResourceGroup", "myOrganization", com.azure.core.util.Context.NONE).getValue();
+ OrganizationResource resource = manager.organizations()
+ .getByResourceGroupWithResponse("myResourceGroup", "myOrganization", com.azure.core.util.Context.NONE)
+ .getValue();
resource.update().withTags(mapOf("client", "dev-client", "env", "dev")).apply();
}
@@ -493,7 +906,8 @@ public final class OrganizationUpdateSamples {
*/
public final class OrganizationOperationsListSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/OrganizationOperations_List.json
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * OrganizationOperations_List.json
*/
/**
* Sample code: OrganizationOperations_List.
@@ -521,7 +935,8 @@ import java.util.Map;
*/
public final class ValidationsValidateOrganizationSamples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizations.json
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * Validations_ValidateOrganizations.json
*/
/**
* Sample code: Validations_ValidateOrganizations.
@@ -529,7 +944,15 @@ public final class ValidationsValidateOrganizationSamples {
* @param manager Entry point to ConfluentManager.
*/
public static void validationsValidateOrganizations(com.azure.resourcemanager.confluent.ConfluentManager manager) {
- manager.validations().validateOrganizationWithResponse("myResourceGroup", "myOrganization", new OrganizationResourceInner().withLocation("West US").withTags(mapOf("Environment", "Dev")).withOfferDetail(new OfferDetail().withPublisherId("string").withId("string").withPlanId("string").withPlanName("string").withTermUnit("string").withPrivateOfferId("string").withPrivateOfferIds(Arrays.asList("string"))).withUserDetail(new UserDetail().withFirstName("string").withLastName("string").withEmailAddress("abc@microsoft.com").withUserPrincipalName("abc@microsoft.com").withAadEmail("abc@microsoft.com")), com.azure.core.util.Context.NONE);
+ manager.validations().validateOrganizationWithResponse("myResourceGroup", "myOrganization",
+ new OrganizationResourceInner().withLocation("West US").withTags(mapOf("Environment", "Dev"))
+ .withOfferDetail(new OfferDetail().withPublisherId("string").withId("string").withPlanId("string")
+ .withPlanName("string").withTermUnit("string").withPrivateOfferId("string")
+ .withPrivateOfferIds(Arrays.asList("string")))
+ .withUserDetail(new UserDetail().withFirstName("string").withLastName("string")
+ .withEmailAddress("abc@microsoft.com").withUserPrincipalName("abc@microsoft.com")
+ .withAadEmail("abc@microsoft.com")),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -561,7 +984,8 @@ import java.util.Map;
*/
public final class ValidationsValidateOrganizationV2Samples {
/*
- * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizationsV2.json
+ * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/
+ * Validations_ValidateOrganizationsV2.json
*/
/**
* Sample code: Validations_ValidateOrganizations.
@@ -569,7 +993,15 @@ public final class ValidationsValidateOrganizationV2Samples {
* @param manager Entry point to ConfluentManager.
*/
public static void validationsValidateOrganizations(com.azure.resourcemanager.confluent.ConfluentManager manager) {
- manager.validations().validateOrganizationV2WithResponse("myResourceGroup", "myOrganization", new OrganizationResourceInner().withLocation("West US").withTags(mapOf("Environment", "Dev")).withOfferDetail(new OfferDetail().withPublisherId("string").withId("string").withPlanId("string").withPlanName("string").withTermUnit("string").withPrivateOfferId("string").withPrivateOfferIds(Arrays.asList("string"))).withUserDetail(new UserDetail().withFirstName("string").withLastName("string").withEmailAddress("abc@microsoft.com").withUserPrincipalName("abc@microsoft.com").withAadEmail("abc@microsoft.com")), com.azure.core.util.Context.NONE);
+ manager.validations().validateOrganizationV2WithResponse("myResourceGroup", "myOrganization",
+ new OrganizationResourceInner().withLocation("West US").withTags(mapOf("Environment", "Dev"))
+ .withOfferDetail(new OfferDetail().withPublisherId("string").withId("string").withPlanId("string")
+ .withPlanName("string").withTermUnit("string").withPrivateOfferId("string")
+ .withPrivateOfferIds(Arrays.asList("string")))
+ .withUserDetail(new UserDetail().withFirstName("string").withLastName("string")
+ .withEmailAddress("abc@microsoft.com").withUserPrincipalName("abc@microsoft.com")
+ .withAadEmail("abc@microsoft.com")),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
diff --git a/sdk/confluent/azure-resourcemanager-confluent/pom.xml b/sdk/confluent/azure-resourcemanager-confluent/pom.xml
index 85263e02978f..ab6b35a4c326 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/pom.xml
+++ b/sdk/confluent/azure-resourcemanager-confluent/pom.xml
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-confluent
- 1.1.0-beta.1
+ 1.1.0
jar
Microsoft Azure SDK for Confluent Management
- This package contains Microsoft Azure SDK for Confluent Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-08-22.
+ This package contains Microsoft Azure SDK for Confluent Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-02.
https://github.com/Azure/azure-sdk-for-java
@@ -87,8 +87,6 @@
4.11.0
test
-
-
net.bytebuddy
byte-buddy
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/ConfluentManager.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/ConfluentManager.java
index b102da150f6b..6a010e94095e 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/ConfluentManager.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/ConfluentManager.java
@@ -215,7 +215,7 @@ public ConfluentManager authenticate(TokenCredential credential, AzureProfile pr
StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.confluent").append("/")
- .append("1.0.0");
+ .append("1.1.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
.append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/AccessClient.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/AccessClient.java
index 07dca16d422b..4831093cfb5c 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/AccessClient.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/AccessClient.java
@@ -14,9 +14,12 @@
import com.azure.resourcemanager.confluent.fluent.models.AccessListRoleBindingsSuccessResponseInner;
import com.azure.resourcemanager.confluent.fluent.models.AccessListServiceAccountsSuccessResponseInner;
import com.azure.resourcemanager.confluent.fluent.models.AccessListUsersSuccessResponseInner;
+import com.azure.resourcemanager.confluent.fluent.models.AccessRoleBindingNameListSuccessResponseInner;
import com.azure.resourcemanager.confluent.fluent.models.InvitationRecordInner;
+import com.azure.resourcemanager.confluent.models.AccessCreateRoleBindingRequestModel;
import com.azure.resourcemanager.confluent.models.AccessInviteUserAccountModel;
import com.azure.resourcemanager.confluent.models.ListAccessRequestModel;
+import com.azure.resourcemanager.confluent.models.RoleBindingRecord;
/**
* An instance of this class provides access to all the operations defined in AccessClient.
@@ -25,7 +28,7 @@ public interface AccessClient {
/**
* Organization users details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @param context The context to associate with this operation.
@@ -41,7 +44,7 @@ Response listUsersWithResponse(String resou
/**
* Organization users details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -56,7 +59,7 @@ AccessListUsersSuccessResponseInner listUsers(String resourceGroupName, String o
/**
* Organization service accounts details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @param context The context to associate with this operation.
@@ -72,7 +75,7 @@ Response listServiceAccountsWithR
/**
* Organization service accounts details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -87,7 +90,7 @@ AccessListServiceAccountsSuccessResponseInner listServiceAccounts(String resourc
/**
* Organization accounts invitation details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @param context The context to associate with this operation.
@@ -103,7 +106,7 @@ Response listInvitationsWithResponse(
/**
* Organization accounts invitation details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -118,7 +121,7 @@ AccessListInvitationsSuccessResponseInner listInvitations(String resourceGroupNa
/**
* Invite user to the organization.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Invite user account model.
* @param context The context to associate with this operation.
@@ -134,7 +137,7 @@ Response inviteUserWithResponse(String resourceGroupName,
/**
* Invite user to the organization.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Invite user account model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -156,7 +159,7 @@ InvitationRecordInner inviteUser(String resourceGroupName, String organizationNa
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list environments success response along with {@link Response}.
+ * @return details of the environments returned on successful response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listEnvironmentsWithResponse(String resourceGroupName,
@@ -171,7 +174,7 @@ Response listEnvironmentsWithRespons
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list environments success response.
+ * @return details of the environments returned on successful response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AccessListEnvironmentsSuccessResponseInner listEnvironments(String resourceGroupName, String organizationName,
@@ -187,7 +190,7 @@ AccessListEnvironmentsSuccessResponseInner listEnvironments(String resourceGroup
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list cluster success response along with {@link Response}.
+ * @return details of the clusters returned on successful response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listClustersWithResponse(String resourceGroupName,
@@ -202,7 +205,7 @@ Response listClustersWithResponse(String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list cluster success response.
+ * @return details of the clusters returned on successful response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AccessListClusterSuccessResponseInner listClusters(String resourceGroupName, String organizationName,
@@ -218,7 +221,7 @@ AccessListClusterSuccessResponseInner listClusters(String resourceGroupName, Str
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list cluster success response along with {@link Response}.
+ * @return details of the role bindings returned on successful response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listRoleBindingsWithResponse(String resourceGroupName,
@@ -233,9 +236,100 @@ Response listRoleBindingsWithRespons
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list cluster success response.
+ * @return details of the role bindings returned on successful response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AccessListRoleBindingsSuccessResponseInner listRoleBindings(String resourceGroupName, String organizationName,
ListAccessRequestModel body);
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body Create role binding Request Model.
+ * @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 on principal, role name and crn pattern of a role binding along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createRoleBindingWithResponse(String resourceGroupName, String organizationName,
+ AccessCreateRoleBindingRequestModel body, Context context);
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body Create role binding Request Model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 on principal, role name and crn pattern of a role binding.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RoleBindingRecord createRoleBinding(String resourceGroupName, String organizationName,
+ AccessCreateRoleBindingRequestModel body);
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param roleBindingId Confluent Role binding id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteRoleBindingWithResponse(String resourceGroupName, String organizationName,
+ String roleBindingId, Context context);
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param roleBindingId Confluent Role binding 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteRoleBinding(String resourceGroupName, String organizationName, String roleBindingId);
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body List Access Request Model.
+ * @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 of the role binding names returned on successful response along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listRoleBindingNameListWithResponse(
+ String resourceGroupName, String organizationName, ListAccessRequestModel body, Context context);
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body List Access Request Model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 of the role binding names returned on successful response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessRoleBindingNameListSuccessResponseInner listRoleBindingNameList(String resourceGroupName,
+ String organizationName, ListAccessRequestModel body);
}
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/ConfluentManagementClient.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/ConfluentManagementClient.java
index 91e383651b98..9af539dd74ab 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/ConfluentManagementClient.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/ConfluentManagementClient.java
@@ -12,7 +12,7 @@
*/
public interface ConfluentManagementClient {
/**
- * Gets The ID of the target subscription. The value must be an UUID.
+ * Gets Microsoft Azure subscription id.
*
* @return the subscriptionId value.
*/
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/OrganizationsClient.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/OrganizationsClient.java
index 72560d3ef97d..3d1c075f494a 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/OrganizationsClient.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/OrganizationsClient.java
@@ -11,7 +11,14 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.confluent.fluent.models.ApiKeyRecordInner;
+import com.azure.resourcemanager.confluent.fluent.models.ListRegionsSuccessResponseInner;
import com.azure.resourcemanager.confluent.fluent.models.OrganizationResourceInner;
+import com.azure.resourcemanager.confluent.fluent.models.SCClusterRecordInner;
+import com.azure.resourcemanager.confluent.fluent.models.SCEnvironmentRecordInner;
+import com.azure.resourcemanager.confluent.fluent.models.SchemaRegistryClusterRecordInner;
+import com.azure.resourcemanager.confluent.models.CreateApiKeyModel;
+import com.azure.resourcemanager.confluent.models.ListAccessRequestModel;
import com.azure.resourcemanager.confluent.models.OrganizationResourceUpdate;
/**
@@ -43,7 +50,7 @@ public interface OrganizationsClient {
/**
* List all Organizations under the specified resource group.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group 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.
@@ -55,7 +62,7 @@ public interface OrganizationsClient {
/**
* List all Organizations under the specified resource group.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group 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.
@@ -68,7 +75,7 @@ public interface OrganizationsClient {
/**
* Get the properties of a specific Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -83,7 +90,7 @@ Response getByResourceGroupWithResponse(String resour
/**
* Get the properties of a specific Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -96,7 +103,7 @@ Response getByResourceGroupWithResponse(String resour
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -110,7 +117,7 @@ SyncPoller, OrganizationResourceInner> beg
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Organization resource model.
* @param context The context to associate with this operation.
@@ -126,7 +133,7 @@ SyncPoller, OrganizationResourceInner> beg
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -139,7 +146,7 @@ SyncPoller, OrganizationResourceInner> beg
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Organization resource model.
* @param context The context to associate with this operation.
@@ -155,7 +162,7 @@ OrganizationResourceInner create(String resourceGroupName, String organizationNa
/**
* Update Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Updated Organization resource.
* @param context The context to associate with this operation.
@@ -171,7 +178,7 @@ Response updateWithResponse(String resourceGroupName,
/**
* Update Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -184,7 +191,7 @@ Response updateWithResponse(String resourceGroupName,
/**
* Delete Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -197,7 +204,7 @@ Response updateWithResponse(String resourceGroupName,
/**
* Delete Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -211,7 +218,7 @@ Response updateWithResponse(String resourceGroupName,
/**
* Delete Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -223,7 +230,7 @@ Response updateWithResponse(String resourceGroupName,
/**
* Delete Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -232,4 +239,326 @@ Response updateWithResponse(String resourceGroupName,
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String organizationName, Context context);
+
+ /**
+ * Lists of all the environments in a organization.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource 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 result of GET request to list Confluent operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listEnvironments(String resourceGroupName, String organizationName);
+
+ /**
+ * Lists of all the environments in a organization.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @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 result of GET request to list Confluent operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listEnvironments(String resourceGroupName, String organizationName,
+ Integer pageSize, String pageToken, Context context);
+
+ /**
+ * Get Environment details by environment Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment 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 environment details by environment Id along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getEnvironmentByIdWithResponse(String resourceGroupName, String organizationName,
+ String environmentId, Context context);
+
+ /**
+ * Get Environment details by environment Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment 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 environment details by environment Id.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SCEnvironmentRecordInner getEnvironmentById(String resourceGroupName, String organizationName,
+ String environmentId);
+
+ /**
+ * Lists of all the clusters in a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment 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 result of GET request to list clusters in the environment of a confluent organization as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listClusters(String resourceGroupName, String organizationName,
+ String environmentId);
+
+ /**
+ * Lists of all the clusters in a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @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 result of GET request to list clusters in the environment of a confluent organization as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listClusters(String resourceGroupName, String organizationName,
+ String environmentId, Integer pageSize, String pageToken, Context context);
+
+ /**
+ * Get schema registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment 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 schema registry clusters as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSchemaRegistryClusters(String resourceGroupName,
+ String organizationName, String environmentId);
+
+ /**
+ * Get schema registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @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 schema registry clusters as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSchemaRegistryClusters(String resourceGroupName,
+ String organizationName, String environmentId, Integer pageSize, String pageToken, Context context);
+
+ /**
+ * cloud provider regions available for creating Schema Registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body List Access Request Model.
+ * @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 result of POST request to list regions supported by confluent along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listRegionsWithResponse(String resourceGroupName, String organizationName,
+ ListAccessRequestModel body, Context context);
+
+ /**
+ * cloud provider regions available for creating Schema Registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body List Access Request Model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of POST request to list regions supported by confluent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ListRegionsSuccessResponseInner listRegions(String resourceGroupName, String organizationName,
+ ListAccessRequestModel body);
+
+ /**
+ * Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @param body Request payload for get creating API Key for schema registry Cluster ID or Kafka Cluster ID under a
+ * environment.
+ * @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 API key along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createApiKeyWithResponse(String resourceGroupName, String organizationName,
+ String environmentId, String clusterId, CreateApiKeyModel body, Context context);
+
+ /**
+ * Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @param body Request payload for get creating API Key for schema registry Cluster ID or Kafka Cluster ID under a
+ * environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 API key.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApiKeyRecordInner createApiKey(String resourceGroupName, String organizationName, String environmentId,
+ String clusterId, CreateApiKeyModel body);
+
+ /**
+ * Deletes API key of a kafka or schema registry cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param apiKeyId Confluent API Key id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteClusterApiKeyWithResponse(String resourceGroupName, String organizationName, String apiKeyId,
+ Context context);
+
+ /**
+ * Deletes API key of a kafka or schema registry cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param apiKeyId Confluent API Key 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteClusterApiKey(String resourceGroupName, String organizationName, String apiKeyId);
+
+ /**
+ * Get API key details of a kafka or schema registry cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param apiKeyId Confluent API Key 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 aPI key details of a kafka or schema registry cluster along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getClusterApiKeyWithResponse(String resourceGroupName, String organizationName,
+ String apiKeyId, Context context);
+
+ /**
+ * Get API key details of a kafka or schema registry cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param apiKeyId Confluent API Key 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 aPI key details of a kafka or schema registry cluster.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApiKeyRecordInner getClusterApiKey(String resourceGroupName, String organizationName, String apiKeyId);
+
+ /**
+ * Get schema registry cluster by Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster 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 schema registry cluster by Id along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getSchemaRegistryClusterByIdWithResponse(String resourceGroupName,
+ String organizationName, String environmentId, String clusterId, Context context);
+
+ /**
+ * Get schema registry cluster by Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster 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 schema registry cluster by Id.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SchemaRegistryClusterRecordInner getSchemaRegistryClusterById(String resourceGroupName, String organizationName,
+ String environmentId, String clusterId);
+
+ /**
+ * Get cluster by Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster 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 cluster by Id along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getClusterByIdWithResponse(String resourceGroupName, String organizationName,
+ String environmentId, String clusterId, Context context);
+
+ /**
+ * Get cluster by Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster 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 cluster by Id.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SCClusterRecordInner getClusterById(String resourceGroupName, String organizationName, String environmentId,
+ String clusterId);
}
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/ValidationsClient.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/ValidationsClient.java
index c777fc43838d..b73562bbd383 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/ValidationsClient.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/ValidationsClient.java
@@ -18,7 +18,7 @@ public interface ValidationsClient {
/**
* Organization Validate proxy resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Organization resource model.
* @param context The context to associate with this operation.
@@ -34,7 +34,7 @@ Response validateOrganizationWithResponse(String reso
/**
* Organization Validate proxy resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Organization resource model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -49,7 +49,7 @@ OrganizationResourceInner validateOrganization(String resourceGroupName, String
/**
* Organization Validate proxy resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Organization resource model.
* @param context The context to associate with this operation.
@@ -65,7 +65,7 @@ Response validateOrganizationV2WithResponse(String reso
/**
* Organization Validate proxy resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Organization resource model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessListClusterSuccessResponseInner.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessListClusterSuccessResponseInner.java
index 02c3cb93804f..e1710c526fff 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessListClusterSuccessResponseInner.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessListClusterSuccessResponseInner.java
@@ -11,7 +11,7 @@
import java.util.List;
/**
- * List cluster success response.
+ * Details of the clusters returned on successful response.
*/
@Fluent
public final class AccessListClusterSuccessResponseInner {
@@ -28,7 +28,7 @@ public final class AccessListClusterSuccessResponseInner {
private ConfluentListMetadata metadata;
/*
- * Data of the environments list
+ * List of clusters
*/
@JsonProperty(value = "data")
private List data;
@@ -80,7 +80,7 @@ public AccessListClusterSuccessResponseInner withMetadata(ConfluentListMetadata
}
/**
- * Get the data property: Data of the environments list.
+ * Get the data property: List of clusters.
*
* @return the data value.
*/
@@ -89,7 +89,7 @@ public List data() {
}
/**
- * Set the data property: Data of the environments list.
+ * Set the data property: List of clusters.
*
* @param data the data value to set.
* @return the AccessListClusterSuccessResponseInner object itself.
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessListEnvironmentsSuccessResponseInner.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessListEnvironmentsSuccessResponseInner.java
index e363d104bf87..1770543beb35 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessListEnvironmentsSuccessResponseInner.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessListEnvironmentsSuccessResponseInner.java
@@ -11,7 +11,7 @@
import java.util.List;
/**
- * List environments success response.
+ * Details of the environments returned on successful response.
*/
@Fluent
public final class AccessListEnvironmentsSuccessResponseInner {
@@ -22,13 +22,13 @@ public final class AccessListEnvironmentsSuccessResponseInner {
private String kind;
/*
- * Metadata of the list
+ * Metadata of the environment list
*/
@JsonProperty(value = "metadata")
private ConfluentListMetadata metadata;
/*
- * Data of the environments list
+ * Environment list data
*/
@JsonProperty(value = "data")
private List data;
@@ -60,7 +60,7 @@ public AccessListEnvironmentsSuccessResponseInner withKind(String kind) {
}
/**
- * Get the metadata property: Metadata of the list.
+ * Get the metadata property: Metadata of the environment list.
*
* @return the metadata value.
*/
@@ -69,7 +69,7 @@ public ConfluentListMetadata metadata() {
}
/**
- * Set the metadata property: Metadata of the list.
+ * Set the metadata property: Metadata of the environment list.
*
* @param metadata the metadata value to set.
* @return the AccessListEnvironmentsSuccessResponseInner object itself.
@@ -80,7 +80,7 @@ public AccessListEnvironmentsSuccessResponseInner withMetadata(ConfluentListMeta
}
/**
- * Get the data property: Data of the environments list.
+ * Get the data property: Environment list data.
*
* @return the data value.
*/
@@ -89,7 +89,7 @@ public List data() {
}
/**
- * Set the data property: Data of the environments list.
+ * Set the data property: Environment list data.
*
* @param data the data value to set.
* @return the AccessListEnvironmentsSuccessResponseInner object itself.
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessListRoleBindingsSuccessResponseInner.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessListRoleBindingsSuccessResponseInner.java
index 2d564001f1e3..09552c145877 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessListRoleBindingsSuccessResponseInner.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessListRoleBindingsSuccessResponseInner.java
@@ -11,7 +11,7 @@
import java.util.List;
/**
- * List cluster success response.
+ * Details of the role bindings returned on successful response.
*/
@Fluent
public final class AccessListRoleBindingsSuccessResponseInner {
@@ -28,7 +28,7 @@ public final class AccessListRoleBindingsSuccessResponseInner {
private ConfluentListMetadata metadata;
/*
- * Data of the environments list
+ * List of role binding
*/
@JsonProperty(value = "data")
private List data;
@@ -80,7 +80,7 @@ public AccessListRoleBindingsSuccessResponseInner withMetadata(ConfluentListMeta
}
/**
- * Get the data property: Data of the environments list.
+ * Get the data property: List of role binding.
*
* @return the data value.
*/
@@ -89,7 +89,7 @@ public List data() {
}
/**
- * Set the data property: Data of the environments list.
+ * Set the data property: List of role binding.
*
* @param data the data value to set.
* @return the AccessListRoleBindingsSuccessResponseInner object itself.
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessRoleBindingNameListSuccessResponseInner.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessRoleBindingNameListSuccessResponseInner.java
new file mode 100644
index 000000000000..2df5ff42b04d
--- /dev/null
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/AccessRoleBindingNameListSuccessResponseInner.java
@@ -0,0 +1,111 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confluent.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.confluent.models.ConfluentListMetadata;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * Details of the role binding names returned on successful response.
+ */
+@Fluent
+public final class AccessRoleBindingNameListSuccessResponseInner {
+ /*
+ * Type of response
+ */
+ @JsonProperty(value = "kind")
+ private String kind;
+
+ /*
+ * Metadata of the list
+ */
+ @JsonProperty(value = "metadata")
+ private ConfluentListMetadata metadata;
+
+ /*
+ * List of role binding names
+ */
+ @JsonProperty(value = "data")
+ private List data;
+
+ /**
+ * Creates an instance of AccessRoleBindingNameListSuccessResponseInner class.
+ */
+ public AccessRoleBindingNameListSuccessResponseInner() {
+ }
+
+ /**
+ * Get the kind property: Type of response.
+ *
+ * @return the kind value.
+ */
+ public String kind() {
+ return this.kind;
+ }
+
+ /**
+ * Set the kind property: Type of response.
+ *
+ * @param kind the kind value to set.
+ * @return the AccessRoleBindingNameListSuccessResponseInner object itself.
+ */
+ public AccessRoleBindingNameListSuccessResponseInner withKind(String kind) {
+ this.kind = kind;
+ return this;
+ }
+
+ /**
+ * Get the metadata property: Metadata of the list.
+ *
+ * @return the metadata value.
+ */
+ public ConfluentListMetadata metadata() {
+ return this.metadata;
+ }
+
+ /**
+ * Set the metadata property: Metadata of the list.
+ *
+ * @param metadata the metadata value to set.
+ * @return the AccessRoleBindingNameListSuccessResponseInner object itself.
+ */
+ public AccessRoleBindingNameListSuccessResponseInner withMetadata(ConfluentListMetadata metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Get the data property: List of role binding names.
+ *
+ * @return the data value.
+ */
+ public List data() {
+ return this.data;
+ }
+
+ /**
+ * Set the data property: List of role binding names.
+ *
+ * @param data the data value to set.
+ * @return the AccessRoleBindingNameListSuccessResponseInner object itself.
+ */
+ public AccessRoleBindingNameListSuccessResponseInner withData(List data) {
+ this.data = data;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (metadata() != null) {
+ metadata().validate();
+ }
+ }
+}
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/ApiKeyProperties.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/ApiKeyProperties.java
new file mode 100644
index 000000000000..de26f7cf7a09
--- /dev/null
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/ApiKeyProperties.java
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confluent.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.confluent.models.ApiKeySpecEntity;
+import com.azure.resourcemanager.confluent.models.SCMetadataEntity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * API Key Properties.
+ */
+@Fluent
+public final class ApiKeyProperties {
+ /*
+ * Metadata of the record
+ */
+ @JsonProperty(value = "metadata")
+ private SCMetadataEntity metadata;
+
+ /*
+ * Specification of the API Key
+ */
+ @JsonProperty(value = "spec")
+ private ApiKeySpecEntity spec;
+
+ /**
+ * Creates an instance of ApiKeyProperties class.
+ */
+ public ApiKeyProperties() {
+ }
+
+ /**
+ * Get the metadata property: Metadata of the record.
+ *
+ * @return the metadata value.
+ */
+ public SCMetadataEntity metadata() {
+ return this.metadata;
+ }
+
+ /**
+ * Set the metadata property: Metadata of the record.
+ *
+ * @param metadata the metadata value to set.
+ * @return the ApiKeyProperties object itself.
+ */
+ public ApiKeyProperties withMetadata(SCMetadataEntity metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Get the spec property: Specification of the API Key.
+ *
+ * @return the spec value.
+ */
+ public ApiKeySpecEntity spec() {
+ return this.spec;
+ }
+
+ /**
+ * Set the spec property: Specification of the API Key.
+ *
+ * @param spec the spec value to set.
+ * @return the ApiKeyProperties object itself.
+ */
+ public ApiKeyProperties withSpec(ApiKeySpecEntity spec) {
+ this.spec = spec;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (metadata() != null) {
+ metadata().validate();
+ }
+ if (spec() != null) {
+ spec().validate();
+ }
+ }
+}
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/ApiKeyRecordInner.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/ApiKeyRecordInner.java
new file mode 100644
index 000000000000..60be809eb525
--- /dev/null
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/ApiKeyRecordInner.java
@@ -0,0 +1,146 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confluent.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.confluent.models.ApiKeySpecEntity;
+import com.azure.resourcemanager.confluent.models.SCMetadataEntity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Details API key.
+ */
+@Fluent
+public final class ApiKeyRecordInner {
+ /*
+ * Type of api key
+ */
+ @JsonProperty(value = "kind")
+ private String kind;
+
+ /*
+ * Id of the api key
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /*
+ * API Key Properties
+ */
+ @JsonProperty(value = "properties")
+ private ApiKeyProperties innerProperties;
+
+ /**
+ * Creates an instance of ApiKeyRecordInner class.
+ */
+ public ApiKeyRecordInner() {
+ }
+
+ /**
+ * Get the kind property: Type of api key.
+ *
+ * @return the kind value.
+ */
+ public String kind() {
+ return this.kind;
+ }
+
+ /**
+ * Set the kind property: Type of api key.
+ *
+ * @param kind the kind value to set.
+ * @return the ApiKeyRecordInner object itself.
+ */
+ public ApiKeyRecordInner withKind(String kind) {
+ this.kind = kind;
+ return this;
+ }
+
+ /**
+ * Get the id property: Id of the api key.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Id of the api key.
+ *
+ * @param id the id value to set.
+ * @return the ApiKeyRecordInner object itself.
+ */
+ public ApiKeyRecordInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: API Key Properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ApiKeyProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the metadata property: Metadata of the record.
+ *
+ * @return the metadata value.
+ */
+ public SCMetadataEntity metadata() {
+ return this.innerProperties() == null ? null : this.innerProperties().metadata();
+ }
+
+ /**
+ * Set the metadata property: Metadata of the record.
+ *
+ * @param metadata the metadata value to set.
+ * @return the ApiKeyRecordInner object itself.
+ */
+ public ApiKeyRecordInner withMetadata(SCMetadataEntity metadata) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ApiKeyProperties();
+ }
+ this.innerProperties().withMetadata(metadata);
+ return this;
+ }
+
+ /**
+ * Get the spec property: Specification of the API Key.
+ *
+ * @return the spec value.
+ */
+ public ApiKeySpecEntity spec() {
+ return this.innerProperties() == null ? null : this.innerProperties().spec();
+ }
+
+ /**
+ * Set the spec property: Specification of the API Key.
+ *
+ * @param spec the spec value to set.
+ * @return the ApiKeyRecordInner object itself.
+ */
+ public ApiKeyRecordInner withSpec(ApiKeySpecEntity spec) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ApiKeyProperties();
+ }
+ this.innerProperties().withSpec(spec);
+ 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/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/ClusterProperties.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/ClusterProperties.java
new file mode 100644
index 000000000000..0e00dcebe513
--- /dev/null
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/ClusterProperties.java
@@ -0,0 +1,118 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confluent.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.confluent.models.ClusterStatusEntity;
+import com.azure.resourcemanager.confluent.models.SCClusterSpecEntity;
+import com.azure.resourcemanager.confluent.models.SCMetadataEntity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Cluster Properties.
+ */
+@Fluent
+public final class ClusterProperties {
+ /*
+ * Metadata of the record
+ */
+ @JsonProperty(value = "metadata")
+ private SCMetadataEntity metadata;
+
+ /*
+ * Specification of the cluster
+ */
+ @JsonProperty(value = "spec")
+ private SCClusterSpecEntity spec;
+
+ /*
+ * Specification of the cluster status
+ */
+ @JsonProperty(value = "status")
+ private ClusterStatusEntity status;
+
+ /**
+ * Creates an instance of ClusterProperties class.
+ */
+ public ClusterProperties() {
+ }
+
+ /**
+ * Get the metadata property: Metadata of the record.
+ *
+ * @return the metadata value.
+ */
+ public SCMetadataEntity metadata() {
+ return this.metadata;
+ }
+
+ /**
+ * Set the metadata property: Metadata of the record.
+ *
+ * @param metadata the metadata value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withMetadata(SCMetadataEntity metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Get the spec property: Specification of the cluster.
+ *
+ * @return the spec value.
+ */
+ public SCClusterSpecEntity spec() {
+ return this.spec;
+ }
+
+ /**
+ * Set the spec property: Specification of the cluster.
+ *
+ * @param spec the spec value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withSpec(SCClusterSpecEntity spec) {
+ this.spec = spec;
+ return this;
+ }
+
+ /**
+ * Get the status property: Specification of the cluster status.
+ *
+ * @return the status value.
+ */
+ public ClusterStatusEntity status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Specification of the cluster status.
+ *
+ * @param status the status value to set.
+ * @return the ClusterProperties object itself.
+ */
+ public ClusterProperties withStatus(ClusterStatusEntity status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (metadata() != null) {
+ metadata().validate();
+ }
+ if (spec() != null) {
+ spec().validate();
+ }
+ if (status() != null) {
+ status().validate();
+ }
+ }
+}
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/EnvironmentProperties.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/EnvironmentProperties.java
new file mode 100644
index 000000000000..a9eab745ada8
--- /dev/null
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/EnvironmentProperties.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confluent.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.confluent.models.SCMetadataEntity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Environment resource property.
+ */
+@Fluent
+public final class EnvironmentProperties {
+ /*
+ * Metadata of the record
+ */
+ @JsonProperty(value = "metadata")
+ private SCMetadataEntity metadata;
+
+ /**
+ * Creates an instance of EnvironmentProperties class.
+ */
+ public EnvironmentProperties() {
+ }
+
+ /**
+ * Get the metadata property: Metadata of the record.
+ *
+ * @return the metadata value.
+ */
+ public SCMetadataEntity metadata() {
+ return this.metadata;
+ }
+
+ /**
+ * Set the metadata property: Metadata of the record.
+ *
+ * @param metadata the metadata value to set.
+ * @return the EnvironmentProperties object itself.
+ */
+ public EnvironmentProperties withMetadata(SCMetadataEntity metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (metadata() != null) {
+ metadata().validate();
+ }
+ }
+}
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/ListRegionsSuccessResponseInner.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/ListRegionsSuccessResponseInner.java
new file mode 100644
index 000000000000..07372836b95b
--- /dev/null
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/ListRegionsSuccessResponseInner.java
@@ -0,0 +1,59 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confluent.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.confluent.models.RegionRecord;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * Result of POST request to list regions supported by confluent.
+ */
+@Fluent
+public final class ListRegionsSuccessResponseInner {
+ /*
+ * List of regions supported by confluent
+ */
+ @JsonProperty(value = "data")
+ private List data;
+
+ /**
+ * Creates an instance of ListRegionsSuccessResponseInner class.
+ */
+ public ListRegionsSuccessResponseInner() {
+ }
+
+ /**
+ * Get the data property: List of regions supported by confluent.
+ *
+ * @return the data value.
+ */
+ public List data() {
+ return this.data;
+ }
+
+ /**
+ * Set the data property: List of regions supported by confluent.
+ *
+ * @param data the data value to set.
+ * @return the ListRegionsSuccessResponseInner object itself.
+ */
+ public ListRegionsSuccessResponseInner withData(List data) {
+ this.data = data;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (data() != null) {
+ data().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/RegionProperties.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/RegionProperties.java
new file mode 100644
index 000000000000..29a777d62833
--- /dev/null
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/RegionProperties.java
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confluent.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.confluent.models.RegionSpecEntity;
+import com.azure.resourcemanager.confluent.models.SCMetadataEntity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Region Properties.
+ */
+@Fluent
+public final class RegionProperties {
+ /*
+ * Metadata of the record
+ */
+ @JsonProperty(value = "metadata")
+ private SCMetadataEntity metadata;
+
+ /*
+ * Specification of the region
+ */
+ @JsonProperty(value = "spec")
+ private RegionSpecEntity spec;
+
+ /**
+ * Creates an instance of RegionProperties class.
+ */
+ public RegionProperties() {
+ }
+
+ /**
+ * Get the metadata property: Metadata of the record.
+ *
+ * @return the metadata value.
+ */
+ public SCMetadataEntity metadata() {
+ return this.metadata;
+ }
+
+ /**
+ * Set the metadata property: Metadata of the record.
+ *
+ * @param metadata the metadata value to set.
+ * @return the RegionProperties object itself.
+ */
+ public RegionProperties withMetadata(SCMetadataEntity metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Get the spec property: Specification of the region.
+ *
+ * @return the spec value.
+ */
+ public RegionSpecEntity spec() {
+ return this.spec;
+ }
+
+ /**
+ * Set the spec property: Specification of the region.
+ *
+ * @param spec the spec value to set.
+ * @return the RegionProperties object itself.
+ */
+ public RegionProperties withSpec(RegionSpecEntity spec) {
+ this.spec = spec;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (metadata() != null) {
+ metadata().validate();
+ }
+ if (spec() != null) {
+ spec().validate();
+ }
+ }
+}
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/SCClusterRecordInner.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/SCClusterRecordInner.java
new file mode 100644
index 000000000000..64a66966c358
--- /dev/null
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/SCClusterRecordInner.java
@@ -0,0 +1,196 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confluent.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.confluent.models.ClusterStatusEntity;
+import com.azure.resourcemanager.confluent.models.SCClusterSpecEntity;
+import com.azure.resourcemanager.confluent.models.SCMetadataEntity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Details of cluster record.
+ */
+@Fluent
+public final class SCClusterRecordInner {
+ /*
+ * Type of cluster
+ */
+ @JsonProperty(value = "kind")
+ private String kind;
+
+ /*
+ * Id of the cluster
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /*
+ * Cluster Properties
+ */
+ @JsonProperty(value = "properties")
+ private ClusterProperties innerProperties;
+
+ /*
+ * Display name of the cluster
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * Creates an instance of SCClusterRecordInner class.
+ */
+ public SCClusterRecordInner() {
+ }
+
+ /**
+ * Get the kind property: Type of cluster.
+ *
+ * @return the kind value.
+ */
+ public String kind() {
+ return this.kind;
+ }
+
+ /**
+ * Set the kind property: Type of cluster.
+ *
+ * @param kind the kind value to set.
+ * @return the SCClusterRecordInner object itself.
+ */
+ public SCClusterRecordInner withKind(String kind) {
+ this.kind = kind;
+ return this;
+ }
+
+ /**
+ * Get the id property: Id of the cluster.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Id of the cluster.
+ *
+ * @param id the id value to set.
+ * @return the SCClusterRecordInner object itself.
+ */
+ public SCClusterRecordInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: Cluster Properties.
+ *
+ * @return the innerProperties value.
+ */
+ private ClusterProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the name property: Display name of the cluster.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Display name of the cluster.
+ *
+ * @param name the name value to set.
+ * @return the SCClusterRecordInner object itself.
+ */
+ public SCClusterRecordInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the metadata property: Metadata of the record.
+ *
+ * @return the metadata value.
+ */
+ public SCMetadataEntity metadata() {
+ return this.innerProperties() == null ? null : this.innerProperties().metadata();
+ }
+
+ /**
+ * Set the metadata property: Metadata of the record.
+ *
+ * @param metadata the metadata value to set.
+ * @return the SCClusterRecordInner object itself.
+ */
+ public SCClusterRecordInner withMetadata(SCMetadataEntity metadata) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withMetadata(metadata);
+ return this;
+ }
+
+ /**
+ * Get the spec property: Specification of the cluster.
+ *
+ * @return the spec value.
+ */
+ public SCClusterSpecEntity spec() {
+ return this.innerProperties() == null ? null : this.innerProperties().spec();
+ }
+
+ /**
+ * Set the spec property: Specification of the cluster.
+ *
+ * @param spec the spec value to set.
+ * @return the SCClusterRecordInner object itself.
+ */
+ public SCClusterRecordInner withSpec(SCClusterSpecEntity spec) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withSpec(spec);
+ return this;
+ }
+
+ /**
+ * Get the status property: Specification of the cluster status.
+ *
+ * @return the status value.
+ */
+ public ClusterStatusEntity status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Set the status property: Specification of the cluster status.
+ *
+ * @param status the status value to set.
+ * @return the SCClusterRecordInner object itself.
+ */
+ public SCClusterRecordInner withStatus(ClusterStatusEntity status) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ClusterProperties();
+ }
+ this.innerProperties().withStatus(status);
+ 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/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/SCEnvironmentRecordInner.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/SCEnvironmentRecordInner.java
new file mode 100644
index 000000000000..3677b3958a0f
--- /dev/null
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/SCEnvironmentRecordInner.java
@@ -0,0 +1,148 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confluent.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.confluent.models.SCMetadataEntity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Details about environment name, metadata and environment id of an environment.
+ */
+@Fluent
+public final class SCEnvironmentRecordInner {
+ /*
+ * Type of environment
+ */
+ @JsonProperty(value = "kind")
+ private String kind;
+
+ /*
+ * Id of the environment
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /*
+ * Environment properties
+ */
+ @JsonProperty(value = "properties")
+ private EnvironmentProperties innerProperties;
+
+ /*
+ * Display name of the environment
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * Creates an instance of SCEnvironmentRecordInner class.
+ */
+ public SCEnvironmentRecordInner() {
+ }
+
+ /**
+ * Get the kind property: Type of environment.
+ *
+ * @return the kind value.
+ */
+ public String kind() {
+ return this.kind;
+ }
+
+ /**
+ * Set the kind property: Type of environment.
+ *
+ * @param kind the kind value to set.
+ * @return the SCEnvironmentRecordInner object itself.
+ */
+ public SCEnvironmentRecordInner withKind(String kind) {
+ this.kind = kind;
+ return this;
+ }
+
+ /**
+ * Get the id property: Id of the environment.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Id of the environment.
+ *
+ * @param id the id value to set.
+ * @return the SCEnvironmentRecordInner object itself.
+ */
+ public SCEnvironmentRecordInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: Environment properties.
+ *
+ * @return the innerProperties value.
+ */
+ private EnvironmentProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the name property: Display name of the environment.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Display name of the environment.
+ *
+ * @param name the name value to set.
+ * @return the SCEnvironmentRecordInner object itself.
+ */
+ public SCEnvironmentRecordInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the metadata property: Metadata of the record.
+ *
+ * @return the metadata value.
+ */
+ public SCMetadataEntity metadata() {
+ return this.innerProperties() == null ? null : this.innerProperties().metadata();
+ }
+
+ /**
+ * Set the metadata property: Metadata of the record.
+ *
+ * @param metadata the metadata value to set.
+ * @return the SCEnvironmentRecordInner object itself.
+ */
+ public SCEnvironmentRecordInner withMetadata(SCMetadataEntity metadata) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new EnvironmentProperties();
+ }
+ this.innerProperties().withMetadata(metadata);
+ 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/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/SchemaRegistryClusterProperties.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/SchemaRegistryClusterProperties.java
new file mode 100644
index 000000000000..fec259686dba
--- /dev/null
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/SchemaRegistryClusterProperties.java
@@ -0,0 +1,118 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confluent.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.confluent.models.SCMetadataEntity;
+import com.azure.resourcemanager.confluent.models.SchemaRegistryClusterSpecEntity;
+import com.azure.resourcemanager.confluent.models.SchemaRegistryClusterStatusEntity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Schema Registry Cluster Properties.
+ */
+@Fluent
+public final class SchemaRegistryClusterProperties {
+ /*
+ * Metadata of the record
+ */
+ @JsonProperty(value = "metadata")
+ private SCMetadataEntity metadata;
+
+ /*
+ * Specification of the schema registry cluster
+ */
+ @JsonProperty(value = "spec")
+ private SchemaRegistryClusterSpecEntity spec;
+
+ /*
+ * Specification of the cluster status
+ */
+ @JsonProperty(value = "status")
+ private SchemaRegistryClusterStatusEntity status;
+
+ /**
+ * Creates an instance of SchemaRegistryClusterProperties class.
+ */
+ public SchemaRegistryClusterProperties() {
+ }
+
+ /**
+ * Get the metadata property: Metadata of the record.
+ *
+ * @return the metadata value.
+ */
+ public SCMetadataEntity metadata() {
+ return this.metadata;
+ }
+
+ /**
+ * Set the metadata property: Metadata of the record.
+ *
+ * @param metadata the metadata value to set.
+ * @return the SchemaRegistryClusterProperties object itself.
+ */
+ public SchemaRegistryClusterProperties withMetadata(SCMetadataEntity metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Get the spec property: Specification of the schema registry cluster.
+ *
+ * @return the spec value.
+ */
+ public SchemaRegistryClusterSpecEntity spec() {
+ return this.spec;
+ }
+
+ /**
+ * Set the spec property: Specification of the schema registry cluster.
+ *
+ * @param spec the spec value to set.
+ * @return the SchemaRegistryClusterProperties object itself.
+ */
+ public SchemaRegistryClusterProperties withSpec(SchemaRegistryClusterSpecEntity spec) {
+ this.spec = spec;
+ return this;
+ }
+
+ /**
+ * Get the status property: Specification of the cluster status.
+ *
+ * @return the status value.
+ */
+ public SchemaRegistryClusterStatusEntity status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Specification of the cluster status.
+ *
+ * @param status the status value to set.
+ * @return the SchemaRegistryClusterProperties object itself.
+ */
+ public SchemaRegistryClusterProperties withStatus(SchemaRegistryClusterStatusEntity status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (metadata() != null) {
+ metadata().validate();
+ }
+ if (spec() != null) {
+ spec().validate();
+ }
+ if (status() != null) {
+ status().validate();
+ }
+ }
+}
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/SchemaRegistryClusterRecordInner.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/SchemaRegistryClusterRecordInner.java
new file mode 100644
index 000000000000..46cac907678f
--- /dev/null
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/fluent/models/SchemaRegistryClusterRecordInner.java
@@ -0,0 +1,170 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confluent.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.confluent.models.SCMetadataEntity;
+import com.azure.resourcemanager.confluent.models.SchemaRegistryClusterSpecEntity;
+import com.azure.resourcemanager.confluent.models.SchemaRegistryClusterStatusEntity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Details of schema registry cluster record.
+ */
+@Fluent
+public final class SchemaRegistryClusterRecordInner {
+ /*
+ * Kind of the cluster
+ */
+ @JsonProperty(value = "kind")
+ private String kind;
+
+ /*
+ * Id of the cluster
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /*
+ * Schema Registry Cluster Properties
+ */
+ @JsonProperty(value = "properties")
+ private SchemaRegistryClusterProperties innerProperties;
+
+ /**
+ * Creates an instance of SchemaRegistryClusterRecordInner class.
+ */
+ public SchemaRegistryClusterRecordInner() {
+ }
+
+ /**
+ * Get the kind property: Kind of the cluster.
+ *
+ * @return the kind value.
+ */
+ public String kind() {
+ return this.kind;
+ }
+
+ /**
+ * Set the kind property: Kind of the cluster.
+ *
+ * @param kind the kind value to set.
+ * @return the SchemaRegistryClusterRecordInner object itself.
+ */
+ public SchemaRegistryClusterRecordInner withKind(String kind) {
+ this.kind = kind;
+ return this;
+ }
+
+ /**
+ * Get the id property: Id of the cluster.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Id of the cluster.
+ *
+ * @param id the id value to set.
+ * @return the SchemaRegistryClusterRecordInner object itself.
+ */
+ public SchemaRegistryClusterRecordInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: Schema Registry Cluster Properties.
+ *
+ * @return the innerProperties value.
+ */
+ private SchemaRegistryClusterProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the metadata property: Metadata of the record.
+ *
+ * @return the metadata value.
+ */
+ public SCMetadataEntity metadata() {
+ return this.innerProperties() == null ? null : this.innerProperties().metadata();
+ }
+
+ /**
+ * Set the metadata property: Metadata of the record.
+ *
+ * @param metadata the metadata value to set.
+ * @return the SchemaRegistryClusterRecordInner object itself.
+ */
+ public SchemaRegistryClusterRecordInner withMetadata(SCMetadataEntity metadata) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SchemaRegistryClusterProperties();
+ }
+ this.innerProperties().withMetadata(metadata);
+ return this;
+ }
+
+ /**
+ * Get the spec property: Specification of the schema registry cluster.
+ *
+ * @return the spec value.
+ */
+ public SchemaRegistryClusterSpecEntity spec() {
+ return this.innerProperties() == null ? null : this.innerProperties().spec();
+ }
+
+ /**
+ * Set the spec property: Specification of the schema registry cluster.
+ *
+ * @param spec the spec value to set.
+ * @return the SchemaRegistryClusterRecordInner object itself.
+ */
+ public SchemaRegistryClusterRecordInner withSpec(SchemaRegistryClusterSpecEntity spec) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SchemaRegistryClusterProperties();
+ }
+ this.innerProperties().withSpec(spec);
+ return this;
+ }
+
+ /**
+ * Get the status property: Specification of the cluster status.
+ *
+ * @return the status value.
+ */
+ public SchemaRegistryClusterStatusEntity status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Set the status property: Specification of the cluster status.
+ *
+ * @param status the status value to set.
+ * @return the SchemaRegistryClusterRecordInner object itself.
+ */
+ public SchemaRegistryClusterRecordInner withStatus(SchemaRegistryClusterStatusEntity status) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SchemaRegistryClusterProperties();
+ }
+ this.innerProperties().withStatus(status);
+ 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/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/AccessClientImpl.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/AccessClientImpl.java
index 95605b5fe0d2..3b4b31c56b51 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/AccessClientImpl.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/AccessClientImpl.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.confluent.implementation;
import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
import com.azure.core.annotation.ExpectedResponses;
import com.azure.core.annotation.HeaderParam;
import com.azure.core.annotation.Headers;
@@ -29,9 +30,12 @@
import com.azure.resourcemanager.confluent.fluent.models.AccessListRoleBindingsSuccessResponseInner;
import com.azure.resourcemanager.confluent.fluent.models.AccessListServiceAccountsSuccessResponseInner;
import com.azure.resourcemanager.confluent.fluent.models.AccessListUsersSuccessResponseInner;
+import com.azure.resourcemanager.confluent.fluent.models.AccessRoleBindingNameListSuccessResponseInner;
import com.azure.resourcemanager.confluent.fluent.models.InvitationRecordInner;
+import com.azure.resourcemanager.confluent.models.AccessCreateRoleBindingRequestModel;
import com.azure.resourcemanager.confluent.models.AccessInviteUserAccountModel;
import com.azure.resourcemanager.confluent.models.ListAccessRequestModel;
+import com.azure.resourcemanager.confluent.models.RoleBindingRecord;
import reactor.core.publisher.Mono;
/**
@@ -142,12 +146,45 @@ Mono> listRoleBindings(@Hos
@PathParam("organizationName") String organizationName,
@BodyParam("application/json") ListAccessRequestModel body, @HeaderParam("Accept") String accept,
Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/createRoleBinding")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createRoleBinding(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName,
+ @BodyParam("application/json") AccessCreateRoleBindingRequestModel body,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/deleteRoleBinding/{roleBindingId}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> deleteRoleBinding(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @PathParam("roleBindingId") String roleBindingId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listRoleBindingNameList")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listRoleBindingNameList(
+ @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName,
+ @BodyParam("application/json") ListAccessRequestModel body, @HeaderParam("Accept") String accept,
+ Context context);
}
/**
* Organization users details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -189,7 +226,7 @@ private Mono> listUsersWithRespons
/**
* Organization users details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @param context The context to associate with this operation.
@@ -231,7 +268,7 @@ private Mono> listUsersWithRespons
/**
* Organization users details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -249,7 +286,7 @@ private Mono listUsersAsync(String resource
/**
* Organization users details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @param context The context to associate with this operation.
@@ -267,7 +304,7 @@ public Response listUsersWithResponse(Strin
/**
* Organization users details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -284,7 +321,7 @@ public AccessListUsersSuccessResponseInner listUsers(String resourceGroupName, S
/**
* Organization service accounts details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -327,7 +364,7 @@ private Mono> listServic
/**
* Organization service accounts details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @param context The context to associate with this operation.
@@ -370,7 +407,7 @@ private Mono> listServic
/**
* Organization service accounts details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -388,7 +425,7 @@ private Mono listServiceAccountsA
/**
* Organization service accounts details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @param context The context to associate with this operation.
@@ -406,7 +443,7 @@ public Response listServiceAccoun
/**
* Organization service accounts details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -423,7 +460,7 @@ public AccessListServiceAccountsSuccessResponseInner listServiceAccounts(String
/**
* Organization accounts invitation details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -465,7 +502,7 @@ private Mono> listInvitation
/**
* Organization accounts invitation details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @param context The context to associate with this operation.
@@ -507,7 +544,7 @@ private Mono> listInvitation
/**
* Organization accounts invitation details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -525,7 +562,7 @@ private Mono listInvitationsAsync(Str
/**
* Organization accounts invitation details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @param context The context to associate with this operation.
@@ -543,7 +580,7 @@ public Response listInvitationsWithRe
/**
* Organization accounts invitation details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body List Access Request Model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -560,7 +597,7 @@ public AccessListInvitationsSuccessResponseInner listInvitations(String resource
/**
* Invite user to the organization.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Invite user account model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -602,7 +639,7 @@ private Mono> inviteUserWithResponseAsync(String
/**
* Invite user to the organization.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Invite user account model.
* @param context The context to associate with this operation.
@@ -644,7 +681,7 @@ private Mono> inviteUserWithResponseAsync(String
/**
* Invite user to the organization.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Invite user account model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -662,7 +699,7 @@ private Mono inviteUserAsync(String resourceGroupName, St
/**
* Invite user to the organization.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Invite user account model.
* @param context The context to associate with this operation.
@@ -680,7 +717,7 @@ public Response inviteUserWithResponse(String resourceGro
/**
* Invite user to the organization.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Invite user account model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -703,7 +740,8 @@ public InvitationRecordInner inviteUser(String resourceGroupName, String organiz
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list environments success response along with {@link Response} on successful completion of {@link Mono}.
+ * @return details of the environments returned on successful response along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listEnvironmentsWithResponseAsync(
@@ -746,7 +784,8 @@ private Mono> listEnvironme
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list environments success response along with {@link Response} on successful completion of {@link Mono}.
+ * @return details of the environments returned on successful response along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listEnvironmentsWithResponseAsync(
@@ -787,7 +826,7 @@ private Mono> listEnvironme
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list environments success response on successful completion of {@link Mono}.
+ * @return details of the environments returned on successful response on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listEnvironmentsAsync(String resourceGroupName,
@@ -806,7 +845,7 @@ private Mono listEnvironmentsAsync(S
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list environments success response along with {@link Response}.
+ * @return details of the environments returned on successful response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response listEnvironmentsWithResponse(String resourceGroupName,
@@ -823,7 +862,7 @@ public Response listEnvironmentsWith
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list environments success response.
+ * @return details of the environments returned on successful response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public AccessListEnvironmentsSuccessResponseInner listEnvironments(String resourceGroupName,
@@ -840,7 +879,8 @@ public AccessListEnvironmentsSuccessResponseInner listEnvironments(String resour
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list cluster success response along with {@link Response} on successful completion of {@link Mono}.
+ * @return details of the clusters returned on successful response along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
@@ -883,7 +923,8 @@ public AccessListEnvironmentsSuccessResponseInner listEnvironments(String resour
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list cluster success response along with {@link Response} on successful completion of {@link Mono}.
+ * @return details of the clusters returned on successful response along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listClustersWithResponseAsync(
@@ -924,7 +965,7 @@ private Mono> listClustersWithRe
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list cluster success response on successful completion of {@link Mono}.
+ * @return details of the clusters returned on successful response on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listClustersAsync(String resourceGroupName,
@@ -943,7 +984,7 @@ private Mono listClustersAsync(String res
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list cluster success response along with {@link Response}.
+ * @return details of the clusters returned on successful response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response listClustersWithResponse(String resourceGroupName,
@@ -960,7 +1001,7 @@ public Response listClustersWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list cluster success response.
+ * @return details of the clusters returned on successful response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public AccessListClusterSuccessResponseInner listClusters(String resourceGroupName, String organizationName,
@@ -977,7 +1018,8 @@ public AccessListClusterSuccessResponseInner listClusters(String resourceGroupNa
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list cluster success response along with {@link Response} on successful completion of {@link Mono}.
+ * @return details of the role bindings returned on successful response along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listRoleBindingsWithResponseAsync(
@@ -1020,7 +1062,8 @@ private Mono> listRoleBindi
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list cluster success response along with {@link Response} on successful completion of {@link Mono}.
+ * @return details of the role bindings returned on successful response along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listRoleBindingsWithResponseAsync(
@@ -1061,7 +1104,7 @@ private Mono> listRoleBindi
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list cluster success response on successful completion of {@link Mono}.
+ * @return details of the role bindings returned on successful response on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono listRoleBindingsAsync(String resourceGroupName,
@@ -1080,7 +1123,7 @@ private Mono listRoleBindingsAsync(S
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list cluster success response along with {@link Response}.
+ * @return details of the role bindings returned on successful response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response listRoleBindingsWithResponse(String resourceGroupName,
@@ -1097,11 +1140,422 @@ public Response listRoleBindingsWith
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list cluster success response.
+ * @return details of the role bindings returned on successful response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public AccessListRoleBindingsSuccessResponseInner listRoleBindings(String resourceGroupName,
String organizationName, ListAccessRequestModel body) {
return listRoleBindingsWithResponse(resourceGroupName, organizationName, body, Context.NONE).getValue();
}
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body Create role binding Request Model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 on principal, role name and crn pattern of a role binding along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createRoleBindingWithResponseAsync(String resourceGroupName,
+ String organizationName, AccessCreateRoleBindingRequestModel body) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createRoleBinding(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, body, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body Create role binding Request Model.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details on principal, role name and crn pattern of a role binding along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createRoleBindingWithResponseAsync(String resourceGroupName,
+ String organizationName, AccessCreateRoleBindingRequestModel body, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createRoleBinding(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, body, accept, context);
+ }
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body Create role binding Request Model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 on principal, role name and crn pattern of a role binding on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createRoleBindingAsync(String resourceGroupName, String organizationName,
+ AccessCreateRoleBindingRequestModel body) {
+ return createRoleBindingWithResponseAsync(resourceGroupName, organizationName, body)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body Create role binding Request Model.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details on principal, role name and crn pattern of a role binding along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createRoleBindingWithResponse(String resourceGroupName, String organizationName,
+ AccessCreateRoleBindingRequestModel body, Context context) {
+ return createRoleBindingWithResponseAsync(resourceGroupName, organizationName, body, context).block();
+ }
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body Create role binding Request Model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 on principal, role name and crn pattern of a role binding.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public RoleBindingRecord createRoleBinding(String resourceGroupName, String organizationName,
+ AccessCreateRoleBindingRequestModel body) {
+ return createRoleBindingWithResponse(resourceGroupName, organizationName, body, Context.NONE).getValue();
+ }
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param roleBindingId Confluent Role binding id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException 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.SINGLE)
+ private Mono> deleteRoleBindingWithResponseAsync(String resourceGroupName, String organizationName,
+ String roleBindingId) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (roleBindingId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter roleBindingId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.deleteRoleBinding(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, roleBindingId, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param roleBindingId Confluent Role binding id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteRoleBindingWithResponseAsync(String resourceGroupName, String organizationName,
+ String roleBindingId, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (roleBindingId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter roleBindingId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.deleteRoleBinding(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, roleBindingId, accept, context);
+ }
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param roleBindingId Confluent Role binding id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteRoleBindingAsync(String resourceGroupName, String organizationName, String roleBindingId) {
+ return deleteRoleBindingWithResponseAsync(resourceGroupName, organizationName, roleBindingId)
+ .flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param roleBindingId Confluent Role binding id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteRoleBindingWithResponse(String resourceGroupName, String organizationName,
+ String roleBindingId, Context context) {
+ return deleteRoleBindingWithResponseAsync(resourceGroupName, organizationName, roleBindingId, context).block();
+ }
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param roleBindingId Confluent Role binding id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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)
+ public void deleteRoleBinding(String resourceGroupName, String organizationName, String roleBindingId) {
+ deleteRoleBindingWithResponse(resourceGroupName, organizationName, roleBindingId, Context.NONE);
+ }
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body List Access Request Model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 of the role binding names returned on successful response along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listRoleBindingNameListWithResponseAsync(
+ String resourceGroupName, String organizationName, ListAccessRequestModel body) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listRoleBindingNameList(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, body, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body List Access Request Model.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the role binding names returned on successful response along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listRoleBindingNameListWithResponseAsync(
+ String resourceGroupName, String organizationName, ListAccessRequestModel body, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listRoleBindingNameList(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, body, accept, context);
+ }
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body List Access Request Model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 of the role binding names returned on successful response on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listRoleBindingNameListAsync(String resourceGroupName,
+ String organizationName, ListAccessRequestModel body) {
+ return listRoleBindingNameListWithResponseAsync(resourceGroupName, organizationName, body)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body List Access Request Model.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details of the role binding names returned on successful response along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listRoleBindingNameListWithResponse(
+ String resourceGroupName, String organizationName, ListAccessRequestModel body, Context context) {
+ return listRoleBindingNameListWithResponseAsync(resourceGroupName, organizationName, body, context).block();
+ }
+
+ /**
+ * Organization role bindings.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body List Access Request Model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 of the role binding names returned on successful response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AccessRoleBindingNameListSuccessResponseInner listRoleBindingNameList(String resourceGroupName,
+ String organizationName, ListAccessRequestModel body) {
+ return listRoleBindingNameListWithResponse(resourceGroupName, organizationName, body, Context.NONE).getValue();
+ }
}
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/AccessImpl.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/AccessImpl.java
index c00be662e1a4..5ac1b1f6f2c3 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/AccessImpl.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/AccessImpl.java
@@ -15,8 +15,10 @@
import com.azure.resourcemanager.confluent.fluent.models.AccessListRoleBindingsSuccessResponseInner;
import com.azure.resourcemanager.confluent.fluent.models.AccessListServiceAccountsSuccessResponseInner;
import com.azure.resourcemanager.confluent.fluent.models.AccessListUsersSuccessResponseInner;
+import com.azure.resourcemanager.confluent.fluent.models.AccessRoleBindingNameListSuccessResponseInner;
import com.azure.resourcemanager.confluent.fluent.models.InvitationRecordInner;
import com.azure.resourcemanager.confluent.models.Access;
+import com.azure.resourcemanager.confluent.models.AccessCreateRoleBindingRequestModel;
import com.azure.resourcemanager.confluent.models.AccessInviteUserAccountModel;
import com.azure.resourcemanager.confluent.models.AccessListClusterSuccessResponse;
import com.azure.resourcemanager.confluent.models.AccessListEnvironmentsSuccessResponse;
@@ -24,8 +26,10 @@
import com.azure.resourcemanager.confluent.models.AccessListRoleBindingsSuccessResponse;
import com.azure.resourcemanager.confluent.models.AccessListServiceAccountsSuccessResponse;
import com.azure.resourcemanager.confluent.models.AccessListUsersSuccessResponse;
+import com.azure.resourcemanager.confluent.models.AccessRoleBindingNameListSuccessResponse;
import com.azure.resourcemanager.confluent.models.InvitationRecord;
import com.azure.resourcemanager.confluent.models.ListAccessRequestModel;
+import com.azure.resourcemanager.confluent.models.RoleBindingRecord;
public final class AccessImpl implements Access {
private static final ClientLogger LOGGER = new ClientLogger(AccessImpl.class);
@@ -199,6 +203,49 @@ public AccessListRoleBindingsSuccessResponse listRoleBindings(String resourceGro
}
}
+ public Response createRoleBindingWithResponse(String resourceGroupName, String organizationName,
+ AccessCreateRoleBindingRequestModel body, Context context) {
+ return this.serviceClient().createRoleBindingWithResponse(resourceGroupName, organizationName, body, context);
+ }
+
+ public RoleBindingRecord createRoleBinding(String resourceGroupName, String organizationName,
+ AccessCreateRoleBindingRequestModel body) {
+ return this.serviceClient().createRoleBinding(resourceGroupName, organizationName, body);
+ }
+
+ public Response deleteRoleBindingWithResponse(String resourceGroupName, String organizationName,
+ String roleBindingId, Context context) {
+ return this.serviceClient().deleteRoleBindingWithResponse(resourceGroupName, organizationName, roleBindingId,
+ context);
+ }
+
+ public void deleteRoleBinding(String resourceGroupName, String organizationName, String roleBindingId) {
+ this.serviceClient().deleteRoleBinding(resourceGroupName, organizationName, roleBindingId);
+ }
+
+ public Response listRoleBindingNameListWithResponse(
+ String resourceGroupName, String organizationName, ListAccessRequestModel body, Context context) {
+ Response inner = this.serviceClient()
+ .listRoleBindingNameListWithResponse(resourceGroupName, organizationName, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new AccessRoleBindingNameListSuccessResponseImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public AccessRoleBindingNameListSuccessResponse listRoleBindingNameList(String resourceGroupName,
+ String organizationName, ListAccessRequestModel body) {
+ AccessRoleBindingNameListSuccessResponseInner inner
+ = this.serviceClient().listRoleBindingNameList(resourceGroupName, organizationName, body);
+ if (inner != null) {
+ return new AccessRoleBindingNameListSuccessResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
private AccessClient serviceClient() {
return this.innerClient;
}
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/AccessRoleBindingNameListSuccessResponseImpl.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/AccessRoleBindingNameListSuccessResponseImpl.java
new file mode 100644
index 000000000000..7401b0de29d0
--- /dev/null
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/AccessRoleBindingNameListSuccessResponseImpl.java
@@ -0,0 +1,48 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confluent.implementation;
+
+import com.azure.resourcemanager.confluent.fluent.models.AccessRoleBindingNameListSuccessResponseInner;
+import com.azure.resourcemanager.confluent.models.AccessRoleBindingNameListSuccessResponse;
+import com.azure.resourcemanager.confluent.models.ConfluentListMetadata;
+import java.util.Collections;
+import java.util.List;
+
+public final class AccessRoleBindingNameListSuccessResponseImpl implements AccessRoleBindingNameListSuccessResponse {
+ private AccessRoleBindingNameListSuccessResponseInner innerObject;
+
+ private final com.azure.resourcemanager.confluent.ConfluentManager serviceManager;
+
+ AccessRoleBindingNameListSuccessResponseImpl(AccessRoleBindingNameListSuccessResponseInner innerObject,
+ com.azure.resourcemanager.confluent.ConfluentManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String kind() {
+ return this.innerModel().kind();
+ }
+
+ public ConfluentListMetadata metadata() {
+ return this.innerModel().metadata();
+ }
+
+ public List data() {
+ List inner = this.innerModel().data();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public AccessRoleBindingNameListSuccessResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.confluent.ConfluentManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/ApiKeyRecordImpl.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/ApiKeyRecordImpl.java
new file mode 100644
index 000000000000..6ef762605edd
--- /dev/null
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/ApiKeyRecordImpl.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confluent.implementation;
+
+import com.azure.resourcemanager.confluent.fluent.models.ApiKeyRecordInner;
+import com.azure.resourcemanager.confluent.models.ApiKeyRecord;
+import com.azure.resourcemanager.confluent.models.ApiKeySpecEntity;
+import com.azure.resourcemanager.confluent.models.SCMetadataEntity;
+
+public final class ApiKeyRecordImpl implements ApiKeyRecord {
+ private ApiKeyRecordInner innerObject;
+
+ private final com.azure.resourcemanager.confluent.ConfluentManager serviceManager;
+
+ ApiKeyRecordImpl(ApiKeyRecordInner innerObject,
+ com.azure.resourcemanager.confluent.ConfluentManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String kind() {
+ return this.innerModel().kind();
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public SCMetadataEntity metadata() {
+ return this.innerModel().metadata();
+ }
+
+ public ApiKeySpecEntity spec() {
+ return this.innerModel().spec();
+ }
+
+ public ApiKeyRecordInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.confluent.ConfluentManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/ConfluentManagementClientBuilder.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/ConfluentManagementClientBuilder.java
index 210846f47877..eb9536657671 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/ConfluentManagementClientBuilder.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/ConfluentManagementClientBuilder.java
@@ -20,12 +20,12 @@
@ServiceClientBuilder(serviceClients = { ConfluentManagementClientImpl.class })
public final class ConfluentManagementClientBuilder {
/*
- * The ID of the target subscription. The value must be an UUID.
+ * Microsoft Azure subscription id
*/
private String subscriptionId;
/**
- * Sets The ID of the target subscription. The value must be an UUID.
+ * Sets Microsoft Azure subscription id.
*
* @param subscriptionId the subscriptionId value.
* @return the ConfluentManagementClientBuilder.
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/ConfluentManagementClientImpl.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/ConfluentManagementClientImpl.java
index b8c3ff539f42..0dfbc97f22b5 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/ConfluentManagementClientImpl.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/ConfluentManagementClientImpl.java
@@ -43,12 +43,12 @@
@ServiceClient(builder = ConfluentManagementClientBuilder.class)
public final class ConfluentManagementClientImpl implements ConfluentManagementClient {
/**
- * The ID of the target subscription. The value must be an UUID.
+ * Microsoft Azure subscription id.
*/
private final String subscriptionId;
/**
- * Gets The ID of the target subscription. The value must be an UUID.
+ * Gets Microsoft Azure subscription id.
*
* @return the subscriptionId value.
*/
@@ -203,7 +203,7 @@ public AccessClient getAccess() {
* @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 The ID of the target subscription. The value must be an UUID.
+ * @param subscriptionId Microsoft Azure subscription id.
* @param endpoint server parameter.
*/
ConfluentManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
@@ -213,7 +213,7 @@ public AccessClient getAccess() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2023-08-22";
+ this.apiVersion = "2024-02-13";
this.marketplaceAgreements = new MarketplaceAgreementsClientImpl(this);
this.organizationOperations = new OrganizationOperationsClientImpl(this);
this.organizations = new OrganizationsClientImpl(this);
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/ListRegionsSuccessResponseImpl.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/ListRegionsSuccessResponseImpl.java
new file mode 100644
index 000000000000..8c98694adbbc
--- /dev/null
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/ListRegionsSuccessResponseImpl.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.confluent.implementation;
+
+import com.azure.resourcemanager.confluent.fluent.models.ListRegionsSuccessResponseInner;
+import com.azure.resourcemanager.confluent.models.ListRegionsSuccessResponse;
+import com.azure.resourcemanager.confluent.models.RegionRecord;
+import java.util.Collections;
+import java.util.List;
+
+public final class ListRegionsSuccessResponseImpl implements ListRegionsSuccessResponse {
+ private ListRegionsSuccessResponseInner innerObject;
+
+ private final com.azure.resourcemanager.confluent.ConfluentManager serviceManager;
+
+ ListRegionsSuccessResponseImpl(ListRegionsSuccessResponseInner innerObject,
+ com.azure.resourcemanager.confluent.ConfluentManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List data() {
+ List inner = this.innerModel().data();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ListRegionsSuccessResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.confluent.ConfluentManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/MarketplaceAgreementsImpl.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/MarketplaceAgreementsImpl.java
index 6c779e9687f9..de73f898a3d8 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/MarketplaceAgreementsImpl.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/MarketplaceAgreementsImpl.java
@@ -29,12 +29,14 @@ public MarketplaceAgreementsImpl(MarketplaceAgreementsClient innerClient,
public PagedIterable list() {
PagedIterable inner = this.serviceClient().list();
- return Utils.mapPage(inner, inner1 -> new ConfluentAgreementResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new ConfluentAgreementResourceImpl(inner1, this.manager()));
}
public PagedIterable list(Context context) {
PagedIterable inner = this.serviceClient().list(context);
- return Utils.mapPage(inner, inner1 -> new ConfluentAgreementResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new ConfluentAgreementResourceImpl(inner1, this.manager()));
}
public Response createWithResponse(ConfluentAgreementResourceInner body,
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/OrganizationOperationsImpl.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/OrganizationOperationsImpl.java
index 0522091727eb..f5d39009e232 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/OrganizationOperationsImpl.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/OrganizationOperationsImpl.java
@@ -27,12 +27,12 @@ public OrganizationOperationsImpl(OrganizationOperationsClient innerClient,
public PagedIterable list() {
PagedIterable inner = this.serviceClient().list();
- return Utils.mapPage(inner, inner1 -> new OperationResultImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationResultImpl(inner1, this.manager()));
}
public PagedIterable list(Context context) {
PagedIterable inner = this.serviceClient().list(context);
- return Utils.mapPage(inner, inner1 -> new OperationResultImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationResultImpl(inner1, this.manager()));
}
private OrganizationOperationsClient serviceClient() {
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/OrganizationResourceImpl.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/OrganizationResourceImpl.java
index 5e999c3e2cad..4a4c2c0e2b2e 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/OrganizationResourceImpl.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/OrganizationResourceImpl.java
@@ -4,11 +4,14 @@
package com.azure.resourcemanager.confluent.implementation;
+import com.azure.core.http.rest.Response;
import com.azure.core.management.Region;
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.confluent.fluent.models.OrganizationResourceInner;
import com.azure.resourcemanager.confluent.models.LinkOrganization;
+import com.azure.resourcemanager.confluent.models.ListAccessRequestModel;
+import com.azure.resourcemanager.confluent.models.ListRegionsSuccessResponse;
import com.azure.resourcemanager.confluent.models.OfferDetail;
import com.azure.resourcemanager.confluent.models.OrganizationResource;
import com.azure.resourcemanager.confluent.models.OrganizationResourceUpdate;
@@ -151,8 +154,8 @@ public OrganizationResource apply(Context context) {
com.azure.resourcemanager.confluent.ConfluentManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.organizationName = Utils.getValueFromIdByName(innerObject.id(), "organizations");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.organizationName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "organizations");
}
public OrganizationResource refresh() {
@@ -167,6 +170,15 @@ public OrganizationResource refresh(Context context) {
return this;
}
+ public Response listRegionsWithResponse(ListAccessRequestModel body, Context context) {
+ return serviceManager.organizations().listRegionsWithResponse(resourceGroupName, organizationName, body,
+ context);
+ }
+
+ public ListRegionsSuccessResponse listRegions(ListAccessRequestModel body) {
+ return serviceManager.organizations().listRegions(resourceGroupName, organizationName, body);
+ }
+
public OrganizationResourceImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
diff --git a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/OrganizationsClientImpl.java b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/OrganizationsClientImpl.java
index 3d6742c3946d..5857f58d2f18 100644
--- a/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/OrganizationsClientImpl.java
+++ b/sdk/confluent/azure-resourcemanager-confluent/src/main/java/com/azure/resourcemanager/confluent/implementation/OrganizationsClientImpl.java
@@ -14,6 +14,7 @@
import com.azure.core.annotation.HostParam;
import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
import com.azure.core.annotation.Put;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
@@ -33,7 +34,17 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.confluent.fluent.OrganizationsClient;
+import com.azure.resourcemanager.confluent.fluent.models.ApiKeyRecordInner;
+import com.azure.resourcemanager.confluent.fluent.models.ListRegionsSuccessResponseInner;
import com.azure.resourcemanager.confluent.fluent.models.OrganizationResourceInner;
+import com.azure.resourcemanager.confluent.fluent.models.SCClusterRecordInner;
+import com.azure.resourcemanager.confluent.fluent.models.SCEnvironmentRecordInner;
+import com.azure.resourcemanager.confluent.fluent.models.SchemaRegistryClusterRecordInner;
+import com.azure.resourcemanager.confluent.models.CreateApiKeyModel;
+import com.azure.resourcemanager.confluent.models.GetEnvironmentsResponse;
+import com.azure.resourcemanager.confluent.models.ListAccessRequestModel;
+import com.azure.resourcemanager.confluent.models.ListClustersSuccessResponse;
+import com.azure.resourcemanager.confluent.models.ListSchemaRegistryClustersResponse;
import com.azure.resourcemanager.confluent.models.OrganizationResourceListResult;
import com.azure.resourcemanager.confluent.models.OrganizationResourceUpdate;
import java.nio.ByteBuffer;
@@ -131,6 +142,112 @@ Mono>> delete(@HostParam("$host") String endpoint,
@PathParam("organizationName") String organizationName, @HeaderParam("Accept") String accept,
Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listEnvironments(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @QueryParam("pageSize") Integer pageSize,
+ @QueryParam("pageToken") String pageToken, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getEnvironmentById(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @PathParam("environmentId") String environmentId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listClusters(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @PathParam("environmentId") String environmentId,
+ @QueryParam("pageSize") Integer pageSize, @QueryParam("pageToken") String pageToken,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/schemaRegistryClusters")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listSchemaRegistryClusters(
+ @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @PathParam("environmentId") String environmentId,
+ @QueryParam("pageSize") Integer pageSize, @QueryParam("pageToken") String pageToken,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/listRegions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listRegions(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName,
+ @BodyParam("application/json") ListAccessRequestModel body, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/createAPIKey")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createApiKey(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @PathParam("environmentId") String environmentId,
+ @PathParam("clusterId") String clusterId, @BodyParam("application/json") CreateApiKeyModel body,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/apiKeys/{apiKeyId}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> deleteClusterApiKey(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @PathParam("apiKeyId") String apiKeyId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/apiKeys/{apiKeyId}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getClusterApiKey(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @PathParam("apiKeyId") String apiKeyId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/schemaRegistryClusters/{clusterId}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getSchemaRegistryClusterById(
+ @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @PathParam("environmentId") String environmentId,
+ @PathParam("clusterId") String clusterId, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getClusterById(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("organizationName") String organizationName, @PathParam("environmentId") String environmentId,
+ @PathParam("clusterId") String clusterId, @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@@ -146,6 +263,30 @@ Mono> listBySubscriptionNext(
Mono> listByResourceGroupNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
@HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listEnvironmentsNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listClustersNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listSchemaRegistryClustersNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
}
/**
@@ -261,7 +402,7 @@ public PagedIterable list(Context context) {
/**
* List all Organizations under the specified resource group.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -295,7 +436,7 @@ public PagedIterable list(Context context) {
/**
* List all Organizations under the specified resource group.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -330,7 +471,7 @@ private Mono> listByResourceGroupSingle
/**
* List all Organizations under the specified resource group.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -345,7 +486,7 @@ private PagedFlux listByResourceGroupAsync(String res
/**
* List all Organizations under the specified resource group.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -361,7 +502,7 @@ private PagedFlux listByResourceGroupAsync(String res
/**
* List all Organizations under the specified resource group.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -375,7 +516,7 @@ public PagedIterable listByResourceGroup(String resou
/**
* List all Organizations under the specified resource group.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -390,7 +531,7 @@ public PagedIterable listByResourceGroup(String resou
/**
* Get the properties of a specific Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -427,7 +568,7 @@ private Mono> getByResourceGroupWithResponse
/**
* Get the properties of a specific Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -464,7 +605,7 @@ private Mono> getByResourceGroupWithResponse
/**
* Get the properties of a specific Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -480,7 +621,7 @@ private Mono getByResourceGroupAsync(String resourceG
/**
* Get the properties of a specific Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -497,7 +638,7 @@ public Response getByResourceGroupWithResponse(String
/**
* Get the properties of a specific Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -512,7 +653,7 @@ public OrganizationResourceInner getByResourceGroup(String resourceGroupName, St
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Organization resource model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -552,7 +693,7 @@ private Mono>> createWithResponseAsync(String resource
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Organization resource model.
* @param context The context to associate with this operation.
@@ -592,7 +733,7 @@ private Mono>> createWithResponseAsync(String resource
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Organization resource model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -612,7 +753,7 @@ private Mono>> createWithResponseAsync(String resource
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -632,7 +773,7 @@ private Mono>> createWithResponseAsync(String resource
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Organization resource model.
* @param context The context to associate with this operation.
@@ -654,7 +795,7 @@ private PollerFlux, OrganizationResourceIn
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -671,7 +812,7 @@ private PollerFlux, OrganizationResourceIn
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Organization resource model.
* @param context The context to associate with this operation.
@@ -689,7 +830,7 @@ public SyncPoller, OrganizationResourceInn
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Organization resource model.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -707,7 +848,7 @@ private Mono createAsync(String resourceGroupName, St
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -724,7 +865,7 @@ private Mono createAsync(String resourceGroupName, St
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Organization resource model.
* @param context The context to associate with this operation.
@@ -743,7 +884,7 @@ private Mono createAsync(String resourceGroupName, St
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -759,7 +900,7 @@ public OrganizationResourceInner create(String resourceGroupName, String organiz
/**
* Create Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Organization resource model.
* @param context The context to associate with this operation.
@@ -777,7 +918,7 @@ public OrganizationResourceInner create(String resourceGroupName, String organiz
/**
* Update Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Updated Organization resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -817,7 +958,7 @@ private Mono> updateWithResponseAsync(String
/**
* Update Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Updated Organization resource.
* @param context The context to associate with this operation.
@@ -857,7 +998,7 @@ private Mono> updateWithResponseAsync(String
/**
* Update Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -874,7 +1015,7 @@ private Mono updateAsync(String resourceGroupName, St
/**
* Update Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param body Updated Organization resource.
* @param context The context to associate with this operation.
@@ -892,7 +1033,7 @@ public Response updateWithResponse(String resourceGro
/**
* Update Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -908,7 +1049,7 @@ public OrganizationResourceInner update(String resourceGroupName, String organiz
/**
* Delete Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -944,7 +1085,7 @@ private Mono>> deleteWithResponseAsync(String resource
/**
* Delete Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -980,7 +1121,7 @@ private Mono>> deleteWithResponseAsync(String resource
/**
* Delete Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -997,7 +1138,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
/**
* Delete Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1017,7 +1158,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
/**
* Delete Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -1032,7 +1173,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
/**
* Delete Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1049,7 +1190,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
/**
* Delete Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -1065,7 +1206,7 @@ private Mono deleteAsync(String resourceGroupName, String organizationName
/**
* Delete Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1082,7 +1223,7 @@ private Mono deleteAsync(String resourceGroupName, String organizationName
/**
* Delete Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -1096,7 +1237,7 @@ public void delete(String resourceGroupName, String organizationName) {
/**
* Delete Organization resource.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName Resource group name.
* @param organizationName Organization resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1109,113 +1250,1695 @@ public void delete(String resourceGroupName, String organizationName, Context co
}
/**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
+ * Lists of all the environments in a organization.
*
- * The nextLink parameter.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return result of GET request to list Confluent operations along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
+ private Mono> listEnvironmentsSinglePageAsync(String resourceGroupName,
+ String organizationName, Integer pageSize, String pageToken) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ .withContext(context -> service.listEnvironments(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, pageSize, pageToken, accept,
+ context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Get the next page of items.
+ * Lists of all the environments in a organization.
*
- * @param nextLink The URL to get the next list of items
- *
- * The nextLink parameter.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return result of GET request to list Confluent operations along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listBySubscriptionNextSinglePageAsync(String nextLink,
- Context context) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
+ private Mono> listEnvironmentsSinglePageAsync(String resourceGroupName,
+ String organizationName, Integer pageSize, String pageToken, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)
+ return service
+ .listEnvironments(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, organizationName, pageSize, pageToken, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
/**
- * Get the next page of items.
+ * Lists of all the environments in a organization.
*
- * @param nextLink The URL to get the next list of items
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list Confluent operations as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listEnvironmentsAsync(String resourceGroupName, String organizationName,
+ Integer pageSize, String pageToken) {
+ return new PagedFlux<>(
+ () -> listEnvironmentsSinglePageAsync(resourceGroupName, organizationName, pageSize, pageToken),
+ nextLink -> listEnvironmentsNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists of all the environments in a organization.
*
- * The nextLink parameter.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * @return result of GET request to list Confluent operations as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listEnvironmentsAsync(String resourceGroupName,
+ String organizationName) {
+ final Integer pageSize = null;
+ final String pageToken = null;
+ return new PagedFlux<>(
+ () -> listEnvironmentsSinglePageAsync(resourceGroupName, organizationName, pageSize, pageToken),
+ nextLink -> listEnvironmentsNextSinglePageAsync(nextLink));
}
/**
- * Get the next page of items.
+ * Lists of all the environments in a organization.
*
- * @param nextLink The URL to get the next list of items
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list Confluent operations as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listEnvironmentsAsync(String resourceGroupName, String organizationName,
+ Integer pageSize, String pageToken, Context context) {
+ return new PagedFlux<>(
+ () -> listEnvironmentsSinglePageAsync(resourceGroupName, organizationName, pageSize, pageToken, context),
+ nextLink -> listEnvironmentsNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Lists of all the environments in a organization.
*
- * The nextLink parameter.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list Confluent operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listEnvironments(String resourceGroupName, String organizationName) {
+ final Integer pageSize = null;
+ final String pageToken = null;
+ return new PagedIterable<>(listEnvironmentsAsync(resourceGroupName, organizationName, pageSize, pageToken));
+ }
+
+ /**
+ * Lists of all the environments in a organization.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation along with {@link PagedResponse} on successful completion of
+ * @return result of GET request to list Confluent operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listEnvironments(String resourceGroupName, String organizationName,
+ Integer pageSize, String pageToken, Context context) {
+ return new PagedIterable<>(
+ listEnvironmentsAsync(resourceGroupName, organizationName, pageSize, pageToken, context));
+ }
+
+ /**
+ * Get Environment details by environment Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return environment details by environment Id along with {@link Response} on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupNextSinglePageAsync(String nextLink,
- Context context) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ private Mono> getEnvironmentByIdWithResponseAsync(String resourceGroupName,
+ String organizationName, String environmentId) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (environmentId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter environmentId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getEnvironmentById(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, environmentId, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get Environment details by environment Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return environment details by environment Id along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getEnvironmentByIdWithResponseAsync(String resourceGroupName,
+ String organizationName, String environmentId, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (environmentId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter environmentId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getEnvironmentById(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, environmentId, accept, context);
+ }
+
+ /**
+ * Get Environment details by environment Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return environment details by environment Id on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getEnvironmentByIdAsync(String resourceGroupName, String organizationName,
+ String environmentId) {
+ return getEnvironmentByIdWithResponseAsync(resourceGroupName, organizationName, environmentId)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get Environment details by environment Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return environment details by environment Id along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getEnvironmentByIdWithResponse(String resourceGroupName,
+ String organizationName, String environmentId, Context context) {
+ return getEnvironmentByIdWithResponseAsync(resourceGroupName, organizationName, environmentId, context).block();
+ }
+
+ /**
+ * Get Environment details by environment Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return environment details by environment Id.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SCEnvironmentRecordInner getEnvironmentById(String resourceGroupName, String organizationName,
+ String environmentId) {
+ return getEnvironmentByIdWithResponse(resourceGroupName, organizationName, environmentId, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * Lists of all the clusters in a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list clusters in the environment of a confluent organization along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listClustersSinglePageAsync(String resourceGroupName,
+ String organizationName, String environmentId, Integer pageSize, String pageToken) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (environmentId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter environmentId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listClusters(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, environmentId, pageSize,
+ pageToken, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Lists of all the clusters in a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list clusters in the environment of a confluent organization along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listClustersSinglePageAsync(String resourceGroupName,
+ String organizationName, String environmentId, Integer pageSize, String pageToken, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (environmentId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter environmentId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listClusters(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, organizationName, environmentId, pageSize, pageToken, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Lists of all the clusters in a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list clusters in the environment of a confluent organization as paginated
+ * response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listClustersAsync(String resourceGroupName, String organizationName,
+ String environmentId, Integer pageSize, String pageToken) {
+ return new PagedFlux<>(
+ () -> listClustersSinglePageAsync(resourceGroupName, organizationName, environmentId, pageSize, pageToken),
+ nextLink -> listClustersNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists of all the clusters in a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list clusters in the environment of a confluent organization as paginated
+ * response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listClustersAsync(String resourceGroupName, String organizationName,
+ String environmentId) {
+ final Integer pageSize = null;
+ final String pageToken = null;
+ return new PagedFlux<>(
+ () -> listClustersSinglePageAsync(resourceGroupName, organizationName, environmentId, pageSize, pageToken),
+ nextLink -> listClustersNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists of all the clusters in a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list clusters in the environment of a confluent organization as paginated
+ * response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listClustersAsync(String resourceGroupName, String organizationName,
+ String environmentId, Integer pageSize, String pageToken, Context context) {
+ return new PagedFlux<>(() -> listClustersSinglePageAsync(resourceGroupName, organizationName, environmentId,
+ pageSize, pageToken, context), nextLink -> listClustersNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Lists of all the clusters in a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list clusters in the environment of a confluent organization as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listClusters(String resourceGroupName, String organizationName,
+ String environmentId) {
+ final Integer pageSize = null;
+ final String pageToken = null;
+ return new PagedIterable<>(
+ listClustersAsync(resourceGroupName, organizationName, environmentId, pageSize, pageToken));
+ }
+
+ /**
+ * Lists of all the clusters in a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list clusters in the environment of a confluent organization as paginated
+ * response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listClusters(String resourceGroupName, String organizationName,
+ String environmentId, Integer pageSize, String pageToken, Context context) {
+ return new PagedIterable<>(
+ listClustersAsync(resourceGroupName, organizationName, environmentId, pageSize, pageToken, context));
+ }
+
+ /**
+ * Get schema registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema registry clusters along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSchemaRegistryClustersSinglePageAsync(
+ String resourceGroupName, String organizationName, String environmentId, Integer pageSize, String pageToken) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (environmentId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter environmentId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listSchemaRegistryClusters(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName,
+ environmentId, pageSize, pageToken, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get schema registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema registry clusters along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSchemaRegistryClustersSinglePageAsync(
+ String resourceGroupName, String organizationName, String environmentId, Integer pageSize, String pageToken,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (environmentId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter environmentId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listSchemaRegistryClusters(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, environmentId, pageSize,
+ pageToken, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Get schema registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema registry clusters as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listSchemaRegistryClustersAsync(String resourceGroupName,
+ String organizationName, String environmentId, Integer pageSize, String pageToken) {
+ return new PagedFlux<>(() -> listSchemaRegistryClustersSinglePageAsync(resourceGroupName, organizationName,
+ environmentId, pageSize, pageToken), nextLink -> listSchemaRegistryClustersNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get schema registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema registry clusters as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listSchemaRegistryClustersAsync(String resourceGroupName,
+ String organizationName, String environmentId) {
+ final Integer pageSize = null;
+ final String pageToken = null;
+ return new PagedFlux<>(() -> listSchemaRegistryClustersSinglePageAsync(resourceGroupName, organizationName,
+ environmentId, pageSize, pageToken), nextLink -> listSchemaRegistryClustersNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Get schema registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema registry clusters as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listSchemaRegistryClustersAsync(String resourceGroupName,
+ String organizationName, String environmentId, Integer pageSize, String pageToken, Context context) {
+ return new PagedFlux<>(
+ () -> listSchemaRegistryClustersSinglePageAsync(resourceGroupName, organizationName, environmentId,
+ pageSize, pageToken, context),
+ nextLink -> listSchemaRegistryClustersNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Get schema registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema registry clusters as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listSchemaRegistryClusters(String resourceGroupName,
+ String organizationName, String environmentId) {
+ final Integer pageSize = null;
+ final String pageToken = null;
+ return new PagedIterable<>(
+ listSchemaRegistryClustersAsync(resourceGroupName, organizationName, environmentId, pageSize, pageToken));
+ }
+
+ /**
+ * Get schema registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param pageSize Pagination size.
+ * @param pageToken An opaque pagination token to fetch the next set of records.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema registry clusters as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listSchemaRegistryClusters(String resourceGroupName,
+ String organizationName, String environmentId, Integer pageSize, String pageToken, Context context) {
+ return new PagedIterable<>(listSchemaRegistryClustersAsync(resourceGroupName, organizationName, environmentId,
+ pageSize, pageToken, context));
+ }
+
+ /**
+ * cloud provider regions available for creating Schema Registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body List Access Request Model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of POST request to list regions supported by confluent along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listRegionsWithResponseAsync(String resourceGroupName,
+ String organizationName, ListAccessRequestModel body) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listRegions(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, body, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * cloud provider regions available for creating Schema Registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body List Access Request Model.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of POST request to list regions supported by confluent along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listRegionsWithResponseAsync(String resourceGroupName,
+ String organizationName, ListAccessRequestModel body, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listRegions(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, body, accept, context);
+ }
+
+ /**
+ * cloud provider regions available for creating Schema Registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body List Access Request Model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of POST request to list regions supported by confluent on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listRegionsAsync(String resourceGroupName, String organizationName,
+ ListAccessRequestModel body) {
+ return listRegionsWithResponseAsync(resourceGroupName, organizationName, body)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * cloud provider regions available for creating Schema Registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body List Access Request Model.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of POST request to list regions supported by confluent along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listRegionsWithResponse(String resourceGroupName,
+ String organizationName, ListAccessRequestModel body, Context context) {
+ return listRegionsWithResponseAsync(resourceGroupName, organizationName, body, context).block();
+ }
+
+ /**
+ * cloud provider regions available for creating Schema Registry clusters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param body List Access Request Model.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of POST request to list regions supported by confluent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ListRegionsSuccessResponseInner listRegions(String resourceGroupName, String organizationName,
+ ListAccessRequestModel body) {
+ return listRegionsWithResponse(resourceGroupName, organizationName, body, Context.NONE).getValue();
+ }
+
+ /**
+ * Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @param body Request payload for get creating API Key for schema registry Cluster ID or Kafka Cluster ID under a
+ * environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 API key along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createApiKeyWithResponseAsync(String resourceGroupName,
+ String organizationName, String environmentId, String clusterId, CreateApiKeyModel body) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (environmentId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter environmentId is required and cannot be null."));
+ }
+ if (clusterId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterId is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createApiKey(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, environmentId, clusterId, body,
+ accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @param body Request payload for get creating API Key for schema registry Cluster ID or Kafka Cluster ID under a
+ * environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details API key along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createApiKeyWithResponseAsync(String resourceGroupName,
+ String organizationName, String environmentId, String clusterId, CreateApiKeyModel body, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (environmentId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter environmentId is required and cannot be null."));
+ }
+ if (clusterId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterId is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createApiKey(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, environmentId, clusterId, body,
+ accept, context);
+ }
+
+ /**
+ * Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @param body Request payload for get creating API Key for schema registry Cluster ID or Kafka Cluster ID under a
+ * environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 API key on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createApiKeyAsync(String resourceGroupName, String organizationName,
+ String environmentId, String clusterId, CreateApiKeyModel body) {
+ return createApiKeyWithResponseAsync(resourceGroupName, organizationName, environmentId, clusterId, body)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @param body Request payload for get creating API Key for schema registry Cluster ID or Kafka Cluster ID under a
+ * environment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return details API key along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createApiKeyWithResponse(String resourceGroupName, String organizationName,
+ String environmentId, String clusterId, CreateApiKeyModel body, Context context) {
+ return createApiKeyWithResponseAsync(resourceGroupName, organizationName, environmentId, clusterId, body,
+ context).block();
+ }
+
+ /**
+ * Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @param body Request payload for get creating API Key for schema registry Cluster ID or Kafka Cluster ID under a
+ * environment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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 API key.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApiKeyRecordInner createApiKey(String resourceGroupName, String organizationName, String environmentId,
+ String clusterId, CreateApiKeyModel body) {
+ return createApiKeyWithResponse(resourceGroupName, organizationName, environmentId, clusterId, body,
+ Context.NONE).getValue();
+ }
+
+ /**
+ * Deletes API key of a kafka or schema registry cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param apiKeyId Confluent API Key id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException 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.SINGLE)
+ private Mono> deleteClusterApiKeyWithResponseAsync(String resourceGroupName, String organizationName,
+ String apiKeyId) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (apiKeyId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiKeyId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.deleteClusterApiKey(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, apiKeyId, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes API key of a kafka or schema registry cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param apiKeyId Confluent API Key id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteClusterApiKeyWithResponseAsync(String resourceGroupName, String organizationName,
+ String apiKeyId, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (apiKeyId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiKeyId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.deleteClusterApiKey(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, apiKeyId, accept, context);
+ }
+
+ /**
+ * Deletes API key of a kafka or schema registry cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param apiKeyId Confluent API Key id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteClusterApiKeyAsync(String resourceGroupName, String organizationName, String apiKeyId) {
+ return deleteClusterApiKeyWithResponseAsync(resourceGroupName, organizationName, apiKeyId)
+ .flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Deletes API key of a kafka or schema registry cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param apiKeyId Confluent API Key id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteClusterApiKeyWithResponse(String resourceGroupName, String organizationName,
+ String apiKeyId, Context context) {
+ return deleteClusterApiKeyWithResponseAsync(resourceGroupName, organizationName, apiKeyId, context).block();
+ }
+
+ /**
+ * Deletes API key of a kafka or schema registry cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param apiKeyId Confluent API Key id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws 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)
+ public void deleteClusterApiKey(String resourceGroupName, String organizationName, String apiKeyId) {
+ deleteClusterApiKeyWithResponse(resourceGroupName, organizationName, apiKeyId, Context.NONE);
+ }
+
+ /**
+ * Get API key details of a kafka or schema registry cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param apiKeyId Confluent API Key id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return aPI key details of a kafka or schema registry cluster along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getClusterApiKeyWithResponseAsync(String resourceGroupName,
+ String organizationName, String apiKeyId) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (apiKeyId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiKeyId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getClusterApiKey(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, apiKeyId, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get API key details of a kafka or schema registry cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param apiKeyId Confluent API Key id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return aPI key details of a kafka or schema registry cluster along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getClusterApiKeyWithResponseAsync(String resourceGroupName,
+ String organizationName, String apiKeyId, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (apiKeyId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter apiKeyId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getClusterApiKey(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, apiKeyId, accept, context);
+ }
+
+ /**
+ * Get API key details of a kafka or schema registry cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param apiKeyId Confluent API Key id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return aPI key details of a kafka or schema registry cluster on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getClusterApiKeyAsync(String resourceGroupName, String organizationName,
+ String apiKeyId) {
+ return getClusterApiKeyWithResponseAsync(resourceGroupName, organizationName, apiKeyId)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get API key details of a kafka or schema registry cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param apiKeyId Confluent API Key id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return aPI key details of a kafka or schema registry cluster along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getClusterApiKeyWithResponse(String resourceGroupName, String organizationName,
+ String apiKeyId, Context context) {
+ return getClusterApiKeyWithResponseAsync(resourceGroupName, organizationName, apiKeyId, context).block();
+ }
+
+ /**
+ * Get API key details of a kafka or schema registry cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param apiKeyId Confluent API Key id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return aPI key details of a kafka or schema registry cluster.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ApiKeyRecordInner getClusterApiKey(String resourceGroupName, String organizationName, String apiKeyId) {
+ return getClusterApiKeyWithResponse(resourceGroupName, organizationName, apiKeyId, Context.NONE).getValue();
+ }
+
+ /**
+ * Get schema registry cluster by Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema registry cluster by Id along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getSchemaRegistryClusterByIdWithResponseAsync(
+ String resourceGroupName, String organizationName, String environmentId, String clusterId) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (environmentId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter environmentId is required and cannot be null."));
+ }
+ if (clusterId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getSchemaRegistryClusterById(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, organizationName,
+ environmentId, clusterId, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get schema registry cluster by Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema registry cluster by Id along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getSchemaRegistryClusterByIdWithResponseAsync(
+ String resourceGroupName, String organizationName, String environmentId, String clusterId, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (environmentId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter environmentId is required and cannot be null."));
+ }
+ if (clusterId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getSchemaRegistryClusterById(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, environmentId, clusterId, accept,
+ context);
+ }
+
+ /**
+ * Get schema registry cluster by Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema registry cluster by Id on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getSchemaRegistryClusterByIdAsync(String resourceGroupName,
+ String organizationName, String environmentId, String clusterId) {
+ return getSchemaRegistryClusterByIdWithResponseAsync(resourceGroupName, organizationName, environmentId,
+ clusterId).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get schema registry cluster by Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema registry cluster by Id along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getSchemaRegistryClusterByIdWithResponse(String resourceGroupName,
+ String organizationName, String environmentId, String clusterId, Context context) {
+ return getSchemaRegistryClusterByIdWithResponseAsync(resourceGroupName, organizationName, environmentId,
+ clusterId, context).block();
+ }
+
+ /**
+ * Get schema registry cluster by Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return schema registry cluster by Id.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SchemaRegistryClusterRecordInner getSchemaRegistryClusterById(String resourceGroupName,
+ String organizationName, String environmentId, String clusterId) {
+ return getSchemaRegistryClusterByIdWithResponse(resourceGroupName, organizationName, environmentId, clusterId,
+ Context.NONE).getValue();
+ }
+
+ /**
+ * Get cluster by Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster by Id along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getClusterByIdWithResponseAsync(String resourceGroupName,
+ String organizationName, String environmentId, String clusterId) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (environmentId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter environmentId is required and cannot be null."));
+ }
+ if (clusterId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getClusterById(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, environmentId, clusterId, accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get cluster by Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster by Id along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getClusterByIdWithResponseAsync(String resourceGroupName,
+ String organizationName, String environmentId, String clusterId, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (organizationName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter organizationName is required and cannot be null."));
+ }
+ if (environmentId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter environmentId is required and cannot be null."));
+ }
+ if (clusterId == null) {
+ return Mono.error(new IllegalArgumentException("Parameter clusterId is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getClusterById(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, organizationName, environmentId, clusterId, accept,
+ context);
+ }
+
+ /**
+ * Get cluster by Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster by Id on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getClusterByIdAsync(String resourceGroupName, String organizationName,
+ String environmentId, String clusterId) {
+ return getClusterByIdWithResponseAsync(resourceGroupName, organizationName, environmentId, clusterId)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get cluster by Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster by Id along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getClusterByIdWithResponse(String resourceGroupName, String organizationName,
+ String environmentId, String clusterId, Context context) {
+ return getClusterByIdWithResponseAsync(resourceGroupName, organizationName, environmentId, clusterId, context)
+ .block();
+ }
+
+ /**
+ * Get cluster by Id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param organizationName Organization resource name.
+ * @param environmentId Confluent environment id.
+ * @param clusterId Confluent kafka or schema registry cluster id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return cluster by Id.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public SCClusterRecordInner getClusterById(String resourceGroupName, String organizationName, String environmentId,
+ String clusterId) {
+ return getClusterByIdWithResponse(resourceGroupName, organizationName, environmentId, clusterId, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
return Mono.error(
@@ -1227,4 +2950,183 @@ private Mono> listByResourceGroupNextSi
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list Confluent operations along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listEnvironmentsNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listEnvironmentsNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list Confluent operations along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listEnvironmentsNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listEnvironmentsNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list clusters in the environment of a confluent organization along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listClustersNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listClustersNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list clusters in the environment of a confluent organization along with
+ * {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listClustersNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listClustersNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list schema registry clusters in the environment of a confluent organization
+ * along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listSchemaRegistryClustersNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listSchemaRegistryClustersNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of GET request to list schema registry clusters in the environment of a confluent organization
+ * along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono