MongoDBCollectionResource IOperationSource <MongoDBCollectionResource> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = MongoDBCollectionData.DeserializeMongoDBCollectionData(document.RootElement);

            return(new MongoDBCollectionResource(_client, data));
        }
 internal MongoDBCollection(ArmResource options, MongoDBCollectionData resource) : base(options, resource.Id)
 {
     HasData                     = true;
     _data                       = resource;
     _clientDiagnostics          = new ClientDiagnostics(ClientOptions);
     _mongoDBResourcesRestClient = new MongoDBResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal MongoDBCollection(ArmClient armClient, MongoDBCollectionData data) : this(armClient, data.Id)
 {
     HasData = true;
     _data   = data;
 }
 internal MongoDBCollectionResource(ArmClient client, MongoDBCollectionData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }