@@ -42,6 +42,7 @@ using Microsoft.DocumentDB;
4242@@ clientName (PreviewFeature , "MongoClusterPreviewFeature" , "csharp" );
4343@@ clientName (PromoteMode , "MongoClusterPromoteMode" , "csharp" );
4444@@ clientName (PromoteOption , "MongoClusterPromoteOption" , "csharp" );
45+ @@ clientName (PromoteReplicaRequest , "PromoteReplicaContent" , "csharp" );
4546@@ clientName (ProvisioningState , "MongoClusterProvisioningState" , "csharp" );
4647@@ clientName (Replica , "MongoClusterReplica" , "csharp" );
4748@@ clientName (ReplicationProperties ,
@@ -67,6 +68,8 @@ using Microsoft.DocumentDB;
6768 "MongoClusterFirewallRuleProperties" ,
6869 "csharp"
6970);
71+ @@ clientName (FirewallRuleProperties .startIpAddress , "startIPAddress" );
72+ @@ clientName (FirewallRuleProperties .endIpAddress , "endIPAddress" );
7073@@ clientName (PrivateEndpointConnectionResource ,
7174 "MongoClusterPrivateEndpointConnectionResource" ,
7275 "csharp"
@@ -75,6 +78,12 @@ using Microsoft.DocumentDB;
7578 "MongoClusterPrivateEndpointConnectionProperties" ,
7679 "csharp"
7780);
81+ @@ clientName (Microsoft .DocumentDB .PrivateLinkResource ,
82+ "MongoClusterPrivateLinkResourceData" ,
83+ "csharp"
84+ );
85+ @@ clientName (PrivateLinks .listByMongoCluster , "GetPrivateLinks" , "csharp" );
86+ @@ clientName (Replicas .listByParent , "GetReplicasByParent" , "csharp" );
7887@@ clientName (ListConnectionStringsResult ,
7988 "MongoClusterConnectionStringsResult" ,
8089 "csharp"
@@ -109,3 +118,17 @@ using Microsoft.DocumentDB;
109118@@ clientName (StorageProperties , "MongoClusterStorageProperties" , "csharp" );
110119@@ clientName (StorageType , "MongoClusterStorageType" , "csharp" );
111120@@ clientName (UserRole , "MongoClusterUserRole" , "csharp" );
121+
122+ // we add this model in this namespace in order to replace some models with this model via alternateType decorator
123+ namespace Azure .ResourceManager .Models {
124+ /** represents a reference to an existing resource by its id */
125+ model SubResource {
126+ /** the id */
127+ id ? : Azure .Core .armResourceIdentifier ;
128+ }
129+ }
130+
131+ @@ alternateType (PrivateEndpointConnectionProperties .privateEndpoint ,
132+ Azure .ResourceManager .Models .SubResource ,
133+ "csharp"
134+ );
0 commit comments