Example #1
0
        SqlContainerResource IOperationSource <SqlContainerResource> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = SqlContainerData.DeserializeSqlContainerData(document.RootElement);

            return(new SqlContainerResource(_client, data));
        }
Example #2
0
 internal SqlContainer(ArmResource options, SqlContainerData resource) : base(options, resource.Id)
 {
     HasData                 = true;
     _data                   = resource;
     _clientDiagnostics      = new ClientDiagnostics(ClientOptions);
     _sqlResourcesRestClient = new SqlResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal SqlContainer(ArmClient client, SqlContainerData data) : this(client, data.Id)
 {
     HasData = true;
     _data = data;
 }