GremlinGraphResource IOperationSource <GremlinGraphResource> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = GremlinGraphData.DeserializeGremlinGraphData(document.RootElement);

            return(new GremlinGraphResource(_client, data));
        }
 internal GremlinGraph(ArmResource options, GremlinGraphData resource) : base(options, resource.Id)
 {
     HasData                     = true;
     _data                       = resource;
     _clientDiagnostics          = new ClientDiagnostics(ClientOptions);
     _gremlinResourcesRestClient = new GremlinResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Beispiel #3
0
 internal GremlinGraph(ArmClient client, GremlinGraphData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }