GremlinDatabase IOperationSource <GremlinDatabase> .CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); var data = GremlinDatabaseData.DeserializeGremlinDatabaseData(document.RootElement); return(new GremlinDatabase(_client, data)); }
internal GremlinDatabase(ArmResource options, GremlinDatabaseData resource) : base(options, resource.Id) { HasData = true; _data = resource; _clientDiagnostics = new ClientDiagnostics(ClientOptions); _gremlinResourcesRestClient = new GremlinResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri); }
internal GremlinDatabaseResource(ArmClient client, GremlinDatabaseData data) : this(client, data.Id) { HasData = true; _data = data; }
internal GremlinDatabase(ArmClient armClient, GremlinDatabaseData data) : this(armClient, data.Id) { HasData = true; _data = data; }