internal SqlUserDefinedFunction(ArmResource options, SqlUserDefinedFunctionData resource) : base(options, resource.Id) { HasData = true; _data = resource; _clientDiagnostics = new ClientDiagnostics(ClientOptions); _sqlResourcesRestClient = new SqlResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri); }
SqlUserDefinedFunction IOperationSource <SqlUserDefinedFunction> .CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); var data = SqlUserDefinedFunctionData.DeserializeSqlUserDefinedFunctionData(document.RootElement); return(new SqlUserDefinedFunction(_client, data)); }
internal SqlUserDefinedFunction(ArmClient armClient, SqlUserDefinedFunctionData data) : this(armClient, data.Id) { HasData = true; _data = data; }
internal SqlUserDefinedFunctionResource(ArmClient client, SqlUserDefinedFunctionData data) : this(client, data.Id) { HasData = true; _data = data; }